Linux.com

Home Linux Community Forums Linux Distributions Ubuntu use ubuntu to clone a windows hard drive with ntfs

use ubuntu to clone a windows hard drive with ntfs

Link to this post 14 Mar 11

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?

Link to this post 14 Mar 11

Instead of cloning the entire harddrive, you could clone a particular partition (lets say /dev/sda1) to a disk image by running

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:

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.

sudo mkdir /mnt/image

You can then mount the image to the dedicated location by running the following command:

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.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board