Re: dd to backup fat32 drive?



hazzmat <hazzmat@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Can I dd the C drive Fat32 formatted from the laptop to an outfile (eg,
> drivec.img) on one of the PC's ext3 formatted harddrives, and then
> reverse that from the drivec.img outfile to a new 2.5" harddrive with
> one large fat32 partition on it, and will the new drive boot?

If you only do dd on the partition (called something like /dev/hda1) the
new drive will not boot unless it also has a Microsoft master boot record
in the MBR. If you do dd on the entire drive (called something like
/dev/hda) you will also get the MBR including the partition table that you
will need.

However, both the partition and the master boot record contain data about
the geometry of the harddrive. If this geometry differs between the old
drive and the new drive you might not be able to use the dd method.

A safer way to copy the data would be to use some program like tar.
However, if you are using tar you might lose some attributes like hidden,
system and archive for files. To restore your tar archive you will also
have to create a file system on the new disk with a tool like gnu parted
or mkdosfs. After that you will also have to use a tool like ms-sys to
make the system bootable.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc7(at)uthyres.com Examples of addresses which go to spammers:
root@xxxxxxxxxxxxx root@localhost

.



Relevant Pages

  • Re: Partitioning new harddrives
    ... I too have always been of the assumption of keeping the harddrives on the ... same channel and the slower, burners on their own,seperate channel but during ... I will,as soon as finances allow,look into "Partition Magic" or it's ... I always put the HDDs on IDE 0 and CD/DVD drives on IDE 1. ...
    (microsoft.public.windowsxp.general)
  • Re: Unable to access or detect second harddrive
    ... the 2 harddrives. ... 120 gb the media storage one and the problem ... 80 gb is the windows + linux ... 1rst partition ...
    (Ubuntu)
  • Re: Active Partition
    ... Bobbi, go ahead with your plan to use fdisk to set the Active Partition. ... > 3 IDE harddrives ... > accomodate more harddrives. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: missing memory
    ... of the windows cd as described below. ... of disk space. ... How to partition and format your hard disk by using the Windows XP Setup program on http://support.microsoft.com/kb/313348 ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Old PC - ASUS P5A-B - Will not boot Linux (Ubuntu)
    ... Do not forget to disable the virus protection in the bios to give Linux ... The best place for Lilo is the master boot record of the first harddisk. ... > Does this mean the swap partition is last on the disk? ... >> Ubuntu install itself without errors? ...
    (comp.os.linux.setup)