LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Cant do "mount/umount" on USB flash drive as regular user (http://www.linuxquestions.org/questions/slackware-14/cant-do-mount-umount-on-usb-flash-drive-as-regular-user-552567/)

Salgeras 05-09-2007 07:45 AM

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!!

allend 05-09-2007 07:49 AM

Try this line in your /etc/fstab
/dev/sda1 /mnt/usb vfat noauto,users,rw 0 0

rworkman 05-09-2007 09:30 AM

http://slackwiki.org/Windows_Partitions

Salgeras 05-11-2007 06:04 AM

It works!!

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

Thanks!!

Dartcoder 10-25-2007 06:12 PM

howto fstab?

JazzItSelf 11-01-2007 08:09 PM

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


All times are GMT -5. The time now is 04:36 AM.