LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-02-2004, 06:52 AM   #1
flux*
Newbie
 
Registered: Mar 2004
Location: Denmark
Posts: 19

Rep: Reputation: 0
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.
 
Old 05-02-2004, 08:54 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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 ?
 
Old 05-02-2004, 09:42 AM   #3
flux*
Newbie
 
Registered: Mar 2004
Location: Denmark
Posts: 19

Original Poster
Rep: Reputation: 0
"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.
 
Old 05-02-2004, 10:02 AM   #4
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
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.
 
Old 05-02-2004, 12:54 PM   #5
flux*
Newbie
 
Registered: Mar 2004
Location: Denmark
Posts: 19

Original Poster
Rep: Reputation: 0
I've changed it, but it don't seems to work
 
Old 05-02-2004, 03:37 PM   #6
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
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 . not that it would have ruined anything . 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?
 
  


Reply



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 and /etc/fstab kaz2100 Linux - General 8 04-12-2005 08:57 AM
Juggling USB devices (fstab related) leiavoia Debian 7 01-28-2005 05:38 AM
USB Device Fstab Entry Campy19 Linux - Hardware 4 01-07-2005 09:34 AM
usb fstab entry won't mount r/w Kilka Linux - Hardware 4 07-27-2004 11:05 AM
puhleeeease help w/USB & fstab rickenbacherus Linux - Hardware 4 12-16-2003 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:40 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration