Re: DD Command question
- From: Lew Pitcher <lpitcher@xxxxxxxxxxxx>
- Date: Sat, 30 Jun 2007 10:16:12 -0400
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. ------
.
- Follow-Ups:
- Re: DD Command question
- From: joe
- Re: DD Command question
- References:
- DD Command question
- From: joe
- DD Command question
- Prev by Date: DD Command question
- Next by Date: Re: DD Command question
- Previous by thread: DD Command question
- Next by thread: Re: DD Command question
- Index(es):
Relevant Pages
|