Results 1 to 3 of 3

Thread: Only root can mount /dev/sdb1...

  1. #1

    Default Only root can mount /dev/sdb1...

    The other day, I tried to put openSUSE on a USB stick. In the process, I had to write:

    mount /dev/sdb1 /media/usb

    as root. The problem now is that everytime I try to mount it using my normal account, I get the error:

    mount: only root can mount /dev/sdb1 on /media/usb

    What Can I do to fix the permissions?
    openSuSE 11.3 KDE 4.5 | NZXT Lexa Blackline | Asus M2N-E | AMD Athlon 64 X2 5000+ Dual Core
    Nvidia 9800 GT 512MB | Edimax 802.11n PCI card | SIIG USB 3.0 PCIe card 5Gb/s | 2GB DDR2
    WD GreenCaviar 1TB | 2 WD 250 GB | SeaG. FA 250GB | SeaG. GoFlex 500GB

  2. #2

    Default Re: Only root can mount /dev/sdb1...

    Is there a problem typing the sudo prefix before your mount command?

  3. #3
    Join Date
    Sep 2008
    Location
    Bangalore, India
    Posts
    70

    Default Re: Only root can mount /dev/sdb1...

    If you dont want to use sudo before the command then edit the 4th column in /etc/fstab to include "user". After that any user can mount the USB stick.
    Example

    usbfs /proc/bus/usb usbfs noauto,user 0 0

    Or if you want only a particular user to have mount and un-mount permissions then edit /etc/fstab to look like

    usbfs /proc/bus/usb usbfs noauto.uid=<UID_USER> 0 0
    where UID_USER is the UID of the particular user.

    - Thejaswi Raya

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •