LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-02-2010, 04:01 AM   #1
jdnow09
Member
 
Registered: Jun 2009
Posts: 42

Rep: Reputation: 16
Accessing .dd file extension


Hello,

I am trying to access a .dd file extension. Do I have to mount it?


VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd

# fdisk -ul VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd

Blocks Id System
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd1 8192 1535999 763904 5 Extended
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd4 * 32 8191 4080 4 FAT16 <32M
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd5 8224 106495 49136 6 FAT16
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd6 106528 204799 49136 6 FAT16
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd7 204832 430079 112624 fc Unknown
VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd8 430112 1535999 552944 6 FAT16

Partition table entries are not in disk order
[root@cent1 installer]#

I am trying to grab some files off this file to create a PXE vmware boot.



john

Last edited by jdnow09; 03-02-2010 at 04:20 AM.
 
Old 03-02-2010, 05:05 AM   #2
adiehl
LQ Newbie
 
Registered: Nov 2006
Location: Mannheim, Germany
Distribution: Debian & Ubuntu
Posts: 11

Rep: Reputation: 0
As there are several partitions in the file, you have to mount a specific partition.
For this, you have to tell mount the exact position and size of the partition you want to mount. Your output tells you at which block a partition starts and when it ends. Blocks have the size 512.

E.g., if you want to mount the 5th partition which starts at 8224 and ends at 106495, so it starts at byte 8224*524=4210688 and ends at 106495*512=54525440, the size is 54525440-4210688=50314752. You can mount it like this:

Code:
mount -o loop,offset=4210688,sizelimit=50314752 VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd5 /mnt
 
Old 03-02-2010, 11:34 AM   #3
jdnow09
Member
 
Registered: Jun 2009
Posts: 42

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by adiehl View Post
As there are several partitions in the file, you have to mount a specific partition.
For this, you have to tell mount the exact position and size of the partition you want to mount. Your output tells you at which block a partition starts and when it ends. Blocks have the size 512.

E.g., if you want to mount the 5th partition which starts at 8224 and ends at 106495, so it starts at byte 8224*524=4210688 and ends at 106495*512=54525440, the size is 54525440-4210688=50314752. You can mount it like this:

Code:
mount -o loop,offset=4210688,sizelimit=50314752 VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd5 /mnt
Thanks a lot for your response. I will give it a try tonight.

Edit:

mount -o loop,offset=4210688,sizelimit=50314752 VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd5 /mnt/usbdrive (it did not work for me, saying something about the incorrect directory).


I was able to get it to work with this:

Code:
mount -o loop VMware-VMvisor-big-3.5.0_Update_3-123629.i386.dd /mnt/usbdrive -o offset=4210688
Thanks again.

john

Last edited by jdnow09; 03-09-2010 at 06:48 PM.
 
  


Reply

Tags
loop, mount


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux file extension vs Dos file Extension? manaa Linux - Newbie 6 02-12-2009 04:19 PM
bash: renaming file extension based on actual file type alekone Linux - General 9 12-28-2008 09:12 AM
why when redirecting output to a file any file extension seems to be fine? dr_zayus69 Linux - General 1 05-21-2005 04:09 AM
.la file extension n_hendrick Linux - Newbie 1 01-11-2004 04:20 PM
The FIle with no extension! JafferAB Linux - General 14 01-30-2003 09:54 PM


All times are GMT -5. The time now is 05:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration