News:

The Latest electronic and computer Tips that work!

Main Menu

Guide DDresuce (copy windows hdd to other hdd)

Started by branx86, September 28, 2015, 11:02:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

branx86

DDrescue
1st. Create mount point: example (mkdir mountpoint)

2nd. mount -t cifs //IpAddress  /mountpoint -o user=  ,pass= ,sec=ntlm  for 192.168.1.192 user=CLonezilla Pass=Clone

3rd. dd_rescue  -d -r3 --no-split /dev/sda /mountpoint/Imagename
                         or
     dd if=/dev/sda of=/mnt/point/imagename.img conv=notrunc,noerror,sync     

-d tells ddrescue to use direct disk access and ignore the kernel's cache
-r3 tells ddrescue to retry bad sectors 3 times before giving up.

TO Restore
     dd_rescue -d -f -r3 /path/to/image  /dev/Harddrive(sda) restore.logfile
                              or
      dd if=/path/to/image of=/dev/Harddrive(sda,sdb)

-f Force overwrite of outfile, a device or partition to a Harddrive.
Mount Image for Gparted
losetup /dev/loop0 /mountpoint/Imagename
partprobe /dev/loop0
gparted /dev/loop0

Unload Image
losetup -d /dev/loop0

Mount Image:
1st. try see if OS will select correct filesystem :   mount /disk.img /mntpoint -o loop
mount /disk.img /mntpoint -t vfat -o loop=/dev/loop      vfat if filesystem is fat,change to ntfs or ext3
if you can't figure out filesystem. ( parted fileName.img  unit  B  print  ) This will give you the File system and the start address of the image.      mount -o loop,ro,offset=startaddress fileName.img mountpoint