Kako mountati LVM particiju unutar dd imagea?

6 views
Skip to first unread message

zlju...@gmail.com

unread,
Aug 26, 2018, 8:31:26 AM8/26/18
to
Pozdrav,

imam image cijelog diska napravljenog sa dd-om.

[manjaro@manjaro ~]$ sudo fdisk -l /mnt/wdp2tb/ssd120gb_20180826.img
Disk /mnt/wdp2tb/ssd120gb_20180826.img: 111.8 GiB, 120034123776 bytes, 234441648 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
Disklabel type: dos
Disk identifier: 0x13dd4d64

Device Boot Start End Sectors Size Id Type
/mnt/wdp2tb/ssd120gb_20180826.img1 * 2048 999423 997376 487M 83 Linux
/mnt/wdp2tb/ssd120gb_20180826.img2 1001470 234440703 233439234 111.3G 5 Extended
/mnt/wdp2tb/ssd120gb_20180826.img5 1001472 234440703 233439232 111.3G 8e Linux LVM


obično bi to radio sa

mount -o ro,loop,offset=1001470 /mnt/wdp2tb/ssd120gb_20180826.img /mnt/old_disk

ali to kod LVM-a ne prolazi.


Kako iz ovog image-a izvući ovu particiju od 111.3g?

LP

Nikolaj Lazic

unread,
Aug 26, 2018, 4:46:00 PM8/26/18
to
Dana Sun, 26 Aug 2018 05:31:24 -0700 (PDT), zlju...@gmail.com <zlju...@gmail.com> napis'o:
Pa, zar nije offset 1001472*512?

Gyz

unread,
Aug 27, 2018, 2:32:51 AM8/27/18
to
On Sun, 26 Aug 2018 20:45:59 +0000 (UTC), Nikolaj Lazic wrote:


>> Device Boot Start End Sectors Size Id Type
>> /mnt/wdp2tb/ssd120gb_20180826.img1 * 2048 999423 997376 487M 83 Linux
>> /mnt/wdp2tb/ssd120gb_20180826.img2 1001470 234440703 233439234 111.3G 5 Extended
>> /mnt/wdp2tb/ssd120gb_20180826.img5 1001472 234440703 233439232 111.3G 8e Linux LVM
>>
>> obišno bi to radio sa
> > mount -o ro,loop,offset=1001470 /mnt/wdp2tb/ssd120gb_20180826.img /mnt/old_disk
>>
> > ali to kod LVM-a ne prolazi.
>>
> >

>>Kako iz ovog image-a izvuåi ovu particiju od 111.3g?
>>> > LP
>
> Pa, zar nije offset 1001472*512?

xxxx.img
xxxx.img5
???

Valentin Vidic

unread,
Aug 27, 2018, 3:03:05 AM8/27/18
to
On 2018-08-26, zlju...@gmail.com <zlju...@gmail.com> wrote:
> Kako iz ovog image-a izvući ovu particiju od 111.3g?

Mozda kpartx pomogne:

kpartx -av disk.img

--
Valentin

zlju...@gmail.com

unread,
Aug 30, 2018, 3:40:46 AM8/30/18
to
Thanks!
Reply all
Reply to author
Forward
0 new messages