Re: DD Command question



joe wrote:
Just started using Linux, so forgive my newbiness.
Lets say I have 1 hard disc (HDA) with only 1 partitioin (HDA1), and I
wanted to DD only the first 300MB into an arbritary folder. What DD command
would I need to copy the first 300MB of HDA

dd if=/dev/hda of=/some/arbitrary/folder/hda.data bs=1024 count=300M

and how would this differ from DD`ing the first 300MB of HDA1 ?

Not by much - just the name of the input device
dd if=/dev/hda1 of=/some/arbitrary/folder/hda1.data bs=1024 count=300M

But, if you mean, what would the difference in the data be, then...
hda1 is your first partition. On the disk, it starts a few tracks after the
start of hda. hda is the whole disk drive. So, when you capture stuff from
hda, you are capturing the MBR, the partition table, and the start of the
first partition (in that order), while when you capture from hda1, you are
only capturing the first partition.

Thanks in advance.

You're welcome

--
Lew Pitcher

Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------

.



Relevant Pages

  • Re: how to get permission to mount devices and save files as user
    ... >> That's the FIRST hard drive, hda, and the FIRST partition on it, hda1. ... >> then you don't tell us if it is or not, nor what command you issued, so ...
    (comp.os.linux.misc)
  • Re: DD Command question
    ... command would I need to copy the first 300MB of HDA and how would this ... differ from DD`ing the first 300MB of HDA1? ... unallocated sectors). ... command and you will be appropriately rewarded. ...
    (alt.os.linux)
  • Re: DD Command question
    ... command would I need to copy the first 300MB of HDA and how would this ... differ from DD`ing the first 300MB of HDA1? ... Welcome to the world of linux, Joe! ... command and you will be appropriately rewarded. ...
    (alt.os.linux)
  • Problem with HD
    ... I don't know what hapen in my Fedora Core 4, i have it installed, and ... hda: ST3120022A, ATA DISK drive ... ReiserFS: hda1: found reiserfs format "3.6" with standard journal ...
    (Fedora)
  • Re: grub error 22. Bad partition table? [solved]
    ... I misunderstood by not seeing the difference between hda and ... get the idea that while there is a _Master_ BR at the start of hda, ... there is also a space at the start of hda1 and each partition - for the ... purpose of each partition being able to be bootable and hold a boot manager. ...
    (Fedora)