Mittwoch, 21. Oktober 2009

Kein NTFS-Zugriff unter Linux - ntfsfix

Auf meinem Computer mit Windows Vista und openSUSE 11.1 kam es vor, dass das Linux-System keinen Zugriff mehr auf das NTFS-Laufwerk hatte. Windows Vista konnte ebenfalls nicht mehr booten. Um wenigstens ein Datenbackup anzufertigen, muss wieder Zugriff auf das Windows-Laufwerk mit NTFS her.
Das Mounten der Windows-Partition erzeugte jedoch folgenden Fehler:

# mount -t ntfs-3g /dev/sda1 /windows
$LogFile indicates unclean shutdown (0, 1)
Failed to mount '/dev/sda1': Die Operation wird nicht unterstützt
Mount is denied because NTFS is marked to be in use. Choose one action:

Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.

Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:

mount -t ntfs-3g /dev/sda1 /windows -o force

Or add the option to the relevant row in the /etc/fstab file:

/dev/sda1 /windows ntfs-3g force 0 0

Da Windows nicht mehr bootfähig war, fiel Choice 1 weg. Der zweite Weg mit der force-Option führte zu folgender Fehlermeldung:

# ntfs-3g /dev/sda1 /windows -o force
ntfs-3g-mount: mount failed: Das Gerät oder die Ressource ist belegt


Bei diesem Problem bietet sich der ntfsfix-Befehl an, der NTFS-Partitionen repariert. Er ist im Paket ntfsprogs enthalten. Nach der Installation (z.B. per YAST) kann man mit dem Befehl die NTFS-Partition/ -Laufwerk reparieren:

# ntfsfix /dev/sda1
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
NTFS volume version is 3.1.
NTFS partition /dev/sda1 was processed successfully.

1 Kommentar: