Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have previously installed FC3 on my /dev/hda1 and i had /home on /dev/hda2 , and i added mandrake 10.1 and allocated the mount point for /home same as for the FC3, which is on /dev/hda2 and now when i try to boot into fedora, it's giving me the following error message fsck.ext3: Unable to resolve 'LABEL=/home'
how do i correct this problem?
Any comment on this would be helpful.
i'd guess that when you installed mandrake it removed the ext2 label from the partition (which would make me wonder if it was formatted too....??)
to resolve the naming issue, either use "e2label /dev/hda2 /home", assumign that mandrake hasn't put it's OWN label there, or a more definite solution is to edit /etc/fstab and replace LABEL=/home with /dev/hda2.
i would still be worrying about all your /home data having been lost though!
well not if you follow instructions properly. i'd normally install with no /home partition and add it in afterwards to ensure it's untouched. if you're using compatible applications, there's no reason not to share home really... so long as you use the same uid's.
Thank you for your reply,....
I did format it by mistake when i installed the 2nd distribution (i.e Mandrake),
but it didnt have that much of data...so this time its a good lesson.
replace LABEL=/home with /dev/hda2.
How i can edit the fstab file in FC3?
I cannot open the fstab in any editor..how can i edit in the command line?
I know commands like "cat" and "more" but i can only see the details in it. But if i want to edit what command do i use?
What file system should i choose in allocating a common /home partition, so that i can keep away from problems like these?
Or is it wise to have seperate /home for individual distributions?
you are right mate, i didn't follow some of your instructions properly..
I manage to edit the FC3 /etc/fstab and i changed as you told me.
replace LABEL=/home with /dev/hda2.
Now i have another problem man,
Your session only lasted less than 10 seconds.If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of disk space. Try logging in with one of the failsafe sessions to see if you can fix this problem.
i haven't got a clue what this is
But thank you soo much for helping all this way.
Could you please tell me, how do you add the /home after installing a distribution?
Is that by editing /etc/fstab?
hmmm, ok...that's not a great error, but from where' we're coming from i'd say that the reason we're getting that error is that the two users, who presumably have the same name, do not have the same user ids. most systems user id's (uid's) start at 500, but some minght start from 100, some from 1000, and in each instance it doesn't really matter. But you can appreciate how these will need to be consistent across a number of distro's using the same physical locations. in this instance you will simply not have permision to access your own home directory.
so here you have mandrake working perfectly right? so let's fix FC3 to play ball. log in as root on FC3 and run "ls -ln /home" that will show you the UID's of the directories in there. now you'll see something like:
kermit root # ls -ln /home/
drwxr-xr-x 20 1001 100 4096 Jan 19 21:32 bob
drwxr-xr-x 75 500 100 24576 Mar 29 22:38 chris
the 500 there is my user id, the 100 is the "users" group, but that's only a convention on my distro, Gentoo. Now run
id -a your_normal_username
and you'll see what UID and GID FC3 thinks that normal user SHOULD be.... you should just need to make the UID's the same via
usermod -o mandrake_uid -g mandrake_gid
next time you log in as your normal user, you *should* get in just fine and forever more.
i get the impression you're not that used to using terminals and such, but the commands i've given you above are really all you need, and it's so much quicker to test if you can log in as your new user on a terminal (e.g. hit Ctrl+Alt+F2 for a 2nd login prompt etc...)
Last edited by acid_kewpie; 03-31-2005 at 03:30 AM.
pants. you might find it easier to edit /etc/passwd directly, as this is actually all that the usermod command will do. you'll also need to ensure that the group id is also changed via groupmod from 500 to 501.
hmm... i really wouldn't have thought that that usermod command would have done so, but all i can guess is that roots's uid or gid was changed by mistake. you should be able to boot to single user mode or mount the FC3 / partition under mandrake to edit /etc/passwd and revert the root entry to root:0:0:otherstuff if that command gave an error though, then it should have had no effect at all....
i didnt do the reverting root antry part as it is already stated root:0:0..
Now the problem is that when i start booting into the system i can log in giving my normal user id, but the desktop environment (gnome) doesnt load properly, and giving me loads of errors.
some of the errors are
Error activating XKB configuration
An error occured while loading or saving configuration information for rhn-applet
An error occured while loading or saving configuration information for gnome-panel
An error occured while loading or saving configuration information for Nautilus
An error occured while loading or saving configuration information for Print Notifier
An error occured while loading or saving configuration information for gnome-settings-deamon
An error occured while loading or saving configuration information for gnome-session
What must be it this time?
Thanx for helping me.
ok well you're able to log in, so you should be pretty much done, if you run "ls -la /home/azzath" you should see the full list of details for all files. these should now all report that they are owned by your user, by name, not by id. maybe some files got created with the wrong user id, but i can't quite see that happening. have you tried loading a different wimdow manager? fluxbox for instance. just for testing of course...
Why is that when i log in as root, it doesnt give me any errors? Could you see any unwanted files created above?
Could you plz tell me how could i load up fluxbox window manager?
I dont like to giveup, Thanx for all your help all this while.