Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel udev-182 - e2fsck /usr cannot continue, aborting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
castor_fou
Apprentice
Apprentice


Joined: 23 May 2002
Posts: 249
Location: Clermont-Ferrand, France

PostPosted: Sun Apr 01, 2012 8:46 pm    Post subject: genkernel udev-182 - e2fsck /usr cannot continue, aborting Reply with quote

after upgrading to udev-182, I understand that /usr is now mounted by initramfs. (I use genkernel)

However at boot time, Checking local filesystems ... is complaining it cannot check /usr, becuse already mounted (rw I guess ?)
Here is the message from rc.log :

Code:
• Checking local filesystems  ...
/dev/mapper/VG_gentoo_root-root: clean, 21813/1310720 files, 346425/2621440 blocks
/dev/mapper/VG_gentoo_root-usr is mounted.  e2fsck: Cannot continue, aborting.
/dev/mapper/VG_gentoo_root-var: clean, 248413/1310720 files, 1180377/2621440 blocks
/dev/mapper/VG_gentoo_root-tmp: clean, 30/655360 files, 55970/1310720 blocks
/dev/mapper/VG_gentoo_data-home: clean, 173260/5242880 files, 4093225/10485760 blocks
/dev/mapper/VG_gentoo_data-data: clean, 54609/24985600 files, 38676962/49944576 blocks
/dev/sdd1: clean, 837818/27467776 files, 65509302/109862502 blocks (check in 3 mounts)
/dev/md0: clean, 103/122880 files, 186952/489856 blocks
 * Operational error
 [ !! ]


No problem with /.
What is the correct way to handle that ? Ask initramfs to mount /usr ro ?

any help would be appreciated
Back to top
View user's profile Send private message
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Sat Jun 29, 2013 9:21 pm    Post subject: Reply with quote

I have the same problem. My /usr is on a separate partition, I am using genkernel and during evry boot I can see message "e2fsck cannot contine, aborting" because /usr is not mounted as ro. Any solution?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sat Jun 29, 2013 11:00 pm    Post subject: Reply with quote

My initramfs checks /usr and /var before it mounts them if the mount count or whatever has been reached.
Its hand rolled, so when it breaks, the pieces are all mine.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Sun Jun 30, 2013 3:27 pm    Post subject: Reply with quote

NeddySeagoon wrote:
My initramfs checks /usr and /var before it mounts them if the mount count or whatever has been reached.
Its hand rolled, so when it breaks, the pieces are all mine.


thanks you shared it works for you. do you think could you share also how can i do that? :-)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun Jun 30, 2013 5:34 pm    Post subject: Reply with quote

JohnBlbec,

Heres the hard bit.
It has raid5, and LVM as well as mounting /var and /usr.
Adding LUKS or removing things you don't need is left as an exercise for the reader.
I use UUIDs everywhere, since the userspace mount command is in the initrd. blkid is your friend.
Every block device has a UUID. e.g. /dev/sda1 is a block device, so it has a UUID. The filesystem on /dev/sda1 is also a block device. It has its own but different UUID. Be sure to use the right UUIDs.

You feed initramfs_list to gen_init_cpio, which can be found in /usr/src/linux/usr and it outputs the corresponding initramfs, straight into /boot if you want.

From memory, gen_init_cpio supports -h or --help.

The Gentoo Wiki is another good source of information.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Sun Jun 30, 2013 6:16 pm    Post subject: Reply with quote

NeddySeagoon,

thank you for your post. i will study your solution (i know the article on wiki, of course). i would expect that genkernel itself generates the right initramfs and i would prefer that way but it seems it does not. unfortunately. ok, thanks once again.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun Jun 30, 2013 6:35 pm    Post subject: Reply with quote

JohnBlbec,

I'm old and cynical and don't trust black magic at all, since I have to fix it when it breaks anyway.
For me, that means I need to make my own initrd.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
JohnBlbec
Guru
Guru


Joined: 08 Feb 2003
Posts: 306

PostPosted: Tue Jul 02, 2013 5:32 am    Post subject: Reply with quote

I understood you but I am lazy. Unfortunately, there is no other way then yours to be satisfied...
Back to top
View user's profile Send private message
whywhy
n00b
n00b


Joined: 20 Jul 2010
Posts: 40

PostPosted: Tue Jul 02, 2013 7:27 am    Post subject: Reply with quote

How about using dracut ?

It seem to create a initramfs that will perform a fsck before mounting / and /usr.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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