Difference between revisions of "Talk:USB storage devices"

From ArchWiki
Jump to: navigation, search
m (Fails to detect USB Storage devices: rm closed discussion)
(devmon: re)
 
(20 intermediate revisions by 8 users not shown)
Line 1: Line 1:
== Auto-mounting with udev ==
+
== device descriptor read error ==
  
[[udev#Udisks]] clearly states:
+
Some USB controllers will be loaded with the wrong USB standard applied (e.g. a USB 3.0 controller is initialized with a USB 2.0 kernel module assigned) causing a loss of performance and an error message that looks something like "device descriptor read/64, error -32" at boot time. A supposed fix I found involves issuing the following command as root: "echo -1 >/sys/module/usbcore/parameters/autosuspend". Since I don't have a USB storage device handy it's hard for me to verify that the performance impact was fixed, but I can verify that this at least supressed the error message. This also does not specifically pertain to USB storage devices, but there is not a wiki page specifically for general USB controller usage and I didn't find it in order to create one just to add a single troubleshooting step. [[User:Mynis|Mynis]] ([[User talk:Mynis|talk]]) 21:24, 14 December 2013 (UTC)
  
:''If you want to mount removable drives please do not call 'mount' from udev rule. In case of fuse filesystems (e.g. ntfs-3g) you'll get "Transport endpoint not connected" error.''
+
== Mount ext4-formatted usb drive so it can be written by the user ==
  
so this section is misleading (and even conflicts with the statement). I think it is better not to show this method at all, so I suggest deleting the section. Any objections?
+
Does [[USB storage devices#As normal user with mount]] work? When trying to use these option I get errors. I think extra steps, like 'chown'ing the directory, are needed. -- [[User:Karol|Karol]] ([[User talk:Karol|talk]]) 02:32, 18 November 2014 (UTC)
  
EDIT: The same applies to [[USB Storage Devices#Auto-mounting with udev and systemd]] too.
+
:It works fine for me, the ownership of the mountpoint is set according to the {{ic|1=gid=}} argument and its permission according to {{ic|1=fmask=}} and {{ic|1=dmask=}} - exactly the same as for the other files on the mounted drive. I.e., I get the following: {{bc|<nowiki>
 +
# mount -o gid=lahwaacz,fmask=113,dmask=002 /dev/sdb1 /mnt/
 +
$ ll /mnt/
 +
total 863M
 +
drwxrwxr-x 14 root lahwaacz 8.0K Jan  1  1970 ./
 +
drwxr-xr-x 18 root root    4.0K Nov  7 19:35 ../
 +
drwxrwxr-x  2 root lahwaacz 8.0K Jun 21 12:25 app/
 +
drwxrwxr-x  5 root lahwaacz 8.0K Sep 13 10:03 boot/
 +
...
 +
$ touch foo
 +
$ ll /mnt/
 +
total 863M
 +
drwxrwxr-x 14 root lahwaacz 8.0K Dec  6 23:00 ./
 +
drwxr-xr-x 18 root root    4.0K Nov  7 19:35 ../
 +
drwxrwxr-x  2 root lahwaacz 8.0K Jun 21 12:25 app/
 +
drwxrwxr-x  5 root lahwaacz 8.0K Sep 13 10:03 boot/
 +
-rw-rw-r--  1 root lahwaacz    0 Dec  6 23:00 foo
 +
...
 +
</nowiki>}}
 +
:What kind of errors do you get?
 +
:'''Edit:''' dumb me, I should have read the title first... I have tried it with a NTFS drive, not with ext4. The problem is likely in the {{ic|1=gid=}} mount option, which is not filesystem independent (see {{ic|mount(8)}}). In fact, it makes sense only on filesystems not storing Linux file permissions.
 +
:-- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 22:17, 6 December 2014 (UTC)
  
-- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 11:42, 20 August 2013 (UTC)
+
== devmon ==
: +1 for delete them. -- [[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 08:04, 24 August 2013 (UTC)
+
 
 +
revert [https://wiki.archlinux.org/index.php?title=USB_storage_devices&diff=518849&oldid=518639 edit] (since udevil is the only non aur tool for usb mount as user) keeping the new link to the applications list, there is no reason to hide a simple and easily available mount option for users -- [[User:Ubone|Ubone]] ([[User talk:Ubone|talk]]) 05:51, 28 April 2018 (UTC)
 +
 
 +
:It's not hidden, just described elsewhere. The fact that it is in the official repositories rather than in AUR is not a reason to promote it over the other programs - if people are looking specifically for non-AUR packages, they can easily find it in the list. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 07:52, 28 April 2018 (UTC)
 +
 
 +
::there really isn't any info on mounting thumb drives besides the udisks page, I don't see why we should waste users time by obfuscating useful information, a minor one liner is hardly a promotion and I probably would have included examples for other tools but I am not familiar with them, I know editors try to keep clean with links to other pages -- [[User:Ubone|Ubone]] ([[User talk:Ubone|talk]]) 08:51, 28 April 2018 (UTC)

Latest revision as of 08:51, 28 April 2018

device descriptor read error

Some USB controllers will be loaded with the wrong USB standard applied (e.g. a USB 3.0 controller is initialized with a USB 2.0 kernel module assigned) causing a loss of performance and an error message that looks something like "device descriptor read/64, error -32" at boot time. A supposed fix I found involves issuing the following command as root: "echo -1 >/sys/module/usbcore/parameters/autosuspend". Since I don't have a USB storage device handy it's hard for me to verify that the performance impact was fixed, but I can verify that this at least supressed the error message. This also does not specifically pertain to USB storage devices, but there is not a wiki page specifically for general USB controller usage and I didn't find it in order to create one just to add a single troubleshooting step. Mynis (talk) 21:24, 14 December 2013 (UTC)

Mount ext4-formatted usb drive so it can be written by the user

Does USB storage devices#As normal user with mount work? When trying to use these option I get errors. I think extra steps, like 'chown'ing the directory, are needed. -- Karol (talk) 02:32, 18 November 2014 (UTC)

It works fine for me, the ownership of the mountpoint is set according to the gid= argument and its permission according to fmask= and dmask= - exactly the same as for the other files on the mounted drive. I.e., I get the following:
# mount -o gid=lahwaacz,fmask=113,dmask=002 /dev/sdb1 /mnt/
$ ll /mnt/
total 863M
drwxrwxr-x 14 root lahwaacz 8.0K Jan  1  1970 ./
drwxr-xr-x 18 root root     4.0K Nov  7 19:35 ../
drwxrwxr-x  2 root lahwaacz 8.0K Jun 21 12:25 app/
drwxrwxr-x  5 root lahwaacz 8.0K Sep 13 10:03 boot/
...
$ touch foo
$ ll /mnt/
total 863M
drwxrwxr-x 14 root lahwaacz 8.0K Dec  6 23:00 ./
drwxr-xr-x 18 root root     4.0K Nov  7 19:35 ../
drwxrwxr-x  2 root lahwaacz 8.0K Jun 21 12:25 app/
drwxrwxr-x  5 root lahwaacz 8.0K Sep 13 10:03 boot/
-rw-rw-r--  1 root lahwaacz    0 Dec  6 23:00 foo
...
What kind of errors do you get?
Edit: dumb me, I should have read the title first... I have tried it with a NTFS drive, not with ext4. The problem is likely in the gid= mount option, which is not filesystem independent (see mount(8)). In fact, it makes sense only on filesystems not storing Linux file permissions.
-- Lahwaacz (talk) 22:17, 6 December 2014 (UTC)

devmon

revert edit (since udevil is the only non aur tool for usb mount as user) keeping the new link to the applications list, there is no reason to hide a simple and easily available mount option for users -- Ubone (talk) 05:51, 28 April 2018 (UTC)

It's not hidden, just described elsewhere. The fact that it is in the official repositories rather than in AUR is not a reason to promote it over the other programs - if people are looking specifically for non-AUR packages, they can easily find it in the list. -- Lahwaacz (talk) 07:52, 28 April 2018 (UTC)
there really isn't any info on mounting thumb drives besides the udisks page, I don't see why we should waste users time by obfuscating useful information, a minor one liner is hardly a promotion and I probably would have included examples for other tools but I am not familiar with them, I know editors try to keep clean with links to other pages -- Ubone (talk) 08:51, 28 April 2018 (UTC)