LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-13-2009, 10:47 AM   #1
ctkroeker
Senior Member
 
Registered: May 2005
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
DD image of whole disk won't mount


A Windows laptop has it's "FAT" partition table screwed up. So I dd'd it as an image to an external drive. Now, before I mess arround with restoring the laptop's partition table, I want to make sure I can acces my dd backup image. I have tried mounting it but no go.
Code:
sfdisk -l -uS sda.img
reports "cannot get geometry" and "sector 0 does not have an msdos signature" and unrecognized partition table type".
I'm using a Knoppix liveCD for this. Have tried most stuff on this site http://pronweb.de/node/15

Thanks in advance.

UPDATE: apparantly its a FAT partition...

Last edited by ctkroeker; 01-13-2009 at 11:50 AM.
 
Old 01-13-2009, 11:40 AM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Did you try this?
Code:
# losetup /dev/loop0 sda.img
# fdisk -lu /dev/loop0
Personally, I would probably have tried mounting it as a loop device, first.
 
Old 01-13-2009, 11:53 AM   #3
ctkroeker
Senior Member
 
Registered: May 2005
Posts: 1,565

Original Poster
Blog Entries: 1

Rep: Reputation: 50
Yep, tried losetup. I tried windows recovery on the laptop, doesn't recognize that windows is on it and fixmbr and all the other tools just don't help. Apparantly it's not the mbr or first boot sector that is the problem. it's more like the filesystem is corrupted or just plain inacsesible.

UPDATE: apparantly its a FAT partition...
 
Old 01-13-2009, 12:00 PM   #4
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
You could run testdisk on the drive image to see if it can find your NTFS/FAT Windows partition, and if it can, it can rebuild the partition table for you. And if I remember correctly, you don't even need to mount the drive image as a loop device, you can simply do:
Code:
sudo testdisk sda.img
If you are using testdisk version 6.9 or greater, choose "No Log", select the drive image and "proceed", "Intel", "Analyze", "quick search", Y/N depending on if there are any Vista partitions on the drive, hit enter to continue, and select "Deeper Search" so it does a deeper search, which could take a while. It's the deeper search results that you are after if you want the best accuracy and chance of recovering the original partition(s). Once testdisk completes the deeper search and presents you with a list of partitions, select each one in turn, press "p" to get a directory listing, and any partitions that give you a directory listing are the ones you could recover. Good luck and let us know how it goes.
 
Old 01-13-2009, 02:22 PM   #5
ctkroeker
Senior Member
 
Registered: May 2005
Posts: 1,565

Original Poster
Blog Entries: 1

Rep: Reputation: 50
Thanks CJS, I did a testdisk recovery from a Trinity Rescue CD and it fixed so it now boots XP after doing fixmbr on the XP cd. Thank you very much!
 
  


Reply

Tags
dd, image, mount



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
make bootable CD from hard disk image and mount root file system as ramfs Mr.J Linux - Embedded & Single-board computer 1 08-19-2008 07:29 AM
clonezilla clone disk to image, when restore from image to destination hdd problem. hocheetiong Linux - Newbie 3 05-06-2008 07:59 PM
Mount an image as virtual disk KnottyBoy Linux - Software 1 10-19-2005 04:24 AM
How do I mount a windows (vfat) disk image under Linux? brownb2 Linux - Software 2 06-19-2004 02:47 PM
What does "loop-mount the disk image" mean ? karans Linux - Distributions 1 10-29-2003 08:21 AM

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

All times are GMT -5. The time now is 10:23 PM.

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