You are not logged in.

#1 2013-08-05 08:05:15

Registered: 2012-12-05
Posts: 4

BTRFS /usr, encrypted LVM container for the rest; Y U no boot?

Hi, there!

I'm trying to install an arch linux on my Acer Aspire One like so:

/ resides in a LVM container and is btrfs, mount options: rw, relatime,compress=lzo,space_cache,
/boot is ext4-formatted,
/usr btrfs, mount options: rw, relatime,compress=lzo,space_cache

In the installation steps, everything went just fine, I set the hooks for mkinitcpio as written in the tutorials.

Now, when I'm booting, there's the following problem:

The hooks 'encrypt' and 'btrfs_advanced' are started, but then, the output is like:

Waiting 10 seconds for device /dev/mapper/<top secret name>-root ...
:: performing fsck on '/dev/mapper/<top secret name>-root'
Unknown option: -a
usage: btrfs [--help] [--version] <group> [<group>...] <command> [<args>]
ERROR: fatal error invoking fsck
**** WARNING ***
* The root device is not configured to be mounted 
* read-write! It may be fsck'd again later
:: mounting '/dev/mapper/<top secret name>-root' on real root
:: running clean-up hook [lvm2]
:: running clean-up hook [udev]
ERROR: Root device mounted successfully, but /sbin/init does not exist.
Bailing out, you are on your own. Good luck.

sh: can't access tty; job control turned off

'mount' shows that /new_root is mounted an ls informs me that a '/sbin/init' exists, but 'exec /sbin/init' fails with 'sh: can't access tty: job control turned off'

However, if I'm using a live usb stick to boot, I can without any problems mount the encrypted and not encrypted devices and use my installation.

Anyone can help me?


#2 2013-08-05 08:18:11

From: UK
Registered: 2013-07-26
Posts: 100

Re: BTRFS /usr, encrypted LVM container for the rest; Y U no boot?

Are you sure you are mounting subvolume containing your root?


#3 2013-08-05 14:34:24

Bug Wrangler
Registered: 2012-09-01
Posts: 6,882

Re: BTRFS /usr, encrypted LVM container for the rest; Y U no boot?

So the initramfs is mounting root, but I don't see it mounting /usr. Are you using the usr hook for mkinitcpio?


#4 2013-08-06 01:34:42

From: Cymru
Registered: 2011-11-27
Posts: 6,083

Re: BTRFS /usr, encrypted LVM container for the rest; Y U no boot?

In addition to ^^, you will also need the shutdown hook.

You don't mention using encryption but you've included the encrypt hook?

Also, why are you trying to fsck btrfs volumes?

Last edited by cfr (2013-08-06 01:35:16)

How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Corporation Wireless 8265 / 8275 | US keyboard with Euro | 512G NVMe INTEL SSDPEKKF512G7L


Board footer

Powered by FluxBB