Re: how to use dd command



serge wrote:

What is to be the exact dd command to copy the entire partition(fat32) to ext3.

If you're copying from FAT32 to ext3, dd is not the best utility to choose, IMHO. You'd be better off using cp or rsync or any of the other utilities that operate on files. E.g., 'cp -a /mnt/x/* /mnt/somwhere/'.

Use dd to copy the entire FAT32 filesystem (including filesystem metadata) from one raw device to another. E.g., 'dd if=/dev/sda1 of=/dev/sdb1' (assuming the existing FAT32 filesystem is on /dev/sda1 and you want to copy it to /dev/sdb1---adjust to suit your setup). Then you can mount /dev/sdb1 just as you would with /dev/sda1.

You may find that adding a bs= parameter to set block size speeds things up. Experiment to find the best block size for your situation. E.g., 'dd if=/dev/sda1 of=/dev/sdb1 bs=512k'.

If your hardware is buggy, you may find that adding conv=noerror is helpful. (Note that you might loose data in the middle of one file, but at least subsequent files should be OK.)

This is block to block copy or sth like that.

Yes, dd will make an exact block by block copy---which is why it's better suited to making copies of whole filesystems from one device to another and not for copying files from one filesystem to another.
.



Relevant Pages

  • Re: how to use dd command
    ... If you're copying from FAT32 to ext3, dd is not the best utility to ... Use dd to copy the entire FAT32 filesystem (including filesystem ...
    (comp.os.linux.hardware)
  • Re: Ubuntu - File Copy Seems Resource Intensive
    ... what's your filesystem? ... if you're copying lots of small files, reiserfs may be a better choice ... (it works faster and better for me than ext3) ...
    (Ubuntu)
  • vfat to ext3 without data loss
    ... It's possible to "convert" a vfat (fat32) filesystem to ext3 without loss ...
    (Debian-User)
  • Re: vfat to ext3 without data loss
    ... It's possible to "convert" a vfat (fat32) filesystem to ext3 without loss ...
    (Debian-User)
  • Re: How git affects kernel.org performance
    ... On Sat, 6 Jan 2007, H. Peter Anvin wrote: ... almost no other common system call has to (99% of all filesystem calls can ... directory, it serializes getdents. ... we had the same problem on a file server with ext3. ...
    (Linux-Kernel)