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
linux_usb-mount [2019/05/14 10:00]
dokuwikiadmin [mount]
linux_usb-mount [2019/05/14 10:41] (aktuell)
karl [Useful Commands]
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 | ++++ usbmount.conf |
Zeile 93: Zeile 98:
 I've uninstalled ''usbmount'' without any obvious problems so far.  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. +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>
  
 +{{tag>english software linux}}
linux_usb-mount.1557820815.txt.gz · Zuletzt geändert: 2019/05/14 10:00 von dokuwikiadmin