Bug 968181

Summary: NTFS filesystem corruption (ntfs_mst_post_read_fixup_warn: magic: 0x00000058 size: 4096 usa_ofs: 2 usa_count: 65535: Invalid argument)?
Product: [openSUSE] openSUSE Distribution Reporter: Ulrich Windl <Ulrich.Windl>
Component: BasesystemAssignee: Greg Freemyer <Greg.Freemyer>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 42.1   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 42.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ulrich Windl 2016-02-25 08:28:22 UTC
I was copying some files to a NTFS stick (that had been used before heavily). When trying to unmount, the writing of data never finished, so I reset the computer after having waited a long time (and iotop showed no writes).
In Windows 7 some of the files looked incomplete or damanged.
When mounting the stick on Linux again (to recopy the files), I saw these messages in syslog:

### mount
Feb 25 08:31:52 pc ntfs-3g[9036]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sde,blkdev,blksize=4096
Feb 25 08:31:52 pc ntfs-3g[9036]: Global ownership and permissions enforced, configuration type 1
### unmount (attempt)
Feb 25 08:32:06 pc ntfs-3g[9036]: Unmounting /dev/sde (STORE_N_GO)
### another mount
Feb 25 08:32:11 pc ntfs-3g[9070]: Version 2013.1.13 external FUSE 29
Feb 25 08:32:11 pc ntfs-3g[9070]: Mounted /dev/sde (Read-Write, label "STORE_N_GO", NTFS 3.1)
Feb 25 08:32:11 pc ntfs-3g[9070]: Cmdline options: rw,nodev,nosuid,uid=1000,gid=100,uhelper=udisks2
Feb 25 08:32:11 pc ntfs-3g[9070]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sde,blkdev,blksize=4096
Feb 25 08:32:11 pc ntfs-3g[9070]: Global ownership and permissions enforced, configuration type 1
### unmount again
Feb 25 08:32:23 pc ntfs-3g[9070]: Unmounting /dev/sde (STORE_N_GO)
Feb 25 08:37:38 pc ntfs-3g[9261]: Version 2013.1.13 external FUSE 29
Feb 25 08:37:38 pc ntfs-3g[9261]: Mounted /dev/sde (Read-Write, label "STORE_N_GO", NTFS 3.1)
Feb 25 08:37:38 pc ntfs-3g[9261]: Cmdline options: rw,nodev,nosuid,uid=1000,gid=100,uhelper=udisks2
Feb 25 08:37:38 pc ntfs-3g[9261]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sde,blkdev,blksize=4096
Feb 25 08:37:38 pc ntfs-3g[9261]: Global ownership and permissions enforced, configuration type 1
### Some strange USB problems:
Feb 25 08:41:10 pc kernel: usb 5-3: reset full-speed USB device number 3 using ohci-pci
Feb 25 08:41:10 pc kernel: usb 5-3: reset full-speed USB device number 3 using ohci-pci
Feb 25 08:41:10 pc kernel: usb 5-3: reset full-speed USB device number 3 using ohci-pci
Feb 25 08:41:11 pc kernel: usb 5-3: reset full-speed USB device number 3 using ohci-pci
Feb 25 08:41:11 pc kernel: usb 5-3: reset full-speed USB device number 3 using ohci-pci
Feb 25 08:41:11 pc kernel: usb 5-3: reset full-speed USB device number 3 using ohci-pci
Feb 25 08:41:12 pc kernel: sd 11:0:0:0: [sde] FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
Feb 25 08:41:12 pc kernel: sd 11:0:0:0: [sde] CDB: Write(10) 2a 00 00 f4 7f 88 00 00 f0 00
Feb 25 08:41:12 pc kernel: blk_update_request: I/O error, dev sde, sector 16023432
Feb 25 08:41:12 pc kernel: Buffer I/O error on dev sde, logical block 2002929, lost async page write
Feb 25 08:41:12 pc kernel: Buffer I/O error on dev sde, logical block 2002930, lost async page write
Feb 25 08:41:12 pc kernel: Buffer I/O error on dev sde, logical block 2002931, lost async page write
[...]
### another unmount attempt
Feb 25 08:42:13 pc ntfs-3g[9261]: Unmounting /dev/sde (STORE_N_GO)
### Here i tried a shutdown (which hung), then a reset

### After having mounted the stick in Windows 7
Feb 25 09:05:59 pc ntfs-3g[3061]: Version 2013.1.13 external FUSE 29
Feb 25 09:05:59 pc ntfs-3g[3061]: Mounted /dev/sde (Read-Write, label "STORE_N_GO", NTFS 3.1)
Feb 25 09:05:59 pc ntfs-3g[3061]: Cmdline options: rw,nodev,nosuid,uid=1000,gid=100,uhelper=udisks2
Feb 25 09:05:59 pc ntfs-3g[3061]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sde,blkdev,blksize=4096
Feb 25 09:05:59 pc ntfs-3g[3061]: Global ownership and permissions enforced, configuration type 1
Feb 25 09:06:01 pc ntfs-3g[3061]: ntfs_mst_post_read_fixup_warn: magic: 0x00000058  size: 4096   usa_ofs: 2  usa_count: 65535: Invalid argument
Feb 25 09:06:01 pc ntfs-3g[3061]: Actual VCN (0x2000000001a55) of index buffer is different from expected VCN (0x0) in inode 0x1803.
Comment 1 Ulrich Windl 2016-02-25 09:44:32 UTC
After repairing the filesystem in Windows 7, it could be mounted without problems again. Problems reported by Windows 7 chkdsk were (essential info only, German, sorry!):
CHKDSK überprüft Dateien (Phase 1 von 3)...
  10752 Datensätze verarbeitet.                                          Dateiüberprüfung beendet.
  2 große Datensätze verarbeitet.
  0 ungültige Datensätze verarbeitet.
  0 E/A-Datensätze verarbeitet.
  0 Analysedatensätze verarbeitet.
CHKDSK überprüft Indizes (Phase 2 von 3)...
Der Signatur des Multisektorenheaders für die virtuelle Clusternummer (VCN) 0x0 von Index $I30 in der Datei 0x1803 ist nicht korrekt.
Der Signatur des Multisektorenheaders für die virtuelle Clusternummer (VCN) 0x8 von Index $I30 in der Datei 0x1803 ist nicht korrekt.
Fehler im Index $I30 der Datei 6147 werden berichtigt.
Die Indexbitmap $I30 in der Datei 0x1803 ist nicht korrekt.
Fehler im Index $I30 der Datei 6147 werden berichtigt.
Der Abwärtszeiger des aktuellen Indexeintrags mit der Länge 0x98 ist ungültig.
Index $I30 in Datei 6147 wird sortiert.
  11954 Indexeinträge verarbeitet.                                       Indexüberprüfung beendet.
CHKDSK überprüft nicht indizierte Dateien, um die Verbindung mit dem ursprünglichen Verzeichnis wiederherzustellen.
Verwaiste Datei 400px-Android-writer.png (6148) wird in Verzeichnisdatei 6147 wiederhergestellt.

(many more, related to the files being copied in the problematic session)

Verwaiste Datei 445px-Pages-screenshot-Pages.png (6194) wird in Verzeichnisdatei 6147 wiederhergestellt.

Verwaiste Datei load_002.css (6195) wird in Verzeichnisdatei 6147 wiederhergestellt.

CHKDSK überprüft Sicherheitsbeschreibungen (Phase 3 von 3)...
Die Sicherheitsbeschreibung in der Datei 0x1803 ist ungültig.
Fehlende oder unzulässige Sicherheitsbeschreibung von Datei 6147 wird ersetzt.
  10752 SDs/SIDs verarbeitet.
  3 nicht verwendete Indexeinträge aus Index $SII der Datei 0x9 werden aufgeräumt.
3 nicht verwendete Indexeinträge aus Index $SDH der Datei 0x9 werden aufgeräumt.
3 nicht verwendete Sicherheitsbeschreibungen werden aufgeräumt.
Überprüfung der Sicherheitsbeschreibungen beendet.
  602 Datendateien verarbeitet.
CHKDSK überprüft USN-Journal...
  1151240 USN-Bytes verarbeitet.
Die Überprüfung von USN-Journal ist abgeschlossen.
Fehler in Volumebitmap werden berichtigt.
Windows hat Probleme im Dateisystem behoben.

  15649791 KB Speicherplatz auf dem Datenträger insgesamt
  12924800 KB in 5569 Dateien
     13696 KB in 603 Indizes
     78527 KB vom System benutzt
     65536 KB von der Protokolldatei belegt
   2632768 KB auf dem Datenträger verfügbar

     65536 Bytes in jeder Zuordnungseinheit
    244527 Zuordnungseinheiten auf dem Datenträger insgesamt
     41137 Zuordnungseinheiten auf dem Datenträger verfügbar
Comment 2 Ulrich Windl 2016-02-25 09:45:12 UTC
Retrying the same copy that had caused problems before succeeded, and the unmount worked as expected!
Comment 3 Chenzi Cao 2016-02-26 08:01:25 UTC
Hi Greg, would you please help to have a look at this issue? I'm not sure whether it is right to assign it to you, please feel free to reassign whenever necessary, thank you!
Comment 4 Tomáš Chvátal 2018-04-13 15:11:43 UTC
This is automated batch bugzilla cleanup.

The openSUSE 42.1 changed to end-of-life (EOL [1]) status. As such
it is no longer maintained, which means that it will not receive any
further security or bug fix updates.
As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
openSUSE, or you can still observe it under openSUSE Leap 15.0, please
feel free to reopen this bug against that version (see the "Version"
component in the bug fields), or alternatively open
a new ticket.

Thank you for reporting this bug and we are sorry it could not be fixed
during the lifetime of the release.

[1] https://en.opensuse.org/Lifetime