Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cannot boot into lvm encyprypted root partition

Featured Replies

I cannot boot into lvm encyprypted root partition:

            mount: mounting "/dev/mapper/vg-root on /root failed: No such file or directory␍␊

            Failed to mount "/dev/mapper/vg-root as root file system.␍␊

 

The flollowing step i made  (short version)

- create the lvm partition

- mount lvm partition and and copy file system auf lvm partition, bind /dev, sys, proc

- chroot in the lvm root partition (vg-root)

- change /etc/fstab :  insert

               /dev/mapper/vg-root / ext4 errors=remount-ro 0 1

                UUID=<UUID-Partiion> /mnt/mnt ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 2

               #UUID=<UUID-Partiion> / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 1

- create the initramfs:

               update-initramfs -u -k $(uname -r)

 

- change armbian.txt:

             rootdev="/dev/mapper/vg-root cryptdevice=/dev/mmcblk0p2:lvm"

 

 

During boot, the device ask the PW:

             Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Please unlock disk lvm: ␍␊

 

After inserting the password, lvm seems alright ("cryptsetup: lvm: set up successfully␍␊done.␍␊")

 

But the boot file system is not fount

               Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems␍␊

              done.␍␊

               Begin: Will now check root file system ... fsck from util-linux 2.33.1␍␊

               Checking all file systems.␍␊

               done.␍␊

              mount: mounting "/dev/mapper/vg-root on /root failed: No such file or directory␍␊

              Failed to mount "/dev/mapper/vg-root as root file system.␍␊

 

i am very grateful for any comments and tips.
I have already done such LVM boot encryption 2 years ago on Pine 64 and Pine LTS.
BUT NOW I HAVE NO IDEA HOW TO LOOK FURTHER.

 

 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.