<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://geralis.ddns.net/cyberwiki/index.php?action=history&amp;feed=atom&amp;title=Laufwerk_mounten</id>
	<title>Laufwerk mounten - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://geralis.ddns.net/cyberwiki/index.php?action=history&amp;feed=atom&amp;title=Laufwerk_mounten"/>
	<link rel="alternate" type="text/html" href="https://geralis.ddns.net/cyberwiki/index.php?title=Laufwerk_mounten&amp;action=history"/>
	<updated>2026-05-19T22:43:21Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in CyberWiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://geralis.ddns.net/cyberwiki/index.php?title=Laufwerk_mounten&amp;diff=13&amp;oldid=prev</id>
		<title>Geli: Die Seite wurde neu angelegt: „===Ein bestimmtes Laufwerk mounten=== Möchte man ein bestimmtes NTFS-Laufwerk mounten wird folgendermaßen vorgegangen:&lt;br /&gt; Feststellen, ob ntfs-3g installi…“</title>
		<link rel="alternate" type="text/html" href="https://geralis.ddns.net/cyberwiki/index.php?title=Laufwerk_mounten&amp;diff=13&amp;oldid=prev"/>
		<updated>2017-03-12T11:40:47Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „===Ein bestimmtes Laufwerk mounten=== Möchte man ein bestimmtes NTFS-Laufwerk mounten wird folgendermaßen vorgegangen:&amp;lt;br /&amp;gt; Feststellen, ob ntfs-3g installi…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Ein bestimmtes Laufwerk mounten===&lt;br /&gt;
Möchte man ein bestimmtes NTFS-Laufwerk mounten wird folgendermaßen vorgegangen:&amp;lt;br /&amp;gt;&lt;br /&gt;
Feststellen, ob ntfs-3g installiert ist:&lt;br /&gt;
 dpkg -l | grep ntfs-3g&lt;br /&gt;
Wenn nicht, muss das Paket installiert werden:&lt;br /&gt;
 sudo apt-get install ntfs-3g&lt;br /&gt;
Einhängeverzeichnis erstellen (Name ist frei wählbar)&lt;br /&gt;
 cd /media&lt;br /&gt;
 sudo mkdir usbhdd&lt;br /&gt;
Eindeutige UUID des Laufwerks ermitteln:&lt;br /&gt;
 sudo blkid&lt;br /&gt;
Die UUID in der fstab eintragen:&lt;br /&gt;
 sudo nano /etc/fstab&lt;br /&gt;
Am Ende der Datei:&lt;br /&gt;
 UUID=FFFFFFFFFFFFFFFF /media/usbhdd ntfs-3g defaults 0 0 &lt;br /&gt;
===Adding NTFS to usbmount===&lt;br /&gt;
Quelle: http://raspberrypi.stackexchange.com/questions/41959/automount-various-usb-stick-file-systems-on-jessie-lite&lt;br /&gt;
*Install usbmount with&lt;br /&gt;
 sudo apt-get install usbmount&lt;br /&gt;
*Install NTFS driver package ntfs-3g with&lt;br /&gt;
 sudo apt-get install ntfs-3g&lt;br /&gt;
*Configure usbmount to mount specified filesystems by opening the usbmount file with&lt;br /&gt;
 sudo nano /etc/usbmount/usbmount.conf&lt;br /&gt;
&lt;br /&gt;
Change the line MOUNTPOINTS= to&lt;br /&gt;
 MOUNTPOINTS=&amp;quot;/media/usb0 /media/usb1 /media/usb2 /media/usb3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
In here there is a line called FILESYSTEMS=&amp;quot;&amp;quot;. Only filesystems specified in this line are mounted via usbmount, so we change it to:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;FILESYSTEMS=&amp;quot;vfat ntfs fuseblk ext2 ext3 ext4 hfsplus&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want usbmount to mount NTFS Filesystems, be sure to add ntfs and fuseblk to the line. NTFS devices are sometimes listed as fusblk by the ntfs-3g package, so those two are the same. I don't really know why though.&lt;br /&gt;
&lt;br /&gt;
Also, if you don't add fuseblk in the configuration, unplugged NTFS Devices will not automatically unmount. They will stay mounted and keep the folder they are mounted to until the device is manually unmounted with unmount /dev/sda1 --&amp;gt; where sda1 could be another variable.&lt;br /&gt;
&lt;br /&gt;
The next important line is FS_MOUNTOPTIONS=&amp;quot;&amp;quot;.&amp;lt;br /&amp;gt;&lt;br /&gt;
Here you specify which filesystems should be mounted and how they should be mounted. We change it to (one line, blank before -fstype)&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;tt&amp;gt;FS_MOUNTOPTIONS=&amp;quot;-fstype=ntfs-3g,nls=utf8,umask=007,gid=46&lt;br /&gt;
 -fstype=fuseblk,nls=utf8,umask=007,gid=46 -fstype=vfat,gid=1000,uid=1000,umask=007&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
