fsck.ext3: Unable to resolve 'LABEL=/home'
Hi guys, I have a little problem,
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. Thank you. Regards, |
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! |
Never allocate the same home partition between two distros. Dangerous. Might accidentally get formatted when installing the second one.
|
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.
|
Hi acid_kewpie,
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. Quote:
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? Question. 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? Thanx for your time and effort. Regards, |
Yes you are right...mybad!!
Hi Chris,
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. Quote:
it says Quote:
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? Thank you soo much.:) Regards, |
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: Code:
kermit root # ls -ln /home/ Code:
id -a your_normal_username Code:
usermod -o mandrake_uid -g mandrake_gid 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...) |
Hi chris,
these wer the results for Code:
ls -ln /home/ Code:
drwxr-xr-x 14 501 501 4096 Mar 31 2005 azzath Code:
id -a azzath Code:
uid=500(azzath) gid=500(azzath) groups=500(azzath) Code:
usermod -o 501 -g 501 What might be the cause for it to to say "does not exist"? Appriciate for any help man, Thank you, Regards, |
my bad.....
sorry the syntax should be Code:
usermod -u uid -g gid username |
Oh God!!
Now when i am trying to log into FC as a root, its giving me an error saying that the system is going down ............... and prompting for a login: Whats might be the cause for this?? Please help.. |
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 have edited uid and gid by mounting and changing the file in /etc/passwd
and i used Code:
groupmod -g 501 azzath the /etc/passwd file looks like this Code:
root:x:0:0:root:/root:/bin/bash 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 Quote:
Thanx for helping me. Regards, |
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...
|
How do i load fluxbox window manager?
Thanx chris,
This is my Code:
ls -la /home/azzath Quote:
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. Cheers. Kind Regards, |
ok well there are two dotfiles there owned by root, not you. change those to your normal user (as root of course) and try then... never sure who owns that .desktop file... kde or gnome... not sure.
|
All times are GMT -5. The time now is 08:49 AM. |