vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I have a strange problem with a USB flash drive. After a fresh reboot, the device of the drive's partition (/dev/sda1) does not exist: [~]$ mount /mnt/flash/ mount: special device /dev/sda1 does not exist The only way I've found to make it show up is to attempt to mount the device itself as root: >>>ROOT<<< [~]# mount /dev/sda /mnt/flash mount: you must specify the filesystem type This fails for obvious reasons, but immediately after running this command, the "real" device /dev/sda1 shows up, and works fine as a normal user. The above command only has this effect when run as root; a normal user can't make this happen. Here's the relevant fstab entry: /dev/sda1 /mnt/flash vfat noauto,sync,users,umask=000,defaults 0 0 Does anyone know what's going on? Is there something I can do to make the device properly available on boot? After doing the workaround above, the device works perfectly well and can be mounted and unmounted by a normal user, until the next reboot. |
| |||
| micromoog enlightened us with: > I have a strange problem with a USB flash drive. After a fresh > reboot, the device of the drive's partition (/dev/sda1) does not > exist: [...] The only way I've found to make it show up is to > attempt to mount the device itself as root: I have the same problem with my USB card reader. I wrote a little script that can mount it, instead of using 'mount' directly. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? |
| |||
| Sybren Stuvel wrote: > micromoog enlightened us with: > >>I have a strange problem with a USB flash drive. [Initially], >>the device of the drive's partition (/dev/sda1) does not >>exist > > I have the same problem with my USB card reader. I wrote a little > script that can mount it, instead of using 'mount' directly. Shouldn't hotplug load the required modules automagically? -- Ben M. |
| |||
| Exactly the same problem for me. I have to mount in root, unmount, then it mounts in user space. I haver never really tried to solve that problem, but if anybody has a clue ? Concerning hotplug : when a device is plugged, scripts are automatically lauched in /etc/hotplug/usb. I've plenty of 'sane' stuff there, but this is a nice case because scanners are listed and identified. I don't know if there is a listing of USB devices such as flash keys, with the corresponding scripts. In this case, it should be easy to automatically mount the key. What about automount ? How does it work ? |
| ||||
| Albert enlightened us with: > Concerning hotplug : when a device is plugged, scripts are > automatically lauched in /etc/hotplug/usb. [...] I don't know if > there is a listing of USB devices such as flash keys, with the > corresponding scripts. In this case, it should be easy to > automatically mount the key. Write your own script, reference it in /etc/hotplug/usb.usermap. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? |