You are not logged in.
Pages: 1
Hey there!
During boot I noticed a message, that /dev/sda4 (my /home-partition) gets passed a wrong option.
BUT when the system finished booting, everything works very well!
checking my fstab got me
/dev/sda4 /home ext4 default,noatime 0 2
which I corrected (adding the "s").
my new fstab:
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0/dev/sda1 /boot ext2 defaults 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext4 defaults,noatime 0 1
/dev/sda4 /home ext4 defaults,noatime 0 2
resulting in the problem, that "/home" isn't accessible and "/" is mounted as new home... (and login with slim doesn't work at all)
any ideas?
thanks for your answers!
Last edited by Slizzered (2010-04-15 05:51:45)
Offline
You could try labelling with UUID http://wiki.archlinux.org/index.php/UUID
Offline
Does your fstab have a trailing newline (extra blank line)? If not, that's probably your problem.
Offline
@jasonwryan: ok, labeling with UUID doesn't change it... but nevertheless now i have consistent naming
@pseudonomous: you were right, I didn't have the blank line at the end... but adding it didn't make it any better
Offline
another thing - only one partition can have pass set to 1 (/), the rest need it set to 2
you should change /boot to 2
that's not the cause of your problem though
Offline
ok good to know, thanks! (strange to see that the setting in the default fstab had "pass" set to 1 for "/", "/home" and "/boot"...)
but the problem remains...
Offline
Wow, people like pointing out problems with your fstab, I guess I'll join in. Technically, your / entry should come first, because fstab entries are mounted in order at boot. This isn't breaking stuff only because / actually gets mounted earlier than other filesystems.
Anyway, to fix your actual problem we'll need more info. What's the output of "mount /home"?
Offline
Man, my fstab seems to be really crappy I think now..
(gonna change the order immediately )
more information:
when I log in with tty1 as normal user, it says
No directory, logging in with HOME=/
"mount /home"
gives me:
mount: according to mtab, /dev/sda4 is already mounted on /home
mount failed
however, "ls /home"
gives me just the folder "lost & found" instead of my user-folder
Offline
Ahh okay, you're backwards . You've had a malformed option in fstab for a while, so /dev/sda4 was never mounted before. Fixing it mounts the empty filesystem in /dev/sda4 over the stuff in /home that's on your / partition.
Solution (as root):
umount /home
mount /dev/sda4 /mnt
mv /home/* /mnt/
umount /mnt
mount /home
Offline
oh yeah that did the trick!
when I'm thinking about it, this is completely understandable (especially because the error-message while booting was there since first install some days ago...)
thanks a lot, you guys are great!
Offline
Pages: 1