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,017

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: 5,681

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 | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD


Board footer

Powered by FluxBB