[lug] question about dd
Steve Casal
steve_casal at hotmail.com
Sun May 6 11:53:28 MDT 2001
Thanks for your help. I'm aware of the issues you raised but I plan on
creating EVERY sector that will go on the disk. To be more specific, I won't
be using a known filesystem. This is a proprietary filesystem that I'm
making. I guess what I really want is your command with the file and hd
reversed ... kind of like this:
dd if=file of=/dev/hd<n>
The question I was having is if I need any other command line options and
from the looks of things I may not. The other quesiton is, can I just create
a binary file that contains a byte for each available byte on the disk and
they use the dd command above?
Thanks for your help.
Steve
>From: David Trowbridge <jupiter at flatirons.org>
>Reply-To: lug at lug.boulder.co.us
>To: <lug at lug.boulder.co.us>
>Subject: Re: [lug] question about dd
>Date: Sun, 6 May 2001 10:21:46 -0600 (MDT)
>
>This is fiarly simple, but there are a couple issues I'd like to raise:
>first, the command to do this is:
>dd if=/dev/hd<n> of=file
>
>The problems with this is that it will copy everything - partition tables,
>disk sizes, etc, so if you use your image to write a drive that is not
>exactly the same size, it will not fill up the disk completely, and may
>not even work at all.
>
>-David
>
>-------------------
>David Trowbridge
>jupiter at flatirons.org
>http://jupiter.babylonia.flatirons.org
>
>"Base 8 is just like base 10 really...if you're missing two fingers"
> -Tom Lehrer
>
>On Sun, 6 May 2001, Steve Casal wrote:
>
> > Hi,
> > I would like to create a file that's an image of exactly what I want
>on
> > a given hard disk. In other words I want to specify the exact contents
>of
> > each sector of the given drive. I would think that I should be able to
> > create some kind of file that can act as an "image" of the drive and
>then
> > use dd to get this so called image on the drive. Unfortunately, I'm not
>very
> > familiar with dd and have never done anything like this before. I'm
>hoping
> > someone can give me an idea of how to accomplish this.
> >
> > Steve
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> > _______________________________________________
> > Web Page: http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> >
>
>_______________________________________________
>Web Page: http://lug.boulder.co.us
>Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
More information about the LUG
mailing list