mount-Befehl mit mehreren Dateisystemtypen
Hallo $LISTE,
ich hatte irgendwo* mal aufgeschnappt, dass man den mount-Befehl auch
mit mehreren Dateisystemtypen aufrufen kann, und zwar so:
mount -t vfat,ntfs /dev/sdb1 /mnt/
Allerdings klappt das bei mir nicht.
Er versucht immer stur, /dev/sdb1 als ntfs zu mounten, scheitert, weil
es vfat ist, und bricht dann ab, anstatt es mit vfat zu mounten.
An der Reihenfolge liegt es nicht;
mount -t ntfs,vfat /dev/sdb1 /mnt/
führt zur gleichen Fehlermeldung, es wird also wieder zuerst ntfs
probiert und dann abgebrochen.
Die Fehlermeldung lautet jedes Mal:
Can only open '/dev/sdb1' as read-only
NTFS signature is missing.
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Auch "-v" für verbose ändert daran nichts.
Gibt es so etwas wie mount --try-next, --try-again, --try-harder?
Muss ich "-a" mitgeben, oder würde das trotz -t und Pfadangabe dazu
führen, dass meine /etc/fstab ausgelesen wird und nur dort gelistete
mounts durchgeführt werden?
Mittels
mount -t vfat /dev/sdb1 /mnt/
oder
mount /dev/sdb1 /mnt/
bekomme ich die Partition gemountet, das ist aber explizit nicht das
Kommando, das ich verwenden will - ich möchte, dass *nur* VFAT/NTFS
gemountet werden, keine anderen wie iso9660 oder ext?fs. Und ein
statischer Eintrag in /etc/fstab scheidet leider auch aus.
Gruß
Stefan
*man mount sagt:
More than one type may be specified in a comma-separated list,
for option -t as well as in an /etc/fstab entry. The list of
filesystem types for option -t can be prefixed with no to spec‐
ify the filesystem types on which no action should be taken.
The prefix no has no effect when specified in an /etc/fstab
entry.
Reply to: