Trouble mounting dd image
I am trying to mount an image I made of an NTFS drive that contained three partitions, 2 of them fat32 and one NTFS. When I created the image I used the command "dd bs=16M if=/dev/hda | bzip2 | pv -b | dd bs=16M of=/path/name.img.bz2. I went ahead and decompressed it using bzip2 -d, but when I try and mount it I get an error. I am thinking the issues is caused by the fact that I have multiple partitions of different types, or the fact that I used the bs=16M option. The only partition I really want to mount is the NTFS partition. Can someone please give me some advice on why I am having this issue and how I can go about getting it resolved. Any help is greatly appreciated! I am using Mandriva Free Spring 2007.1 as my distro. Here is a copy of my shell session. Thanks again!
PS I tried omitting the Blocksize option and changing it to 16M, neither seemed to help. [root@mbox ~]# mount /mnt/lmirror/Back\ Up/zap.img /mnt/zap/ -t ntfs -o loop=/dev/loop3,blocksize=1024 mount: wrong fs type, bad option, bad superblock on /dev/loop3, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so [root@mbox ~]# so -bash: so: command not found [root@mbox ~]# dmesg|tail NTFS-fs warning (device loop0): is_boot_sector_ntfs(): Invalid boot sector checksum. NTFS-fs error (device loop0): read_ntfs_boot_sector(): Primary boot sector is invalid. NTFS-fs error (device loop0): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover. NTFS-fs error (device loop0): ntfs_fill_super(): Not an NTFS volume. NTFS-fs error (device loop3): parse_options(): Unrecognized mount option blocksize. NTFS-fs warning (device loop3): is_boot_sector_ntfs(): Invalid boot sector checksum. NTFS-fs error (device loop3): read_ntfs_boot_sector(): Primary boot sector is invalid. NTFS-fs error (device loop3): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover. NTFS-fs error (device loop3): ntfs_fill_super(): Not an NTFS volume. NTFS-fs error (device loop3): parse_options(): Unrecognized mount option blocksize. [root@mbox ~]# |
Hi.
Image the partition you need, not the whole disk Code:
dd bs=16M if=/dev/hda3 | bzip2 > /path/name.img.bz2 |
Quote:
Good idea except that disk is no longer intact. It has been formatted and overwritten. I got the information I needed by writing the image file to an entire disk such as "# dd bs=16M if=./name.img | pv -b | dd bs=16M of=/dev/sdg", but it would have been nice not to have to find an old hard drive and put it in the USB caddy. If there was a way to get just a single part to mount from the image or mount the image even though it has multiple partitions of different fs types that would have been easier. Perhaps next time I will create a separate image file from each partition. Thanks, Mike |
All times are GMT -5. The time now is 07:30 PM. |