USB Disk Mount oddness Slackware-14.0
I have 2 usb disks in /etc/fstab with the user option, so I can mount them as user
Code:
/dev/sdb1 /mnt/zip auto noatime,diratime,user 0 0 Even dmesg |tail doesn't show the complete dialog. (Dmesg has to be sudo dmesg - who got all paranoid over in slackware ?:). It stops short of announcing the partitions, so the partitions 'don't exist' until I run the fdisk. Of course, XFCE's automounter is also snagged in permissions. |
Quote:
I issued the command "mount /dev/sdc1 /mnt", and got a message "mount: only root can do that" |
I'd try to add the noauto option. Also look at dmesg's output when you plug in the usb disk.
|
Thanks for the reply, and Didier for the 'noauto' idea - that's going in.
Quote:
Explaining anything in simple English is usually beyond me. Great minds run in great circles :-) The error is/was Code:
special device /dev/sdc1 does not exist Despite a reboot, the same thing isn't happening today, and my hardware is flaky, so I'll mark this solved without solving it. The USB port on my camera is knackered; I have 2xSD-->micro sd adapters, and one of them is disassembling itself:-/. It throws out a $2 sd card reader 100% of the time, though it's happy with it other days. It continually recognizes my usb key - it seems to have taken note of it somewhere. When/if I get the problem back the problem, and believe in my hardware, I'll start a new thread. |
As you have two usb devices, the first one which is plugged in after booting gets the hdb1 interface name, whatever it be.
To avoid that, simply name them in /etc/fstab by their UUID (which will never change as it is an attribute of the physical device) not by the interface name in use at a point of time. For that, plug one of them in, type "blkid" as root, and use the info given to feed a line for that device in /etc/fstab. Here is an example: Code:
su Code:
UUID=cd2b0100-ec15-483e-9016-2b192d8d126a /mnt/usbkey vfat noauto,user 0 0 |
Thanks Didier, but I have a personal loathing for uuids. Purely personal - I don't ask anyone else to loathe them. And with the exception of my usb key, there's a pile of usb disks get plugged in from time to tme - GPS, son's gear, phone, sd card reader, etc. The medium term cure is to set up automount in XFCE, but it's a permissions hack and I have to web search it each time.
|
Quote:
(2) I just launched XFCE for the first time ever in Slackware-14.0 (I'm a fluxboxer) and didn't have to set up anything to get automount of an USB HD (two partitions) plus an USB key. i just had to right click on the icon displayed for each partition and choose "open". Code:
bash-4.2$ cat /proc/partitions Amazingly /dev/sdb1 which has one is not auto mounted. So I guess that for XFCE to automount your partitions you should remove corresponding lines in /etc/fstab. Maybe there is a setting you can use in XFCE to choose yourself the mount points - but hey, I guess that in that case you would need to identify the partitions either by UUID or by LABEL. Oh, well... Oh, and /dev/sdb3 is a swap partition, so it's pretty normal that it be not mounted. |
It works here too - I have been using XFCE for 2-3 releases, but I don't know it yet. I never gave it any time. It works once as you said off the desktop; Thunar(file manager - I've learned that much) hasn't a clue about it, and if I unmount it, the icon vanishes :-/. Then pull it and push it back somewhere else, and thunar automounts it :-///.
/retires to a home for the bewildered :-) |
All times are GMT -5. The time now is 04:01 AM. |