LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2007, 11:19 AM   #1
mpmackenna
Member
 
Registered: May 2006
Posts: 69

Rep: Reputation: 15
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 ~]#

Last edited by mpmackenna; 11-24-2007 at 11:20 AM.
 
Old 11-24-2007, 01:47 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

Image the partition you need, not the whole disk
Code:
dd bs=16M if=/dev/hda3 | bzip2 > /path/name.img.bz2
Dave
 
Old 11-24-2007, 03:24 PM   #3
mpmackenna
Member
 
Registered: May 2006
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ilikejam View Post
Hi.

Image the partition you need, not the whole disk
Code:
dd bs=16M if=/dev/hda3 | bzip2 > /path/name.img.bz2
Dave

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble mounting dd image file of corrupt floppy ArnaudL Linux - Software 1 11-29-2006 10:24 AM
mounting a .cue image Valkyrie_of_valhalla Linux - Software 9 11-12-2006 01:11 AM
mounting the initrd image d0tc0mguy Linux - Newbie 1 09-29-2006 05:16 AM
Mounting an ISO image from a CD different than mounting from HD? NoTiG Linux - Software 4 08-03-2005 04:40 PM
mounting ISO from an image true_atlantis Linux - Newbie 2 01-20-2004 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration