Welcome to the Linux Foundation Forum!

use ubuntu to clone a windows hard drive with ntfs

tryed

sudo ddrescue /dev/sda /home/custom/user/sda_image.img /home/custom/user/logfile

problem is would not mount under /mnt to see if it worked

so tryed

sudo ddrescue /dev/sda /home/custom/user/sda_image.iso /home/custom/user/logfile

the sda_image.img file is 55gb the other one tht is .iso is 0gb

so now trying

dd if=/dev/sda of=/home/custom/usr/sda_image.iso

waiting to see what is going on any body got any advice on how to make the image work?

Comments

  • Posts: 157
    Instead of cloning the entire harddrive, you could clone a particular partition (lets say /dev/sda1) to a disk image by running
    1. sudo dd if=/dev/sda1 of=/path/to/file.img

    If you're unsure about the name the kernel has given the partition you wish to clone, you can check the output of fdisk:
    1. sudo fdisk -l

    After creating an image of a partition as described above, you can then create a mount point for it by running e.g.
    1. sudo mkdir /mnt/image

    You can then mount the image to the dedicated location by running the following command:
    1. sudo mount -o loop /path/to/file.img /mnt/image

    If you cloned the entire harddrive (e.g. you used /dev/sda instead of /dev/sda1), I'm not sure how you would go about mounting the partitions directly inside Linux, since the mount command above only works when you clone a filesystem, not an entire disk. One way to verify that a full harddisk image works could be to load the disk image in a virtual machine, e.g. VirtualBox or QEMU.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training