Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

[SOLVED] filesystem check error borks boot

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
zlg
Retired Dev
Retired Dev
Posts: 49
Joined: Tue Sep 11, 2012 2:32 am
Location: Earth

[SOLVED] filesystem check error borks boot

  • Quote

Post by zlg » Mon Oct 01, 2012 5:10 pm

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.
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Mon Oct 01, 2012 7:14 pm

when in the ro sort of booted state

Code: Select all

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: Select all

emerge --unmerge dosfstools
Defund the FCC.
Top
BillWho
Veteran
Veteran
User avatar
Posts: 1600
Joined: Sat Mar 03, 2012 1:08 am
Location: US

  • Quote

Post by BillWho » Mon Oct 01, 2012 7:24 pm

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 :)
Top
zlg
Retired Dev
Retired Dev
Posts: 49
Joined: Tue Sep 11, 2012 2:32 am
Location: Earth

  • Quote

Post by zlg » Mon Oct 01, 2012 7:30 pm

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: Select all

# /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.
Top
BillWho
Veteran
Veteran
User avatar
Posts: 1600
Joined: Sat Mar 03, 2012 1:08 am
Location: US

  • Quote

Post by BillWho » Mon Oct 01, 2012 7:33 pm

/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: Select all

/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
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...
Last edited by BillWho on Mon Oct 01, 2012 7:37 pm, edited 1 time in total.
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Top
zlg
Retired Dev
Retired Dev
Posts: 49
Joined: Tue Sep 11, 2012 2:32 am
Location: Earth

  • Quote

Post by zlg » Mon Oct 01, 2012 7:36 pm

BillWho wrote:
/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: Select all

/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?
Top
BillWho
Veteran
Veteran
User avatar
Posts: 1600
Joined: Sat Mar 03, 2012 1:08 am
Location: US

  • Quote

Post by BillWho » Mon Oct 01, 2012 7:42 pm

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 :)
Top
zlg
Retired Dev
Retired Dev
Posts: 49
Joined: Tue Sep 11, 2012 2:32 am
Location: Earth

  • Quote

Post by zlg » Mon Oct 01, 2012 7:43 pm

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.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy