LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB Device Fstab Entry (https://www.linuxquestions.org/questions/linux-hardware-18/usb-device-fstab-entry-149328/)

Campy19 02-22-2004 07:59 PM

USB Device Fstab Entry
 
Ok,

I can mount and unmount my usb devices with these commands:

mount -t vfat /dev/sda1 /mnt/camera

umount -t vfat /dev/sda1 /mnt/camera

and now I have a couple of questions....

1) What would the fstab entry be?? I take it noauto needs to be in there so the device is not mounted if it is not attached...correct??

2) How do I safely detach the device w/o losing data??

3) Anyway to get an icon in KDE to pop up on the desktop once it is attached??

I'm running kernel 2.6.3 and mandrake 9.2

Thanks,
Chris

natalinasmpf 02-22-2004 10:55 PM

I am kind of curious about this. I've never mounted my USB devices (I thought they were plug and play, after all, the keyboard and mouse under USB works under Linux) however, I can't seem to get my scanner to work, but usb scanner detect (some command similar to that) can, although it might be an unsupported model, and it might be not. Do I have to mount /dev/sda1 for usbscanner or something?

Although I usually mount the entire USB system like /proc/usb which never affected me anyway. I usually detach and attach USB devices immediately, and it seems to work for firewire too.

What exactly does it do though? I know firewire disks and storage utilities are represented over the SCSI protocol, but cameras?! Would it generate an error if you tried to cd to the mount point, or is a driver supposed to interpret that bit?

uwejs 02-25-2004 11:30 AM

Hi,

I'm not really sure about your problems, but I'll give it a try:

Usually you don't have to mount your USB-Hardware, but the
device file system for usb: usbdevfs (which is used by libusb).

if you don't use libusb, you have to load the kernel modules at
startup, e.g. scanner.o for your scanner.
as this won't be supported anymore (at least for the scanner) in the future,
better use libusb.

for libusb you have to include a line looking like

usb /proc/bus/usb usbdevfs defaults 0 0

you should automatically mount this, so don't put a noauto in there!

uwejs

JaseP 02-25-2004 01:22 PM

If you are just connecting a USB camera, you might consider using gphoto2 instead.

As for the fstab entry, usually it will look something like:

/dev/sda1 /mnt/camera auto noauto,users,exec 0 0

the exact entry though might depend on the filetype. In your case:

/dev/sda1 /mnt/camera vfat noauto,users,exec 0 0

might be more appropriate.


Use the example of your cdrom drive with some modification as a starting point...

jnusa 01-07-2005 09:34 AM

Did anyone find out how to make an icon pop up on either desktop og taskbar?
I could figure out lots of things, I would like to automount/show icon, when possible (hd, cam, ftp, smb, VPN).


All times are GMT -5. The time now is 12:20 PM.