Как просмотреть полные дисковые данные (больше чем один раздел) клонированный с dd

Это до практики сайта и предпочтений.

Единственное "правило", которое я предложил бы, состоит в том, какой бы ни один Вы выбираете, последовательны. Если Вы управляете многими сетями или одной большой сложной сетью с большим количеством подсетей, и иногда маршрутизатор в 192.168.x.1 и иногда на 192.168.x.254..., который является отличным способом смутить всех.

3
задан 16 January 2012 в 13:50
2 ответа

In Linux you can use kpartx. First see with kpartx -l /mnt/fulldisk.img to see if it can recognize the partition layout. If it can, kpartx -a /mnt/fulldisk.img makes your partitions available under /dev/mapper/loop0pX where X is partition number.

You can then mount those partitions with

mount -o loop /dev/mapper/loop0pX /some/mount/point

Just replace X with your desired partition number.

After you are finished, use umount /some/mount/point and kpartx -d /mnt/fulldisk.img to properly disconnect your disk image.

2
ответ дан 3 December 2019 в 06:15

All recent kernels (it was added somewhere around 2.6.2x) support partition tables on loop devices. Only the default is to disable this.

modinfo loop should give you information whatever it supports a max_part parameter. If it does, add to modprobe.conf

options loop max_part=16

and do rmmod loop and modprobe loop (all loop devices must be unused for it to work). This way, when mounting a single image using a loop device, all partitions will be automatically available:

losetup /dev/loop0 /mnt/fulldisk.img
mount /dev/loop0p1 /mnt/part1
mount /dev/loop0p2 /mnt/part2
2
ответ дан 3 December 2019 в 06:15

Теги

Похожие вопросы