Score:0

Mount an LVM partition image cloned with dd

it flag

Im trying to mount a partition with dd based on this article: https://www.utilities-online.info/articles/Mount-an-LVM-partition-image-cloned-with-dd.

However I keep getting the same error.

My steps:

root@vagrant:/root# fdisk -l out.dd 
Disk out.dd: 3.1 GiB, 3371216896 bytes, 6584408 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
losetup /dev/loop0 out.dd
root@vagrant:/root# pvs
  WARNING: Device /dev/loop0 has size of 6584408 sectors which is smaller than corresponding PV size of 20555776 sectors. Was device resized?
  One or more devices used as PVs in VG ubu-xyz have changed sizes.
  PV         VG         Fmt  Attr PSize   PFree  
  /dev/loop0 ubu-xyz    lvm2 a--    9.80g 100.00m
  /dev/sda1  vagrant-vg lvm2 a--  <64.00g      0 
root@vagrant:/root# vgchange -a y ubu-xyz
  WARNING: Device /dev/loop0 has size of 6584408 sectors which is smaller than corresponding PV size of 20555776 sectors. Was device resized?
  One or more devices used as PVs in VG ubu-xyz have changed sizes.
  device-mapper: resume ioctl on  (253:2) failed: Invalid argument
  Unable to resume ubu--xyz-ubuntu--lv (253:2)
  device-mapper: resume ioctl on  (253:3) failed: Invalid argument
  Unable to resume ubu--xyz-swap (253:3)
  2 logical volume(s) in volume group "ubu-xyz" now active

Following the post, now there should be /dev/ubu-xyz/.. which however does not exist. I assume it is caused by previours error messages, but googling them doesnt help me further.

Thanks!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.