Find the answer to your Linux question:
Results 1 to 6 of 6
I was thinking, can I use dd to copy partition(ext 3) over to another partition in another drive?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319

    dd


    I was thinking, can I use dd to copy partition(ext 3) over to another partition in another drive?
    The best things in life are free.

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Indeed you can, but only to an equal-sized or larger partition. If the new partition is larger, you will also need to enlarge the filesystem afterwards with the resize2fs program. Other than that, there's no problems with it.

  3. #3
    Linux Engineer
    Join Date
    Jan 2003
    Location
    Lebanon, pa
    Posts
    994
    Yes.

  4. #4
    Linux User
    Join Date
    Jun 2003
    Location
    Minnesota, USA yes.....
    Posts
    479
    dd? whats that?

  5. #5
    Linux Engineer
    Join Date
    Nov 2002
    Location
    Queens, NY
    Posts
    1,319
    How can I use the resize2fs program? Do I run that after using dd?
    The best things in life are free.

  6. #6
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    dd is a program that takes input in blocks and outputs it in blocks. It's not _really_ necessary anymore (you could use cat instead), but it can speed up transfer performance a bit if you use a good block size.
    Basically, just run it like this:
    Code:
    dd if=/dev/hdxx of=/dev/hdyy bs=4096
    resize2fs -p /dev/hdyy
    resize2fs without any size argument resizes the filesystem to fit the partition on which it resides.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •