On 13/01/2018 12:58, Andrew Barchuk wrote: > Hi folks, > > I've posted about this problem to the forums[1] without luck despite > getting more than a thousand views so I thought I'll try here. > > My system boots successfully but filesystem check fails for /usr which > is on a separate partition: > > * Checking local filesystems ... > /dev/mapper/MacVg-gentoo--root: clean, 2390/65536 files, 30938/262144 blocks > /dev/mapper/MacVg-gentoo--usr is mounted. > e2fsck: Cannot continue, aborting. > > > /dev/mapper/MacVg-gentoo--var: clean, 22647/65536 files, 59083/262144 blocks > /dev/mapper/MacVg-gentoo--home: clean, 8080/917504 files, 243397/3670016 > blocks > /dev/mapper/MacVg-data: clean, 5293/3145728 files, 8945157/12582912 blocks > * Operational error > [ !! ] > > I use LVM on LUKS container for my partitions and an initramfs built > with genkernel. > > My fstab: > > /dev/MacVg/gentoo-root / ext4 defaults 0 1 > /dev/MacVg/gentoo-usr /usr ext4 defaults 0 2 > /dev/MacVg/gentoo-var /var ext4 nodev,nosuid 0 2 > /dev/MacVg/gentoo-home /home ext4 nodev,nosuid 0 2 > /dev/MacVg/data /data ext4 nodev,nosuid,noexec 0 2 > LABEL=EFI /boot vfat noauto,umask=0022 0 2 > /dev/MacVg/swap none swap defaults 0 0 > tmpfs /tmp tmpfs nosuid,nodev,size=1G,mode=1777 0 0 > tmpfs /var/tmp tmpfs nosuid,nodev,size=8G,mode=1777 0 0 > > Any ideas what is going on and how do I make the fsck check succeed? > Maybe I should file it as an OpenRC bug but I'm not completely sure if > it's not me doing something wrong. > Thanks in advance for any help. > > 1. https://forums.gentoo.org/viewtopic-t-1075174-highlight-.html > > --- > Andrew >
By far the easiest way to deal with this without having to predict if maybe /usr is mounted or not, or if maybe your intiramfs has the correct files in place and all sorts of other maybes, is the following: - find any old LiveCD/installer/whatever on CD or thumb drive (the gentoo minimal install CD works just fine, so does ubuntu-server installer (it boots quite quickly) - set your BIOS to boot from that device - reboot - use the fsck tool on that system (which is independent of your main system) to fix the broken fs for /usr - reboot as normal Yes, you *could* fiddle with your initramfs to provide a shell and fs tools. How often are you going to use it or test it? As you are not RedHat with paying customers, I'd say "almost never". so rescue disk ftw -- Alan McKinnon alan.mckin...@gmail.com