-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ntfsclone (ntfsprogs) utility won't convert between partitions of different sector-size (e.g.: 512B to 4KB, or vice-versa) #95
Comments
I’ve had the same issue cloning from a NVMe drive to a SATA SSD. The partition becomes unusable in windows |
I can see how this can be a problem. However sometimes you can't trivially convert an NTFS volume from one sector size to another, but other times you can. I've created a patch to add a new option to Patch: 0001-ntfsclone.c-Add-option-to-adjust-NTFS-sector-size-af.patch |
@unsound maybe you should use ioctl(BLKPBSZGET) instead of ioctl(BLKSSZGET) to get the physical sector size, see https://mail.gnu.org/archive/html/bug-parted/2012-10/msg00018.html (I have no 4k sectored disk and cannot check the difference). |
@unsound: 2nd, Until I'd Get To Test It Myself ( On a Computer I Can Compile 'ntfsclone'... ) , I'd Like To Share My Idea of a Test Case : On 'Windows', I Find 'Arsenal Image Mounter' As a Very Handy Tool For Such Experiments (Just Be Sure To Select The Desired Sector-Size Upon Image Mounting). |
Thanks for checking. I'll have to validate what Windows does here, but from what I recall from memory the sector size stored in the NTFS boot sector is the logical sector size (e.g. (In fact if the physical sector size was being used in the NTFS boot sector then you couldn't move volumes between native 512-byte sector drives and emulated 512-byte sector drives with 4k physical sector size so that wouldn't make much sense from a practical perspective since the whole selling point of these drives is to maintain compatibility with 512-byte sector drives.) |
a Few Days Ago I've Been Fiddling Quite a Bit With Cloning a NTFS Partition, From an Older (512B Sectors) To a Newer (4KB Sectors) SSD, To Preserve a 'Windows 10' OS Setup In a Good Working State.
Thru Much Experimentation (I've Used 'SystemRescueCD v10.02/amd64' Dist.), I've Discovered That 'Windows 10' OS Recognize NTFS Partitions, Cloned Between Different Sector-Sized Drives - With No Related Conversion, As Damaged & Unusable : Classifying These as 'RAW' (Unformatted) .
a Related Conversion Option, Added To 'ntfsclone' Utility, Would Make It Usable For Such Tasks Too, Removing The Need To Turn To Proprietary-Software Tools (Some Unreliable and/or Pricey)... Given The Lack of a Usable F/OSS Alternative ! :)
The text was updated successfully, but these errors were encountered: