LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   usb in /etc/fstab (https://www.linuxquestions.org/questions/linux-hardware-18/usb-in-etc-fstab-176916/)

flux* 05-02-2004 06:52 AM

usb in /etc/fstab
 
I've for a while mounted my camera whit "#mount /dev/sda1 /mnt/usbkey", but I'd like my home-user to do the same. I've added the line "/dev/usbkey /mnt/usbkey vfat noauto,users,exec,sync,umask=000 0 0" to /etc/fstab, and I've made a syslink from /dev/usbkey to /dev/sda1.
But when I try to "$ mount /mnt/usbkey" It gives me "mount: /dev/usbkey is not a valid block device" I've also tried with out the symlink and "/dev/sda1 /mnt/sda1 vfat..." but it don't help.

trickykid 05-02-2004 08:54 AM

Re: usb in /etc/fstab
 
Quote:

Originally posted by flux*
I've for a while mounted my camera whit "#mount /dev/sda1 /mnt/usbkey", but I'd like my home-user to do the same. I've added the line "/dev/usbkey /mnt/usbkey vfat noauto,users,exec,sync,umask=000 0 0" to /etc/fstab, and I've made a syslink from /dev/usbkey to /dev/sda1.
But when I try to "$ mount /mnt/usbkey" It gives me "mount: /dev/usbkey is not a valid block device" I've also tried with out the symlink and "/dev/sda1 /mnt/sda1 vfat..." but it don't help.

Does it work if you specify the filesystem type:

mount -t vfat /mnt/usbkey

What's the permissions of the actual raw device as well in /dev ?

flux* 05-02-2004 09:42 AM

"mount -t vfat /mnt/usbkey" just gives me the same as "mount --help"
Quote:

What's the permissions of the actual raw device as well in /dev ?
I gave the folder (/mnt/usbkey) 775, and the devises the same as cdrom and floppy, 600.

LavaDevil94 05-02-2004 10:02 AM

i think this could be your problem:
/dev/usbkey /mnt/usbkey vfat noauto,USERS,exec,sync,umask=000 0 0"
the all caps bit i think is the problem. change it to user, not users, and see if it works.

flux* 05-02-2004 12:54 PM

I've changed it, but it don't seems to work :(

LavaDevil94 05-02-2004 03:37 PM

so, youre saying that it mounts fine as root, but it wont work as regular user? i hope you didnt make my change in all caps :D. not that it would have ruined anything :D. anyhoo, try this command:
mount -t vfat /dev/the_camera_device_name /mnt/usbkey
and if that doesnt work, are you sure you have vfat support and scsi generic support compiled into the kernel or as modules?


All times are GMT -5. The time now is 10:15 AM.