Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] filesystem check error borks boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Mon Oct 01, 2012 5:10 pm    Post subject: [SOLVED] filesystem check error borks boot Reply with quote

I went to boot Gentoo this morning and was met with a series of errors that result in an unset hostname and a read-only filesystem. I had to reboot a few times to capture a picture with scroll lock:

http://imgur.com/vGTTK

There are a few more errors that appear but I can't capture (or read) them in time before agetty or whatever loads. What's strange to me is dosfsck is trying to run when I don't have any auto-mounted NTFS or FAT partitions. sda1 is /boot, ext2; sda2 is /, ext4; sda3 is /home, ext4; I believe this may have been caused by installing dosfstools (which I needed to do in order to format an SD card last night before bed). I haven't touched anything relating to the system in a few days, and it booted just fine last night...

Any ideas? I tried to load the rescue boot option and it didn't even get to a bash prompt...

PROBLEM: my `/etc/fstab` file had 2s in the last field for my not-necessary-at-boot filesystems.

SOLUTION: By changing the fields to zero (0), I told fsck not to check them at boot and avoided the problem. Thanks to BillWho for the /etc/fstab fix.


Last edited by zlg on Mon Oct 01, 2012 7:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Mon Oct 01, 2012 7:14 pm    Post subject: Reply with quote

when in the ro sort of booted state
Code:
mount -o remount,rw /
emerge --unmerge dosfstools
if that doesn't work boot a cd, fsck any and all partitions, mount the gentoo partitions, enter the chroot,
Code:
emerge --unmerge dosfstools

_________________
Defund the FCC.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Mon Oct 01, 2012 7:24 pm    Post subject: Reply with quote

sporkbox

fsck checks for a file /fastboot and if it exists it will skip filesystem checking.

Not sure about dosfsck, but it might be worth a shot. You might have to boot a live media to create the file or try remounting rw :wink:

As far as I know, fsck looks at fstab to determine filesystems to check.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Mon Oct 01, 2012 7:30 pm    Post subject: Reply with quote

BillWho wrote:
sporkbox

fsck checks for a file /fastboot and if it exists it will skip filesystem checking.

Not sure about dosfsck, but it might be worth a shot. You might have to boot a live media to create the file or try remounting rw :wink:

As far as I know, fsck looks at fstab to determine filesystems to check.


I had seen something about /fastboot on some other threads I saw. I'll give that a shot. I also thought that I might've left something in fstab to automatically mount, but it doesn't look like it:

Code:

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1   /boot      ext2      noatime      1   2
/dev/sda2   /      ext4      noatime      0   1
/dev/sda3   /home      ext4      noatime      0   2
/dev/cdrom   /media/dvd   auto      noauto,ro,user   0   0

/dev/sdb1   /mnt/win7   ntfs-3g      noatime,noauto,user,rw,umask=0007,gid=100   0   2
/dev/disk/by-label/D2   /media/d2   vfat   noatime,noauto,rw,user,umask=0007,gid=100   0   2
/dev/sd   /media/sd   auto   noatime,noauto,rw,user   0   2



(Note: I'm accessing Gentoo's hard drive from Win7 with ext2fsd. It mostly works...)

DONAHUE: I'll go try that now. It's not worth having those tools installed if they're gonna cause problems.

EDIT (Now on Gentoo): Is it normal for the /fastboot file to disappear after booting? It's no longer there. At any rate, I was able to unmerge dosfstools. I'll reboot and see if it fixed the problem.


Last edited by zlg on Mon Oct 01, 2012 7:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Mon Oct 01, 2012 7:33 pm    Post subject: Reply with quote

Quote:
/dev/sdb1 /mnt/win7 ntfs-3g noatime,noauto,user,rw,umask=0007,gid=100 0 2
/dev/disk/by-label/D2 /media/d2 vfat noatime,noauto,rw,user,umask=0007,gid=100 0 2
/dev/sd /media/sd auto noatime,noauto,rw,user 0 2

Change to
Code:
/dev/sdb1   /mnt/win7   ntfs-3g      noatime,noauto,user,rw,umask=0007,gid=100   0   0
/dev/disk/by-label/D2   /media/d2   vfat   noatime,noauto,rw,user,umask=0007,gid=100   0   0
/dev/sd   /media/sd   auto   noatime,noauto,rw,user   0   0


Quote:
EDIT (Now on Gentoo): Is it normal for the /fastboot file to disappear after booting? It's no longer there. At any rate, I was able to unmerge dosfstools. I'll reboot and see if it fixed the problem.


Yes, fastboot and /forcefsck ( which forces a check) will be removed...
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)


Last edited by BillWho on Mon Oct 01, 2012 7:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Mon Oct 01, 2012 7:36 pm    Post subject: Reply with quote

BillWho wrote:
Quote:
/dev/sdb1 /mnt/win7 ntfs-3g noatime,noauto,user,rw,umask=0007,gid=100 0 2
/dev/disk/by-label/D2 /media/d2 vfat noatime,noauto,rw,user,umask=0007,gid=100 0 2
/dev/sd /media/sd auto noatime,noauto,rw,user 0 2

Change to
Code:
/dev/sdb1   /mnt/win7   ntfs-3g      noatime,noauto,user,rw,umask=0007,gid=100   0   0
/dev/disk/by-label/D2   /media/d2   vfat   noatime,noauto,rw,user,umask=0007,gid=100   0   0
/dev/sd   /media/sd   auto   noatime,noauto,rw,user   0   0


Could you tell me what the difference is between 2 and 0 in the last field? Does changing them to zero simply disable them from automatic fsck'ing?
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Mon Oct 01, 2012 7:42 pm    Post subject: Reply with quote

fsck will assume that the filesystem does not need to be checked if set to 0. You should man fstab for more info :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
zlg
Retired Dev
Retired Dev


Joined: 11 Sep 2012
Posts: 49
Location: Earth

PostPosted: Mon Oct 01, 2012 7:43 pm    Post subject: Reply with quote

Alright, thanks. The fstab edit fixed it and allowed `dosfstools` to remain on my system.

I'll have to remember that remount trick though! Thanks a lot for the help, guys. I'll mark the topic solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
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