You are not logged in.

#1 2012-01-31 18:46:58

nathan.mccrina
Member
Registered: 2012-01-31
Posts: 4

New install - Filesystem check failed

I did a new installation of Arch today, and in a random fit of thrillseeking I used syslinux instead of grub for the bootloader. The installation said it was successful, but after restarting Arch failed to boot. The error was in the filesystem check.

/dev/sda5 is mounted. e2fsck: Cannot continue, aborting.

/dev/sda5 is where /usr is mounted.

Also, it complained that / is mounted read-only.

First question is, how is /usr already mounted? I searched the forums and the most promising thing I found involved mkinitcpio; apparently it tries to take a shortcut and mount /usr early and somehow this happens before the filesystems are fscked. However, I added the shutdown and fsck hooks to /etc/mkinitcpio.conf which are supposed to fix this (https://wiki.archlinux.org/index.php/Mk … _partition), and nothing changed. So I'm out of ideas.

Second, why is / read-only? fstab only has the 'defaults' option listed for /. syslinux.cfg had the line 'APPEND root=/dev/sda2 ro' so I figured it was probably read-only because of that, but I tried booting both with the ro gone and with it changed to rw, but nothing changed there either, it still gives the message that / is mounted read-only.

My first inclination was just to disable the filesystem check in fstab, but that seemed like a cheap workaround. I'd really like to understand what the problem is.

Offline

#2 2012-01-31 19:01:04

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: New install - Filesystem check failed

nathan.mccrina,

this is because /usr shouldn't be a separate partition.

Either consolidate it with root, or use a hook:

https://wiki.archlinux.org/index.php/Mk … _partition

Syslinux is OK.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#3 2012-01-31 19:10:23

nathan.mccrina
Member
Registered: 2012-01-31
Posts: 4

Re: New install - Filesystem check failed

Thanks for replying!

I did add the hooks per the mkinitcpio wiki page, but it didn't fix the problem. (I actually mentioned that in the first post wink

How can I consolidate /usr and /? The best option is probably just reinstalling since I haven't done anything with the system yet anyway, but how could I do it aside from that?

Offline

#4 2012-01-31 19:11:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: New install - Filesystem check failed

Did you rebuilt the kernel image after you added the hooks?

Offline

#5 2012-01-31 19:18:51

nathan.mccrina
Member
Registered: 2012-01-31
Posts: 4

Re: New install - Filesystem check failed

karol wrote:

Did you rebuilt the kernel image after you added the hooks?

No, I didn't realize I had to but that makes sense. Do I use the ABS, like this: https://wiki.archlinux.org/index.php/Ke … ild_System ? Do I need to do anything special to enable the hooks?

Offline

#6 2012-01-31 19:43:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: New install - Filesystem check failed

Oh no, I meant simply running

[sudo] mkinitcpio -p linux

Offline

#7 2012-02-01 01:40:24

nathan.mccrina
Member
Registered: 2012-01-31
Posts: 4

Re: New install - Filesystem check failed

karol wrote:

Oh no, I meant simply running

[sudo] mkinitcpio -p linux

Oh, lol

That worked, it boots now. Thanks!

Offline

#8 2012-02-01 01:54:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: New install - Filesystem check failed

Cool, that was easy to fix :-)
Please remember to mark the thread as solved.

Offline

Board footer

Powered by FluxBB