XxMaCaBrExX
03-28-2001, 09:54 PM
If I have a raw data image that was created by "dd", how do I extract that image out to a directory on my HD? :confused:
|
Click to See Complete Forum and Search --> : dd ?? XxMaCaBrExX 03-28-2001, 09:54 PM If I have a raw data image that was created by "dd", how do I extract that image out to a directory on my HD? :confused: MBMarduk 03-28-2001, 09:57 PM Explain? What's the image? A CDrom ISO-image? A floppy image? --->You can mount these as if they were block devices. XxMaCaBrExX 03-28-2001, 10:03 PM It's a floppy image. What I'm trying to do is create a bootable rescue disk and I want to put the Partition Image utility on it. If you don't know what that is, it's basically the Linux equivilant of Ghost, or Drive Image. So if I mount the image like a block device, and I add a file to the directory structure, and then unmount it, will that do what I need? If so, what are the mount flags for that? THX! :D MBMarduk 03-28-2001, 10:13 PM Ooh boy...I said you can mount it, but I didn't say I knew how to :o. Anyways, IF you mount it's still a file of a certain size, so I dunno what mounting read/write-enabled will do to the file/your box if anything... I know from the CD-writing HOW-TO @ linuxdoc.org that you can mount CD-images (not neccesarily ISOs) like this: "mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom" Sorry, it's 4:15 AM over here; I'm going to sleep. Good luck, -Mike Strike 03-28-2001, 11:03 PM Just dd it in reverse... switch the of with the if. XxMaCaBrExX 03-29-2001, 10:44 AM Uhh, sorry guys, but non of that seems to e working. There has got to be a way to do this, and I bet it's really stinkin' simple, too! :p :D MBMarduk 03-29-2001, 10:56 AM OK, dd rips RAW data (like...REALLY RAW). Remember: if -for example- you rip say an EMPTY, freshly formatted partition on your HDD thats 1 GB large, the dd-file will also be 1 GB large but filled with only the filesystem-format-information. Plain english: it'll be a 1 GB file full of nothing. (= no data except the partition info written across the partition; blocks, sectors, inodes etc.) If you want to extract this 1 GB file you'll need to pair it up with a similar partition with a *perfect* 1 GB match to write it TO. Once written, that partiton will be...well...empty. So in the case of your floppy: the only way I see to "extract" the data to your HDD is to simply MOUNT it _AS_ a floppy (mount it on /mnt or a new mount point) cd into the dir and copy the files elsewhere. Goodluck -Mike bdg1983 03-29-2001, 11:38 AM Would the 'rawrite' utility (on the install CD) work for what you want? justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |