You are not logged in.

#1 2010-04-13 20:33:02

Slizzered
Member
Registered: 2010-04-13
Posts: 13

[SOLVED] Can only boot with error in fstab

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

#2 2010-04-13 20:49:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Can only boot with error in fstab

You could try labelling with UUID http://wiki.archlinux.org/index.php/UUID


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2010-04-13 23:50:31

pseudonomous
Member
Registered: 2008-04-23
Posts: 349

Re: [SOLVED] Can only boot with error in fstab

Does your fstab have a trailing newline (extra blank line)?  If not, that's probably your problem.

Offline

#4 2010-04-14 19:40:29

Slizzered
Member
Registered: 2010-04-13
Posts: 13

Re: [SOLVED] Can only boot with error in fstab

@jasonwryan: ok, labeling with UUID doesn't change it... but nevertheless now i have consistent naming big_smile

@pseudonomous: you were right, I didn't have the blank line at the end... but adding it didn't make it any better sad

Offline

#5 2010-04-14 19:48:51

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: [SOLVED] Can only boot with error in fstab

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

#6 2010-04-14 22:10:02

Slizzered
Member
Registered: 2010-04-13
Posts: 13

Re: [SOLVED] Can only boot with error in fstab

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

#7 2010-04-14 22:25:47

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [SOLVED] Can only boot with error in fstab

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

#8 2010-04-14 22:37:23

Slizzered
Member
Registered: 2010-04-13
Posts: 13

Re: [SOLVED] Can only boot with error in fstab

Man, my fstab seems to be really crappy I think now..

(gonna change the order immediately wink )

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

#9 2010-04-15 00:00:07

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: [SOLVED] Can only boot with error in fstab

Ahh okay, you're backwards smile.  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

#10 2010-04-15 05:50:57

Slizzered
Member
Registered: 2010-04-13
Posts: 13

Re: [SOLVED] Can only boot with error in fstab

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

Board footer

Powered by FluxBB