This page was exported from phaq
[ http://phaq.phunsites.net ] Export date: Sat Jun 10 0:53:57 2023 / +0000 GMT |
After making a backup from a hard disk ta a disk image using plain old 'dd', I was just looking into mounting it using the Linux loopback device. If you 'dd' a single partition into an image file, then this is very straight forward. But if your image file contains multiple partition partitions including the partition table itself, then you need to take additional steps. So the first thing to know is the exact offset of the partition to be mounted. You may examine this easily using parted. Just provide it with the path to the image file instead of a block device.
Now switch parted to use 'Byte' units, then print the partition table: (parted) unit B (parted) print Model: (file) Disk /root/full_hd.dd: 8012390400B Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1048576B 8012169215B 8011120640B primary ext4 boot Keep a record of the 'Start' offset, you'll need this shortly. Quit parted using the 'quit' command. Let's look into mounting the partition: pass the partition offset to the mount command using the 'offset=' option like this:
It may well be possible, that receive this error message as a result to your mount command if you try to mount the disk image read-only:
In this case, examining the system logs, may reveal something like this:
To get around this, try adding the 'noload' option to skip journal recovery:
|
Powered by [ Universal Post Manager ] plugin. HTML saving format developed by gVectors Team www.gVectors.com |