Jump to content

lvm: boot form logical volume (hard disk) ??


Vindieselwalker

Recommended Posts

Hi all,

 

does anyone know how to boot from a locgical volume?

the volume group is located on a mbr-parted partition (/dev/sda5)

 

Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x00002074 Device Boot Start End Sectors Size Id Type /dev/sda1 2048 499711 497664 243M 82 Linux swap / Solaris /dev/sda2 501758 976771071 976269314 465.5G 5 Extended /dev/sda5 501760 976771071 976269312 465.5G 8e Linux LVM

I dont' dare to execute nand-sata-install 'cause it does recognize just the MBR-Partitions. It seems to me that it will overwrite the volume group.

Currently I'm running bananian from the disk.

Added an new root-lv "/dev/langate/root-new" and rsynced the root-fs from the sd-card to the new root-lv.

Patched /boot/boot.cmd, executed 'mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr'.

It doesn't function. I can't describe the error-messages right now further.

Link to comment
Share on other sites

Check /etc/initramfs.conf and make sure the lvm capabilities are there and rebuild initramfs image.  Then you'll probably want to reference the volume by UUID rather than device path 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines