Re: DD Command question




"Lew Pitcher" <lpitcher@xxxxxxxxxxxx> wrote in message
news:70e23$46866586$cef8bf9d$30741@xxxxxxxxxxxxxxxxxxxx
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


For some reason, linux didn`t listen to `count=300M`
When the seconds ticked by, I knew I was in trouble.
Fortunately I put the output file in a small (500Mb) partition. The dd ran
out of disc space.
So why didn`t it stop at 300Mb ?
Is there another way of specifying 300Mb to copy ?
I really appreciate your help.




.



Relevant Pages

  • Re: DD Command question
    ... wanted to DD only the first 300MB into an arbritary folder. ... would I need to copy the first 300MB of HDA ... Is there another way of specifying 300Mb to copy? ...
    (alt.os.linux)
  • Re: DD Command question
    ... wanted to DD only the first 300MB into an arbritary folder. ... What DD command ... would I need to copy the first 300MB of HDA and how would this differ from ... DD`ing the first 300MB of HDA1? ...
    (alt.os.linux)
  • PATA failure with piix, works with libata
    ... Probing IDE interface ide0... ... hda: drive not ready for command ... the IDE interrupt is firing about ...
    (Linux-Kernel)
  • Re: Kernel 2.6.0-testX show stoppers
    ... > hda: drive not ready for command ... then your IDE drive wouldn't work anyway! ...
    (Debian-User)
  • 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)