Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old March 1st, 2008   #1
TheCowGod
First Cup of Ubuntu
 
Join Date: Jan 2008
Location: California
Beans: 9
Ubuntu 9.10 Karmic Koala
Send a message via AIM to TheCowGod
Question mount dd image of and entire disk

My grandmas computer crashed and I offered to fix it. It ended up being a borked disk drive, she wants me to see if I can get the files off of it. I used ddrescue if=/dev/sda of=/mnt/storage/diskimage to image the entire drive. Now I need to figure out how to mount the image so I can retrieve the files.
When I try to mount the image I get this error
Code:
[cowgod@ubuntu /mnt/storage]$ sudo mount -o loop -t ntfs ./disk_image2 /home/cowgod/Desktop/drive_image/
./disk_image2: No such file or directory
the output from fdisk -l shows that there are two partitions in the image, but I cannot figure out how to mount the one i need.
Code:
[cowgod@ubuntu /mnt/storage]$ fdisk -l disk_image 
You must set cylinders.
You can do this from the extra functions menu.

Disk disk_image: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x41172ba5

     Device Boot      Start         End      Blocks   Id  System
disk_image1               1           4       32098+  de  Dell Utility
disk_image2   *           5        4862    39021885    7  HPFS/NTFS
Partition 2 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(4861, 254, 63)
Any help is appreciated.
Thanks, John
TheCowGod is offline   Reply With Quote
Old March 1st, 2008   #2
TheCowGod
First Cup of Ubuntu
 
Join Date: Jan 2008
Location: California
Beans: 9
Ubuntu 9.10 Karmic Koala
Send a message via AIM to TheCowGod
[SOLVED]: mount dd image of and entire disk

Ok i figured it out. You need to do a fdisk -u -l ./disk_image
.
Code:
[cowgod@ubuntu ~]$ fdisk -u -l /mnt/storage/disk_image 
You must set cylinders.
You can do this from the extra functions menu.

Disk /mnt/storage/disk_image: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x41172ba5

                  Device Boot      Start         End      Blocks   Id  System
/mnt/storage/disk_image1              63       64259       32098+  de  Dell Utility
/mnt/storage/disk_image2   *       64260    78108029    39021885    7  HPFS/NTFS
Partition 2 has different physical/logical endings:
     phys=(1023, 254, 63) logical=(4861, 254, 63)
then take the start of the partition that you want to edit 64260 in this case and multiply it by 512 ie 512*64260=32901120

then mount like this:
Code:
[cowgod@ubuntu ~]$ sudo mount -o loop,offset=32901120 -t auto /mnt/storage/disk_image /home/cowgod/Desktop/drive_image
Hope this helps someone!
TheCowGod is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 08:30 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry