Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux_usb-mount

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Letzte Überarbeitung Beide Seiten der Revision
linux_usb-mount [2019/05/14 09:09]
karl [Errors on already mounted]
linux_usb-mount [2019/05/14 10:36]
karl
Zeile 13: Zeile 13:
   rm: cannot remove 'usb0': Device or resource busy   rm: cannot remove 'usb0': Device or resource busy
  
-===== usbmount ===== +a  
-''usbmount'' is a scripted installed on my system and it seems to be run by the ''udev''-rule in ''/lib/udev/rules.d/90-usbmount.rules''. It's config is in ''/etc/usbmount/usbmount.conf'':+ 
 +  sudo umount /media/usb0 
 + 
 +is needed before that folder can be removed.  
 +===== Removed usbmount --> using pmount ===== 
 +''usbmount'' is a script installed on my system and it seems to be run by the ''udev''-rule in ''/lib/udev/rules.d/90-usbmount.rules''. It's config is in ''/etc/usbmount/usbmount.conf'': 
 + 
 +++++ usbmount.conf |
  
 <code> <code>
Zeile 71: Zeile 78:
 VERBOSE=no VERBOSE=no
 </code> </code>
 +
 +++++
  
 ==== mount ==== ==== mount ====
Zeile 86: Zeile 95:
  
 The option ''nosuid'' is missing for usb0...usb3, which prevents the normal user to unmount it.  The option ''nosuid'' is missing for usb0...usb3, which prevents the normal user to unmount it. 
 +
 +I've uninstalled ''usbmount'' without any obvious problems so far. 
 +
 +According to (([[https://community.linuxmint.com/software/view/usbmount]])) ''pmount'' is used instead, which is installed on my Linux Mint 19.1 handles the automatic mounting of USB drives, which results e.g. to such a line in the output of ''mount'':
 +  /dev/sdc on /media/karl/E2A3-F90D type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
 +
  
 ===== Nemo's reported writing speed ===== ===== Nemo's reported writing speed =====
-Normally it shows a reasonable writing speed. But recently this changed to very high speeds, and then hanging at 98 or 100%. +Normally it showed a reasonable writing speed. But recently this changed to very high speeds, and then hanging at 98 or 100%. 
  
 Calling ''sync'' in the terminal synchronizes all block devices (as far as I understand). Calling it with ''time sync'' reports the time ''sync'' needed to finish it's job.  Calling ''sync'' in the terminal synchronizes all block devices (as far as I understand). Calling it with ''time sync'' reports the time ''sync'' needed to finish it's job. 
  
-Flash drives should not be mounted with the mount-option ''sync'', since this could cause such issues. +Flash drives should **not** be mounted with the mount-option ''sync'', since this could cause such issues. 
  
 +Running 
 +  sudo sysctl vm.dirty_bytes=15000000
 +as suggested here (([[https://unix.stackexchange.com/questions/180818/gnome-nautilus-copy-files-to-usb-stops-at-100-or-near]])), which is described more in detail here (([[https://lwn.net/Articles/572911/]])) didn't help. 
 +
 +This problem remains unsolved.
 +
 +===== Useful Commands =====
 +<code>
 +mount
 +sudo umount /media/usb0
 +time sync
 +sync
 +dmesg
 +lsusb -t
 +</code>
  
linux_usb-mount.txt · Zuletzt geändert: 2019/05/14 10:41 von karl