LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 02-22-2004, 07:59 PM   #1
Campy19
LQ Newbie
 
Registered: Nov 2003
Posts: 27

Rep: Reputation: Disabled
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
 
Old 02-22-2004, 10:55 PM   #2
natalinasmpf
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309

Rep: Reputation: 30
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?
 
Old 02-25-2004, 11:30 AM   #3
uwejs
LQ Newbie
 
Registered: Feb 2004
Location: Hannover, Germany
Distribution: debian
Posts: 7

Rep: Reputation: 0
Lightbulb

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
 
Old 02-25-2004, 01:22 PM   #4
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 10.04/12.04, Scientific Linux 6.3, Android-x86, Maemo
Posts: 1,658

Rep: Reputation: 138Reputation: 138
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...
 
Old 01-07-2005, 09:34 AM   #5
jnusa
Member
 
Registered: Jul 2004
Location: Denmark, Aarhus
Distribution: Ubuntu, Suse
Posts: 98

Rep: Reputation: 15
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB storage/camera device fstab help munkie_poo Linux - Hardware 1 03-15-2005 10:22 AM
How to put a permanent entry in fstab for usb pen drive zulfilee Linux - General 4 08-31-2004 11:36 PM
fstab entry changed by system to wrong device cmbguy Linux - General 2 08-19-2004 09:04 PM
usb fstab entry won't mount r/w Kilka Linux - Hardware 4 07-27-2004 11:05 AM
Mounting USB-Stick - entry in fstab disappears at reboot??? rot Linux - General 5 08-07-2003 03:37 AM


All times are GMT -5. The time now is 12:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration