Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can't find my way $HOME/dmrc
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
bof



Joined: Sun May 21, 2006 10:21 pm
Posts: 74
Location: Devon, UK

PostPosted: Fri May 26, 2006 6:59 pm    Post subject: Can't find my way $HOME/dmrc Reply with quote

This is one reason Linux will never catch on Sad
I have been using Suse 10.1 with Gnome for about a week and am really getting into it. It's nice to think I might actually do without Bill for (some of) my jobs. I have put all my usable documents on Drive E of my WindowsXP setup and am using them from Suse. So far so good.....
I thought I would be clever by editing my User profile to make My Home point to my Windows E drive.
Next time I logged on all I got was a box saying "Your $HOME/dmrc file has incorrect permissions and is being ignored ...........File should be owned by user and have 644 permissions.
I could get no further and reinstalled Suse from scratch, losing all my emails and other settings.
On the reinstallation I disabled the Auto Login. Just being curious I again changed my home folder and got exactly the same result on logging in except I am now able to login to a Terminal window.
What on earth do I do now? Presumably there are some gobbledegook phrases I can type in to get it working again. Suggestions please gentlemen Smile
Thanks goodness I still have Windows or I wouldn't be able to ask you chaps for help
Confused
_________________
Local shop built Desktop AMD core duo 4700 dual booting Vista and Ubuntu 7.10
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Fri May 26, 2006 7:55 pm    Post subject: RE: Can Reply with quote

Oh dear. Windows E: is that fat32 partition, isn't it? Fat32 - a native Windows filesystem that doesn't support *nix permissions. Permissions being one of the great strengths of Linux/Unix - so long as you don't..... Oh dear, oh dear, oh dear Sad.

First up - we need to get that user profile pointing back to /home/yourusername (which is a file - directories are files in Linux - which has the correct PERMISSIONS). Others may have better ways of doing this, but if you log in as root (normally a verboten thing to do), can you get into Gnome? If you can then you should be able to go into YaST > Users and reset the yourusername profile back to the way it should be. Then (hopefully) you'll be able to login as yourself. The only way I know of accessing a shared fat32 partition from home easily in a GUI is to set up a symlink. That's a bit like a shortcut in Windblows. And it looks like a folder in home, except it has a little curved arrow on it - just lke a shortcut in Bill's favourite. I'll tell you how to do that - it's a piece of cake - if you can get your user profile sorted. First things first though......
Back to top
View user's profile Send private message
Flea
LXF regular


Joined: Fri Apr 08, 2005 2:03 pm
Posts: 258
Location: Ferryhill, Co. Durham

PostPosted: Fri May 26, 2006 8:01 pm    Post subject: RE: Can Reply with quote

Hi Bof,

Setting your home directory to a Windows partition is probably not a good idea, The reason Suse complained about your permissions is because you need write access to your home folder. I'm not even sure if NTFS/FAT32 supports the same type of permissions that your linux filesystem does.

To restore your original home dir type

Code:
su

input your root password. then type
Code:
usermod -d /home/$USER $USER


Where $USER is your user account name i.e john or mary or whatever.

Hopefully now you will be ok, log out (type 'exit') and then reboot the machine (CTRL ALT DEL) and try logging in again.
_________________
The question is, what is a mahnamahna?
The question is, who cares?
Back to top
View user's profile Send private message
bof



Joined: Sun May 21, 2006 10:21 pm
Posts: 74
Location: Devon, UK

PostPosted: Fri May 26, 2006 9:27 pm    Post subject: Re: RE: Can Reply with quote

spottedcat wrote:
Oh dear. Windows E: is that fat32 partition, isn't it? Fat32 - a native Windows filesystem that doesn't support *nix permissions. Permissions being one of the great strengths of Linux/Unix - so long as you don't..... Oh dear, oh dear, oh dear Sad.

Oh dear indeed! I was hoping to USE Linux, not learn a new language Shocked


Quote:
If you can then you should be able to go into YaST > Users and reset the yourusername profile back to the way it should be.


Nope, I can't get into YaST

Flea wrote:

Setting your home directory to a Windows partition is probably not a good idea
You're right there Smile
Quote:

To restore your original home dir type

Code:
su

input your root password. then type
Code:
usermod -d /home/$USER $USER


Where $USER is your user account name i.e john or mary or whatever.


When I got into the Terminal window and typed su and my password I was put into the directory linux-n0kg:/windows/E
I figure I need to get into the root but I don't know how to do this. My old DOS days suggest CD\ but that doesn't seem to work.
Putting your suggested phrases (including any variants I could think of) into the E folder produce responses such as "user mod: Too few arguments"
How do I get back to the root?
_________________
Local shop built Desktop AMD core duo 4700 dual booting Vista and Ubuntu 7.10
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Fri May 26, 2006 10:03 pm    Post subject: RE: Re: RE: Can Reply with quote

You were almost right! It's 'cd /'. Remember that Linux (and Unix) distinguishes between upper and lower case and that Linux/Unix/MAC/alldecentOSs use / as a directory separator and not \ .

I think you have to log in as root before you can use the line Flea gave you. This from info usermod:

Quote:
usermod will not allow you to change the name, User ID or home direc\uffff\uffff\\uffff
tory of a user, which is logged in.


Goodness knows what 'uffff' is. Smile I did a copy and paste from a terminal.

Try that. Try logging in as root and trying Flea's line, but whatever you do, don't experiment if you are in root terminal. You can do untold damage. That's partly what permissions are all about.
Back to top
View user's profile Send private message
Steogede
LXF regular


Joined: Thu May 04, 2006 6:39 pm
Posts: 132

PostPosted: Fri May 26, 2006 10:34 pm    Post subject: Re: Can't find my way $HOME/dmrc Reply with quote

bof wrote:

I could get no further and reinstalled Suse from scratch, losing all my emails and other settings.
On the reinstallation I disabled the Auto Login. Just being curious I again changed my home folder and got exactly the same result on logging in except I am now able to login to a Terminal window.


Actually you would have been able to log into a console all along, the reinstall was unecesary, you just didn't know it (we would have told you if you asked soon). All you had to do was press CTRL-ALT-F1 (or F2, ... F6) and ALT-F7 to go back to X (and KDE).

There are command tools which I notice other people have pointed you to. Infact you could even fix it with a simple text editor. However as you probably got yourself into this mess using YaST, you might as well use YaST to get yourself out of it.

The great thing about SUSE is that the config tool (YaST) works equally well in both a console and in X. First you need to log in as root, in the console login you see before you, enter 'root' as the username (obviously without the quotes). For the password enter your root password, if you're not sure what that is, it is the same password you need to type before you could use YaST in KDE. Once you have logged in, simply enter the command 'yast', which will bring up the text based version of YaST. Functionally, this is identical to the X version only difference is that you may need to use the keyboard to naviate (mouse might not work) and it isn't so pretty. All you need to do is edit your user settings and put it back how it was (probably in the security section, but you will know better than me).

For future reference, don't go moving your home directory about, it contains lots of important user level config files (doesn't include any system configurations). A better option (though not necessarily recommended), would be to mount your Windows partion on an empty directory within your home directory, e.g. /home/username/Documents/windows/

or even better create a symbolic link (similar to a Windows shortcut), or a KDE shortcut, but I need to go to sleep now, so post back if you are interested in learning about these things (or even better google for them).
Back to top
View user's profile Send private message
bof



Joined: Sun May 21, 2006 10:21 pm
Posts: 74
Location: Devon, UK

PostPosted: Fri May 26, 2006 11:09 pm    Post subject: RE: Re: Can Reply with quote

Thanks for your input Steogede. The only way I can get Suse to even look at me is by using the Failsafe terminal mode. When I type YAST into the root terminal it says "yast: command not found"
As I hinted earlier, I want to drive Linux, not learn learn how to adjust the gaps on the piston rings. I've done my share of stripping out a layshaft on a frosty morning Smile
I think I'll reinstall Suse a third time and make sure I don't look under the bonnet again.

Thanks for your interest, I'm off to bed now Smile)

Edit: Query for SC: shall I stick with Gnome or give KDE a try on my next installation Rolling Eyes
_________________
Local shop built Desktop AMD core duo 4700 dual booting Vista and Ubuntu 7.10
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Sat May 27, 2006 12:11 am    Post subject: Re: RE: Re: Can Reply with quote

bof wrote:
Thanks for your input Steogede. The only way I can get Suse to even look at me is by using the Failsafe terminal mode. When I type YAST into the root terminal it says "yast: command not found"


I'm deeply mystified. I've just tried an experiment by booting into failsafe mode in SuSE 10.1 on my laptop. I logged in as root, and then typed 'yast', and there it was - ugly as sin as Steogede said, but undoubtedly yast. Did you log in as yourself and then su to root? Can't see as that would make a difference, but as everyone keeps saying, it's late and my brain is half switched off. If you haven't already done a reinstall try failsafe mode and make sure you login as root, not as yourself. I also booted into Gnome as usual, dropped into a text terminal with Ctrl/Alt/F1, logged in as root, 'yast'ed and there it was again. 'exit'ed from the terminal, Ctrl/Alt/F7 back to Gnome again. I really am mystified.

bof wrote:
I think I'll reinstall Suse a third time and make sure I don't look under the bonnet again.


Give it time. You will. You will. Wink

bof wrote:
Query for SC: shall I stick with Gnome or give KDE a try on my next installation Rolling Eyes


Do you want me to start a flame war? Very Happy My personal preference is Gnome, but I would never say it is better or suggest what someone else should use. But if you are going to do a reinstall (which, as Steogede said, is probably unnecessary) you could try KDE instead. Then you could see which you prefer. Be aware that SuSE, in their infinite wisdom, have redesigned the normal Gnome layout for 10.1. It doesn't look like that in other distros, so if you try another distro (you will, you will Smile) with Gnome you may be a little disorientated at first. One advantage of KDE in SuSE 10.1 that I did notice with a desktop pc installation with both Gnome and KDE is that KDE automounts all your partitions very nicely in Konqueror. Although Konqueror is available in Gnome, it didn't do the automounting until I had installed KDE. And even if you aren't swayed by KDE, you'll enjoy the bouncing icons - at least for a little while.

Edit and afterthought Ubuntu Dapper 6.06 release candidate was released for download yesterday. You can download it from here, but be aware of the caveat here. This is the final pre-release before it is officially launched in June. I downloaded it today - only one CD which doubles as a live CD and an installer. If you've got bandwidth to spare I urge you to download it and have a look at it. I'm not suggesting you install it, merely run it live. You will be impressed, I promise you, and you will see a different Gnome layout with a different colour scheme. You could also see whether it recognises your wireless card, although I suspect it won't. If nothing else, these live CDs can be used for doing sundry repairs on systems, so they are useful to have about the place, although I doubt whether it will help you here.
Back to top
View user's profile Send private message
bof



Joined: Sun May 21, 2006 10:21 pm
Posts: 74
Location: Devon, UK

PostPosted: Sat May 27, 2006 9:54 am    Post subject: RE: Re: RE: Re: Can Reply with quote

Oh dear, here we go again!
SC, I have downloaded and burnt the Ubuntu disc and booted straight into the live version with no problems.
I am very impressed with my first sight of it and have fired up Firefox so I can tell you about it here.
However ---- back to square one and I'm lifting the bonnet again ---- I need to access the data on my Fat32 E drive. Evil or Very Mad
Looking in the Places/Computer/ tab I can see lots of drives and am not sure which of them is my E drive. Double clicking the one marked "System" shows up the system files ok but all the other drives say "Unable to mount the selected volume"
Going by my previous experience I open up filesystem/etc/fstab and see this:-
unionfs / unionfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/hdc7 swap swap defaults 0 0

Am I right in thinking that I will have to properly install Ubuntu to sort this out? If so, do I need to do anything to get rid of my two previous installations of Suse?
_________________
Local shop built Desktop AMD core duo 4700 dual booting Vista and Ubuntu 7.10
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Sat May 27, 2006 9:59 am    Post subject: RE: Re: RE: Re: Can Reply with quote

bof, it's now Saturday morning and I'm even more deeply mystified. I've just deliberately broken a SuSE 10.1 installation the way you did, and then successfully repaired it the way I originally suggested in my first post of this thread. This is what I did:

Changed my home directory in user management in YaST from /home/myname to /mnt/sda2 (which is the mountpoint for a fat32 partition on my desktop multiboot). Logged out. Logged in and got the error you saw. Clicked OK and the GUI promptly crashed back to the login screen. I then logged in as root (username='root', password=root password), and I was back in Gnome in a trice. Went into YaST, reverted my home directory to what it should be, logged out and logged in successfully as myself. Everything all now tickety-boo. Very mystifying.

Gnome v KDE To add to my afterthought of last night, why not try Mepis as well. Like Ubuntu Dapper it comes as a double-purpose live/install CD. But unlike Ubuntu it uses KDE as its desktop. They are both a little quirky in the way they setup the two desktops, but it gives you an idea without having to install anything. You won't do any harm to your machine and present installations by running them live. (Unless you do something silly like reformatting your hard disk from gparted/qtparted. Rolling Eyes) Mepis was on the LXF79 coverdisk, or if you haven't got that you can find a download mirror at this url. You need to look for the iso for SimplyMepis 3.4-3. One or two of those mirrors don't respond and they all seem to be pretty slow unfortunately.

Happy hunting. Above all, don't give up. Very Happy
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Sat May 27, 2006 10:04 am    Post subject: RE: Re: RE: Re: Can Reply with quote

We seem to have posted simultaneously. But, whoa, slow down. Why do you want to access your fat32 data from Linux. Can you get to it from Windows? Two things. Remind me which partition (number that is) of your hard disk your fat32/E: is and I'll tell you how to navigate there. The rubbish on the desktop is still a little flaky IMHO, and I hope it will be alittle better for the final release.

Second thing: Mepis has an easier way of accessing the other partitions. If you download the ISO, post back and I'll tell you how to find it. (And how to log in. Rolling Eyes)

Edit: Just noticed your last questions. No you don't have to install Ubuntu, or Mepis. You can do a lot live. No you don't have to uninstall your SuSE installations. (Two??) You just let the new installation overwrite the old one.
Back to top
View user's profile Send private message
bof



Joined: Sun May 21, 2006 10:21 pm
Posts: 74
Location: Devon, UK

PostPosted: Sat May 27, 2006 10:29 am    Post subject: Re: RE: Re: RE: Re: Can Reply with quote

spottedcat wrote:
We seem to have posted simultaneously. But, whoa, slow down. Why do you want to access your fat32 data from Linux.


I have loads of work on my Windows system that I will need to keep going while I change over to Linux. I do not want my data stored in two operating system as backing up will get very complicated.

Anyway, I'll let you go for the moment as I really must turn off this time wasting machine and get on with laying floor tiles in the Utility room. At least in there the only thing I'll be rebooting will be the cat - whoops sorry , I'm referring to our own cat Tiger - not the spotted one Smile
_________________
Local shop built Desktop AMD core duo 4700 dual booting Vista and Ubuntu 7.10
Back to top
View user's profile Send private message
bof



Joined: Sun May 21, 2006 10:21 pm
Posts: 74
Location: Devon, UK

PostPosted: Sat May 27, 2006 7:49 pm    Post subject: RE: Re: RE: Re: RE: Re: Can Reply with quote

Hello Spottedcat.
Just to let you know I have downloaded and installed HD Ubuntu on the HD, and very pretty it looks.
The bootup screen shows I still have Suse 10.1 available. I'll start a new thread tomorrow and invite your opinion as to removing Suse and recovering some disk space.
_________________
Local shop built Desktop AMD core duo 4700 dual booting Vista and Ubuntu 7.10
Back to top
View user's profile Send private message
GMorgan
LXF regular


Joined: Thu Jan 12, 2006 6:58 pm
Posts: 684
Location: South Wales, UK

PostPosted: Sat May 27, 2006 11:51 pm    Post subject: RE: Re: RE: Re: RE: Re: Can Reply with quote

If you want to access a FAT32 partition then create a folder within your home directory then open a terminal then enter the following (assuming Ubuntu here)
#sudo gedit /etc/fstab

then in gedit enter the following line at the bottom of the file

/dev/hdxy /home/bof/winhdde vfat defaults 0 0

Where bof is replaced with your username, winhdde is the folder you created and hdxy refers to your HDD partition for FAT32.

The HDD naming convention for Linux works as follows.

x refers to the actual HDD with a being the first HDD b being the second and generally c and d are optical drives. So if your FAT32 partition is on the master drive on IDE1 enter a for x.

y refers to the partition on HDD x. 1-4 are primary partitions 5- are logical partitions. When you've identified where your partition is drop the values in and away you go.

//edit - you may have to reboot to get it working. It can be mounted without rebooting but a reboot will give us a better idea if its working normally which is what you want.//
Back to top
View user's profile Send private message
spottedcat
LXF regular


Joined: Mon Oct 31, 2005 3:14 pm
Posts: 971
Location: UK

PostPosted: Sun May 28, 2006 12:22 am    Post subject: RE: Re: RE: Re: RE: Re: Can Reply with quote

Actually, one shouldn't need to do that in Dapper - or at least I don't have to in my installation. Here's my Dapper /etc/fstab:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda9       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda1       /media/sda1     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
/dev/sda10      /media/sda10    reiserfs defaults        0       2
/dev/sda11      /media/sda11    ext3    defaults        0       2
/dev/sda12      /media/sda12    ext3    defaults        0       2
/dev/sda13      /media/sda13    ext3    defaults        0       2
/dev/sda2       /media/sda2     vfat    defaults,utf8,umask=007,gid=46 0       1
/dev/sda6       /media/sda6     ext3    defaults        0       2
/dev/sda7       /media/sda7     ext3    defaults        0       2
/dev/sda8       /media/sda8     ext3    defaults        0       2
/dev/sda5       none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0


It picked up my fat32 partition, as well as all the other partitions, automagically on install without me having to lift a finger. Now I just have to click on one of the icons littering my desktop. (Bit of a mess after the minimalist look of Breezy though. Smile). Gid 46 is plugdev group. This is really impressive. Dapper is going to be something very special. I've already got xgl working very nicely in it and enabling the nvidia driver was one of the easiest things I've done in Linux so far.

bof, I'll look out for your new thread tomorrow or whenever. We'll need detailed information on your partition layout, but (of course) there's an easy way to get this in Dapper.* I'll tell you where the GUI app is when you've posted. And we also need to clarify one thing that puzzled me from your previous thread. In that, if memory serves my right, you said your fat32/Windows E: partition was hdc6. As you'll see from GMorgan's post, that means that it's on your third hard drive. On a laptop? Confused I'm intrigued. And if the sda's in my fstab are confusing you, that's because it's a serial ata drive. hdx=ide (parallel ata) drive. sdx=sata or scsi (and also usb memory devices).

Edit * There's an even easier way. You post the contents of /etc/fstab like I've just done. Embarassed Embarassed I think I'll go to bed now.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2010 Future Publishing, all rights reserved.


Web hosting by UKFast