LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-09-2007, 07:45 AM   #1
Salgeras
LQ Newbie
 
Registered: May 2007
Distribution: Slackware 12.0, Fedora Core 7
Posts: 17

Rep: Reputation: 0
Cant do "mount/umount" on USB flash drive as regular user


Hello!
This is my problem: can't mount USB flash drive as regular user.
When I try to mount error msg appears:
Code:
Could not mount device
The reported error was:
mount: only root can mount /dev/sda1 on /mnt/usb
When I execute:
Code:
ls -l /dev/sda1
brwxrwxrwx  1 root disk 8, 1 1995-04-29 12:33 /dev/sda1
because I have already set '777' on /dev/sd1.

This is my fstab:
Code:
/dev/hda3        swap             swap        defaults         0   0
/dev/hda9        /                ext3        defaults         1   1
/dev/hda10       /home            ext3        defaults         1   2
/dev/hda8        /tmp             ext3        defaults         1   2
/dev/hda6        /usr             ext3        defaults         1   2
/dev/hda7        /var             ext3        defaults         1   2
/dev/hda1        /win_c           ntfs        ro               1   0
/dev/hda5        /win_d           ntfs        ro               1   0
/dev/cdrom       /mnt/cdrom       auto        noauto,owner,users,rw  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
/dev/sda1        /mnt/usb        vfat  
pamconsole,exec,noauto,owner,users,noatime,codepage=850,iocharset=iso8859-15,managed 0 0
My user belongs both to 'root' and 'users' group.

Does anybody knows where is the problem?
<Slackware 10.2, kernel 2.4.33>

Thanks!!
 
Old 05-09-2007, 07:49 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,439

Rep: Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851
Try this line in your /etc/fstab
/dev/sda1 /mnt/usb vfat noauto,users,rw 0 0
 
Old 05-09-2007, 09:30 AM   #3
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
http://slackwiki.org/Windows_Partitions
 
Old 05-11-2007, 06:04 AM   #4
Salgeras
LQ Newbie
 
Registered: May 2007
Distribution: Slackware 12.0, Fedora Core 7
Posts: 17

Original Poster
Rep: Reputation: 0
It works!!

I changed it into:
/dev/sda1 /mnt/usb vfat noauto,users,rw 0 0

Thanks!!
 
Old 10-25-2007, 06:12 PM   #5
Dartcoder
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
howto fstab?
 
Old 11-01-2007, 08:09 PM   #6
JazzItSelf
Member
 
Registered: Oct 2003
Location: Boston
Distribution: Slackware64-current
Posts: 42

Rep: Reputation: 18
As a follow up, you might consider using a udev device instead of /dev/sda1 to mount your drive. If you have things set up properly (a topic about which google can point you to adequate information) then you can always mount a particular device on a particular mount point.

For example, when you plug in your digital camera and it comes up as /dev/sda1 also, you don't end up mounting it on /media/thumbdrive. udev can give it a different node name based on lots of parameters, manufacturer or serial number for example. You could have udev create a node /dev/camera for the camera, /dev/thumbdrive for the thumbdrive, and then in fstab you would reference /dev/camera and /dev/thumbdrive instead of /dev/sda1.

I've found that convenient anyway...

--Chad
 
  


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
Mount usb drive, umount and mount another drive arubin Linux - Hardware 9 01-17-2007 03:46 AM
How to use Use "USB Flash Drives" in Slackware?? DdOs Linux - Newbie 26 03-31-2006 02:57 PM
Need to mount Windows shares as "user" MMYoung Slackware 4 09-12-2005 06:39 AM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM
redhat 9 - CD-ROM drive won't mount: "Not a directory" zyzychyn Linux - Hardware 8 06-11-2004 11:33 AM


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

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