https://bugs.kde.org/show_bug.cgi?id=470675
Bug ID: 470675 Summary: Broken NTFS after moving partition Classification: Applications Product: partitionmanager Version: 23.04.0 Platform: Archlinux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: andr...@stikonas.eu Reporter: mentele...@hotmail.com Target Milestone: --- SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** STEPS TO REPRODUCE 1. Select "Resize/Move" 2. Input space before=0 to move partition left 3. Execute operation OBSERVED RESULT Operation reported error (See log below). Got "Reserved fields aren't zero (0, 0, 0, 0, 1, 0)" when checking the partition. EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: 5.105.0 Qt Version: 5.15.9 (built against 5.15.8) ADDITIONAL INFORMATION Logs: KDE Partition Manager: SMART Status Report Program version: 23.04.0 Backend: pmsfdiskbackendplugin (1) KDE Frameworks version: 5.105.0 Machine: Linux 6.2.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 20 Apr 2023 16:11:55 +0000 x86_64 Move partition ‘/dev/sda4’ to the left by 1.92 TiB Job: Check file system on partition ‘/dev/sda4’ Command: ntfsresize --no-progress-bar --info --force --verbose /dev/sda4 Check file system on partition ‘/dev/sda4’: Success Job: Set geometry of partition ‘/dev/sda4’: Start sector: 4,922,705,920, length: 6,442,448,896 Command: sfdisk --force /dev/sda -N 4 Set geometry of partition ‘/dev/sda4’: Start sector: 4,922,705,920, length: 6,442,448,896: Success Job: Move the file system on partition ‘/dev/sda4’ to sector 4,922,705,920 Copying 314,572 chunks (3,298,533,834,752 bytes) from 4,634,308,509,696 to 2,520,425,431,040, direction: left. Copying 18 MiB/second, estimated time left: 20:40:00 Copying 18 MiB/second, estimated time left: 18:40:29 Copying 18 MiB/second, estimated time left: 16:23:04 Copying 18 MiB/second, estimated time left: 14:05:59 Copying 18 MiB/second, estimated time left: 11:45:46 Copying 18 MiB/second, estimated time left: 09:23:13 Copying 18 MiB/second, estimated time left: 06:55:28 Copying 18 MiB/second, estimated time left: 04:27:18 Copying 18 MiB/second, estimated time left: 02:01:35 Copying 18 MiB/second, estimated time left: 23:37:35 Copying 18 MiB/second, estimated time left: 21:18:05 Copying 18 MiB/second, estimated time left: 18:58:25 Copying 18 MiB/second, estimated time left: 16:37:58 Copying 18 MiB/second, estimated time left: 14:16:55 Copying 18 MiB/second, estimated time left: 11:55:30 Copying 18 MiB/second, estimated time left: 09:32:28 Copying 18 MiB/second, estimated time left: 07:09:04 Copying 18 MiB/second, estimated time left: 04:45:56 Copying 18 MiB/second, estimated time left: 02:22:58 Copying 18 MiB/second, estimated time left: 00:00:00 Copying remainder of chunk size 7,340,032 from 7,932,835,004,416 to 5,818,951,925,760. Copying 314,572 chunks (3,298,533,834,752 bytes) finished. Closing device. This may take a few seconds. Updating boot sector for NTFS file system on partition ‘/dev/sda4’. Command: Command: Move the file system on partition ‘/dev/sda4’ to sector 4,922,705,920: Success Job: Check file system on partition ‘/dev/sda4’ Command: ntfsresize --no-progress-bar --info --force --verbose /dev/sda4 Check file system on partition ‘/dev/sda4’: Error Checking partition ‘/dev/sda4’ after resize/move failed. Move partition ‘/dev/sda4’ to the left by 1.92 TiB: Error ****** The operation actually moved the data because I've compared the bytes in the unallocated space (where the orignal data was) with the broken partition after moving. The part I have most concerned about is what partition manager did in "Updating boot sector for NTFS file system". The partition was compressed NTFS so this step might cause unexpected result I suppose. And because I'm seek for data recovery service's help, such detail should be very helpful. How is "Updating boot sector for NTFS file system" implemented? I searched partition manager's source code but didn't find anything useful. Could developers make some explanation? -- You are receiving this mail because: You are watching all bug changes.