Änderung gegenüber Original (KEIN Zugriff auf USB-Sticks!)&lt;br /&gt;
 &amp;lt;tt&amp;gt;FS_MOUNTOPTIONS=&amp;quot;-fstype=ntfs-3g,nls=utf8,umask=007,gid=46&lt;br /&gt;
 -fstype=fuseblk,nls=utf8,umask=007,gid=46 -fstype=vfat,gid=users,dmask=0007,fmask=0117&amp;quot;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this the filesystems vfat (fat32) ntfs-3g (NTFS), and fuseblk (NTFS again) are mounted. I think most parameters can stay the same. Again here just add ntfs-3g (add ntfs-3g not ntfs) and fuseblk to be able to mount all NTFS Files. For more filesystems add more lines starting with -fstype=.&lt;br /&gt;
&lt;br /&gt;
===Keep NTFS mounted untill device is unplugged===&lt;br /&gt;
&lt;br /&gt;
Here is a solution for the problem, when the mounted NTFS drive is only accessible for a few seconds. This fix comes from Christian Weinberger.&lt;br /&gt;
&lt;br /&gt;
Create the file &amp;lt;tt&amp;gt;usbmount.rules&amp;lt;/tt&amp;gt; in &amp;lt;tt&amp;gt;/etc/udev/rules.d/&amp;lt;/tt&amp;gt; with&lt;br /&gt;
 sudo nano /etc/udev/rules.d/usbmount.rules&lt;br /&gt;
&lt;br /&gt;
This is the content (enlarge the browser window!)&lt;br /&gt;
&lt;br /&gt;
 KERNEL==&amp;quot;sd*&amp;quot;, DRIVERS==&amp;quot;sbp2&amp;quot;,         ACTION==&amp;quot;add&amp;quot;,  PROGRAM=&amp;quot;/bin/systemd-escape -p --template=usbmount@.service $env{DEVNAME}&amp;quot;, ENV{SYSTEMD_WANTS}+=&amp;quot;%c&amp;quot;&lt;br /&gt;
 KERNEL==&amp;quot;sd*&amp;quot;, SUBSYSTEMS==&amp;quot;usb&amp;quot;,       ACTION==&amp;quot;add&amp;quot;,  PROGRAM=&amp;quot;/bin/systemd-escape -p --template=usbmount@.service $env{DEVNAME}&amp;quot;, ENV{SYSTEMD_WANTS}+=&amp;quot;%c&amp;quot;&lt;br /&gt;
 KERNEL==&amp;quot;ub*&amp;quot;, SUBSYSTEMS==&amp;quot;usb&amp;quot;,       ACTION==&amp;quot;add&amp;quot;,  PROGRAM=&amp;quot;/bin/systemd-escape -p --template=usbmount@.service $env{DEVNAME}&amp;quot;, ENV{SYSTEMD_WANTS}+=&amp;quot;%c&amp;quot;&lt;br /&gt;
 KERNEL==&amp;quot;sd*&amp;quot;,                          ACTION==&amp;quot;remove&amp;quot;,       RUN+=&amp;quot;/usr/share/usbmount/usbmount remove&amp;quot;&lt;br /&gt;
 KERNEL==&amp;quot;ub*&amp;quot;,                          ACTION==&amp;quot;remove&amp;quot;,       RUN+=&amp;quot;/usr/share/usbmount/usbmount remove&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Create the file &amp;lt;tt&amp;gt;usbmount@.service&amp;lt;/tt&amp;gt; in &amp;lt;tt&amp;gt;/etc/systemd/system/&amp;lt;/tt&amp;gt; with&lt;br /&gt;
 sudo nano /etc/systemd/system/usbmount@.service&lt;br /&gt;
&lt;br /&gt;
This is the content:&lt;br /&gt;
&lt;br /&gt;
 [Unit]&lt;br /&gt;
 BindTo=%i.device&lt;br /&gt;
 After=%i.device&lt;br /&gt;
 &lt;br /&gt;
 [Service]&lt;br /&gt;
 Type=oneshot&lt;br /&gt;
 TimeoutStartSec=0&lt;br /&gt;
 Environment=DEVNAME=%I&lt;br /&gt;
 ExecStart=/usr/share/usbmount/usbmount add&lt;br /&gt;
 RemainAfterExit=yes&lt;br /&gt;
&lt;br /&gt;
Now reboot and check with &amp;lt;tt&amp;gt;cat /etc/mtab&amp;lt;/tt&amp;gt; to which folder the usb devices are mounted to. By Default they are mountet to &amp;lt;tt&amp;gt;/media/usbstick0&amp;lt;/tt&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Geli</name></author>
	</entry>
</feed>