Ok first we need to make an exact backup. You will need to install ddrescue in ubuntu and and have enough space to store an 80GB image, or another hard drive 80GB or more to be the backup.
Code:
sudo apt-get install gddrescue
sudo apt-get update
Now that ddrescue is installed, let's double check our drives with
According to your previous run of fdisk, the 80GB drive was at /dev/sdd also take note that the drive has 156301488 sectors. If you connect another drive for the image, it might be located at /dev/sde
If you want to make an image and save it to your 500GB drive you will want to mount that drive then switch now to that drive i.e this may be different so make sure you check the mount point of your drive.
To make a backup as an image run this command (as long as the drive is still /dev/sdd)
Code:
sudo ddrescue -n -v /dev/sdd imagename.img logfilename
imagename and logfilename can be changed to whatever you want
if you want to clone it to a HDD use this command
Code:
sudo ddrescue -f -n -v /dev/sdd /dev/sde logfilename
sdd and sde will change depending on where your drives are installed, so double check fdisk and double check your command. The first drive is your source. If you get it backwards your data will be overwritten.
Assuming the backup completes without error, we will be able to continue. If if does indicate an error let it complete and I can give you further commands to try and get a complete clone.
Sometimes ignorant software will reformat a drive as MBR NTFS, yet leave the GPT sectors alone. This really confuses Ubuntu. However, this does not really explain why Windows wanted to scan and fix your drive in the first place, since after this happens Windows usually just sees the drive as MBR NTFS. To get rid of GPT and allow Ubuntu to see the drive properly, we have to rewrite sector 1 and the last sector of the hard drive, which is sector 156301488 in your case.
Code:
dd if=/dev/zero of=/dev/sdd bs=512 count=1 seek=1
dd if=/dev/zero of=/dev/sdd bs=512 count=1 seek=156301488
Now run fdisk and see what Ubuntu says about your drive.
Please note that this assumes that you reformated the drive with a MBR partition table.
Bookmarks