How do you copy a HDD partition as a folder to another HDD?


Results 1 to 6 of 6

Thread: How do you copy a HDD partition as a folder to another HDD?

  1. #1
    Join Date
    Aug 2006
    Location
    st. louis, mo.
    Posts
    15

    How do you copy a HDD partition as a folder to another HDD?

    Sorry if in the wrong area.

    I have a PC that I want to copy its internal HHD partition c: as a folder to another external HDD.

    The PC in question has a problem and won't boot. I have a thumb drive with Dabien 12 on it that I want to use to copy the entire c: drive to an external HDD. I have tried using Dolphin but it doesn't give me that option. Unlike windows, I can not right click a folder or use control/click folder to check multiple folders to copy. and then paste to the external HDD.This is frustrating...
    All I'm trying to do is copy the entire partition to another drive so I can re-install my os on the internal and be able to copy the saved files back onto it.

    Please help..
    Thanks.

  2. #2
    Join Date
    Apr 2011
    Location
    Largo, FL.
    Posts
    76
    Are you sure the drive isn't bad and caused the no boot situation?

    You could take the drive out and hook it up as a slave drive in another pc or external closure and then copy away.

  3. #3
    Join Date
    Aug 2024
    Posts
    1
    You can use a tool like dd in the terminal to clone the entire partition to an external HDD; just run dd if=/dev/sdX1 of=/dev/sdY1 bs=4M (replace sdX1 with your source partition and sdY1 with your destination partition.


    **Links removed by Site Administrator so it doesn't look like you're spamming us. Please don't post them again.**

  4. #4
    Join Date
    Jul 2024
    Posts
    7
    If you must copy everything including the system files you might want to consider using rsync instead. Example:

    bash
    Копировать код
    The following command must be executed with sudo level access: sudo rsync -av /path/to/internal/partition/ /path/to/external/drive/
    This is important to maintain copies of all files including the hidden ones in the personal computer. When this is through, all your files will be backed on the external drive and the operating system can be reinstalled. Give me a hint if you need any more help on that!

  5. #5
    Join Date
    Dec 2024
    Posts
    8
    You can use the dd command in Linux to copy the partition to an external drive. For example:

    javascript

    sudo dd if=/dev/sda1 of=/dev/sdb1 bs=4M status=progress
    Just replace /dev/sda1 with the source partition and /dev/sdb1 with the destination drive. Make sure to double-check the drives to avoid overwriting anything important.

  6. #6
    Join Date
    Jan 2025
    Location
    Netherlands
    Posts
    2
    To copy your HDD partition (C to an external HDD using Debian 12
    You can use the dd command or rsync via the terminal. You can use these ways

    1: Using dd (Exact Partition Clone)
    Boot into Debian 12 from your thumb drive.

    Open a terminal and identify your drives using the lsblk command. Find your internal HDD partition (likely /dev/sdX1) and the external HDD (e.g., /dev/sdY).

    Run the following command to clone the partition to the external HDD:

    bash
    Copy code
    sudo dd if=/dev/sdX1 of=/path/to/external/hdd/image_file.img bs=64K conv=sync
    Replace /dev/sdX1 with your internal HDD partition and /path/to/external/hdd with the external HDD path.
    This will create an image file of your partition on the external HDD.
    To restore later, use:

    javascript
    Copy code
    sudo dd if=/path/to/external/hdd/image_file.img of=/dev/sdX1
    Option 2: Using rsync (Copy Files Only)
    Mount both your internal partition and external HDD.
    Use rsync to copy the files:
    bash
    Copy code
    sudo rsync -avh /path/to/mounted/internal_partition/ /path/to/mounted/external_hdd/
    This will preserve file permissions and copy everything.

Posting Permissions

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