I cloned one hard drive to another and things are working well. Except for my NTFS volume not taking up the entire partition (due to the older volume being smaller).
Doing this:
sudo ntfsresize -x /dev/sdb3
I get this error:
ERROR: Could not get the old volume parameters from the backup bootsector
How do I fix this?
In reply to Luciano (StackExchange wouldn't allow me to comment, so I must put this in an own anser) - I had the same problem today and will write here the exact steps for testdisk...
[Edit] After reboot into Windows-Recovery using "starting-help" (or whatever it is called in English), it said something like "Disk is being repaired, this may take over an hour" - but it was finished after about 20 seconds.
And yay! I can now boot into Windows again, AND the NTFS-filesystem covers the entire partition. So thanks again, Luciano for the excellent suggestion.
I had a similar problem. I solved it in Windows by using Disk Management (
diskmgmt.msc
) and growing the partition by 1 MB. This resized the file system to fill the entire partition.ntfsresize
doesn't seem to have any options to ignore the backup sector. However, that message may indicate that there is something wrong with the filesystem. I suggest that you first runntfsfix
on the partition and then boot Windows and runchkdsk
.I ended up in this situation after trying to clone an ntfs partition onto an SSD. I didn't use the same starting sector (which is a no-no, as described e.g. here), as I wanted to ensure that everything was aligned to the 4K sector boundaries (whether this worked or not is another story). I initially shrunk the original disk to a smaller size than the target SSD, to ensure it would fit. After copying over the partition successfully with ntfsclone, I tried to expand it as you have done, and got the same error. After this, I did the following:
n.b. Do this at your own risk, as a last resort.
PC/Intel
as mbr typeanalyze
. This should show the old boot sector and backup are identical (but as we know they're not).write boot sector
. This confusingly gives a warning saying that the boot sector you're going to write does not match what is on the disk.FSCK /F C:
(where C: is your drive) - this finds errors and fixes them