Partition size
by platypo from LinuxQuestions.org on (#57S9M)
I want to rescue a 1 TB partition from an external hd to an internal 1TB drive using ddrescue. The external hd /dev/sdc has a damaged ntfs partition /dev/sdc1 wich i want to rescue.
Gparted indicates 1953523312 sectors for /dev/sdc1 and it can't be checked/repaired nor mounted ("can't have a partition outside the disk").
lsblk -b shows:
Code:/dev/sda: 100020 4886016 bytes
/dev/sda1 (currently formatted as ext2): 100020 3091968 bytes
/dev/sdc: 100020 4885504 bytes
/dev/sdc1 (the damaged ntfs partition): 100020 3836928 bytesI successfully used ddrescue /dev/sdc to /dev/sda including the partition table, resulting in two equal volumes with the same errors, but showing that it would be technically possible.
Writing /dev/sdc1 to /dev/sda1 formatted as ntfs failed because /dev/sda1 was somewhat 750000 bytes short.
I have formatted the internal 1TB hd serveral times now. Besides not having the time for trial and error i am afraid of damaging either of the devices.
My question is: what partition type provides the most available space of a device so i can get more than 1000203836928 bytes out of it, and: could someone maybe rule out or confirm by the numbers above wether or not this whole plan technically could work?


Gparted indicates 1953523312 sectors for /dev/sdc1 and it can't be checked/repaired nor mounted ("can't have a partition outside the disk").
lsblk -b shows:
Code:/dev/sda: 100020 4886016 bytes
/dev/sda1 (currently formatted as ext2): 100020 3091968 bytes
/dev/sdc: 100020 4885504 bytes
/dev/sdc1 (the damaged ntfs partition): 100020 3836928 bytesI successfully used ddrescue /dev/sdc to /dev/sda including the partition table, resulting in two equal volumes with the same errors, but showing that it would be technically possible.
Writing /dev/sdc1 to /dev/sda1 formatted as ntfs failed because /dev/sda1 was somewhat 750000 bytes short.
I have formatted the internal 1TB hd serveral times now. Besides not having the time for trial and error i am afraid of damaging either of the devices.
My question is: what partition type provides the most available space of a device so i can get more than 1000203836928 bytes out of it, and: could someone maybe rule out or confirm by the numbers above wether or not this whole plan technically could work?