[Eisfair] [E1] externe Platte mit NTFS mounten
Thomas Bork
tom at eisfair.org
Di Mai 31 20:48:50 CEST 2016
Am 31.05.2016 um 10:59 schrieb Thomas Amborn:
> Ich habe an meinen E1 eine externe Platte angeschlossen, die mit NTFS
> formatiert ist. Dann habe ich im Setup-Menü über System administration
> -> Devices -> Mount USB device die Platte eingebunden. Eine Kontrolle
> mit mount zeigt, dass die Platte mit rw-Rechten eingebunden ist. Der
> Versuch auf die Platte zu schreiben scheitert aber. Gebe ich an der
> Konsole mount <device> <mountpoint> oder auch mount -t ntfs <device>
> <mountpoint> ein, passiert das selbe. Nur wenn ich mount -t ntfs-3g
> <device> <mountpoint> benutze, habe ich auch Schreibrechte. Ist das ein
> Bug oder ein Feature? Oder kann -t ntfs prinzipiell nur lesen, auch wenn
> rw im mount Befehl zurückgegeben wird?
Bist Du sicher, dass über das Menü mit '-t ntfs' gemountet wird?
Als ich das das letzte Mal probiert und das Skript auf ntfs-3g angepasst
habe, wurde mit '-t ntfs-3g' gemountet, wenn ein Mount mit 'auto'
fehlschlägt. Siehe auch folgenden Auszug, in dem explizit
_usb_option='ntfs-3g' gesetzt wird:
mount_usb_drive ()
{
_usb_option='auto'
_usb_dev=$1
_usb_mountpath=$2
_usb_retval=1
echo
# check mount points
for DNAME in ${mountpath} ${_usb_mountpath}
do
if [ ! -d ${DNAME} ]
then
mkdir -p -m 0755 ${DNAME}
fi
done
/bin/mount -t ${_usb_option} ${_usb_dev} ${_usb_mountpath} 2>/dev/null
if [ $? -eq 0 ]
then
_mounted_with=`mount | grep "^${_usb_dev}" | awk '{ print $5 }'`
mecho --info -n "Mount successful with option "
mecho -n "'${_mounted_with}'"
mecho --info -n ", path is "
mecho -n "'${_usb_mountpath}'"
mecho --info "."
_usb_retval=0
else
mecho --error "Mounting ${_usb_dev} to ${_usb_mountpath} with
option ${_usb_option} failed."
_usb_option='ntfs-3g'
mecho --info "Trying mount with option ${_usb_option} instead ..."
/bin/mount -t ${_usb_option} ${_usb_dev} ${_usb_mountpath}
if [ $? -eq 0 ]
then
mecho --info "Mount successful with option ${_usb_option},
path is ${_usb_mountpath}."
_usb_retval=0
else
mecho --error "Mounting ${_usb_dev} to ${_usb_mountpath}
with option ${_usb_option} failed."
fi
fi
anykey
return ${_usb_retval}
}
Ich kann mir nur vorstellen, dass Du die Platte in die fstab mit der
Option ntfs eingetragen hast und dann deswegen mit ntfs gemountet wird.
In unserem Kernel ist gesetzt:
CONFIG_NTFS_FS=m
# CONFIG_NTFS_DEBUG is not set
CONFIG_NTFS_RW=y
Dazu die Hilfe:
config NTFS_RW
<------>bool "NTFS write support"
<------>depends on NTFS_FS
<------>help
<------> This enables the partial, but safe, write support in the NTFS
driver.
<------> The only supported operation is overwriting existing files,
without
<------> changing the file length. No file or directory creation,
deletion or
<------> renaming is possible. Note only non-resident files can be
written to
<------> so you may find that some very small files (<500 bytes or so)
cannot
<------> be written to.
<------> While we cannot guarantee that it will not damage any data, we
have
<------> so far not received a single report where the driver would have
<------> damaged someones data so we assume it is perfectly safe to use.
<------> Note: While write support is safe in this version (a rewrite from
<------> scratch of the NTFS support), it should be noted that the old NTFS
<------> write support, included in Linux 2.5.10 and before (since 1997),
<------> is not safe.
<------> This is currently useful with TopologiLinux. TopologiLinux is run
<------> on top of any DOS/Microsoft Windows system without
partitioning your
<------> hard disk. Unlike other Linux distributions TopologiLinux
does not
<------> need its own partition. For more information see
<------> <http://topologi-linux.sourceforge.net/>
<------> It is perfectly safe to say N here.
Ein Schreiben sollte also auch mit ntfs mit obigen Einschränkungen
gelingen...
--
der tom
[eisfair-team]
Mehr Informationen über die Mailingliste Eisfair