Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19
I have loaded SUSE 10.1 and am having trouble with my usb flash drive and usb external hard drive. When I connect each of the drives, Suse sees them, and ...
  1. #1
    Just Joined!
    Join Date
    Jul 2006
    Posts
    32

    usb flash and HD Permission trouble

    I have loaded SUSE 10.1 and am having trouble with my usb flash drive and usb external hard drive.

    When I connect each of the drives, Suse sees them, and then opens up Nautilus. However, I can not write or change any files on either of the drives. I see the files and can open them, but not save changes.

    I have visited different forums (through google search) and have tried different suggestions. All to no avail.

    I want to be able to plug in either device and have Suse automatically recognize and mount. Then, I want to be able to open, edit, and re-save file back to the drive.

    Any help would be appreciated.

  2. #2
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    Look into your /etc/fstab file. Editing it appropriately will probably solve your problem.
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

  3. #3
    Just Joined!
    Join Date
    Jul 2006
    Posts
    32
    I have tried different ways to edit the fstab file to solve the problem. From the various post I have seen it is some variation on the following:

    /dev/sda1 /media/usbflash auto [various forms of user,rw,exec,noauto,sync] 0 0

    It usually causes an icon to appear on the desktop that gives me various errors on mounting or lets me access the drive, but still have read-only permission

  4. #4
    Linux Newbie
    Join Date
    Jul 2005
    Posts
    122
    exact same problem...in fact my question is a few posts down...

    Help in this is GREATLY appreciated

    -Brian
    There is no problem so complicated that you cannot find a very simple answer to it if you look at it in the right way

  5. #5
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    Occasionally the devices are mounted as root instead of as the user. I'm trying to figure out the pattern as to when it happens like this so I can avoid it. Root should be able to write to the device. Something that has worked for me is to eject the device and connect it to a different port.

  6. #6
    Just Joined! akshay_iitd's Avatar
    Join Date
    Jun 2006
    Location
    New Delhi,India
    Posts
    62
    happens to me too..
    just safely remove them and plug them in again to see if it works...
    cheers

  7. #7
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Location
    Laurasia
    Posts
    624
    Two solutions are there with me:
    1. usermod <username> -g usb
    2. in /etc/fstab with your line for usb add this uid=<your uid>

    post me if they work/don't work.
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  8. #8
    Linux Newbie
    Join Date
    Jul 2005
    Posts
    122
    apoorv_khurasia your advice worked perfectly. Thanks a lot.

    -Brian
    There is no problem so complicated that you cannot find a very simple answer to it if you look at it in the right way

  9. #9
    Just Joined!
    Join Date
    Jul 2006
    Posts
    32
    apoorv_khurasia, I followed your directions and I get "Operation Failed" with the following message: "fstab configuration does not allow unprivileged operation"

    Here is a look at my fstab:

    /dev/hda2 / reiserfs acl,user_xattr 1 1
    /dev/hda3 /home reiserfs acl,user_xattr 1 2
    /dev/hda1 swap swap defaults 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs noauto 0 0
    debugfs /sys/kernel/debug debugfs noauto 0 0
    usbfs /proc/bus/usb usbfs noauto 0 0
    devpts /dev/pts devpts mode=0620,gid=5 0 0
    /dev/sda1 /media/usbflash auto noauto,uid=jim,rw 0 0

    Any help would be appreciated

  10. #10
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Location
    Laurasia
    Posts
    624
    Quote Originally Posted by harjim
    apoorv_khurasia, I followed your directions and I get "Operation Failed" with the following message: "fstab configuration does not allow unprivileged operation"

    Here is a look at my fstab:

    /dev/hda2 / reiserfs acl,user_xattr 1 1
    /dev/hda3 /home reiserfs acl,user_xattr 1 2
    /dev/hda1 swap swap defaults 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs noauto 0 0
    debugfs /sys/kernel/debug debugfs noauto 0 0
    usbfs /proc/bus/usb usbfs noauto 0 0
    devpts /dev/pts devpts mode=0620,gid=5 0 0
    /dev/sda1 /media/usbflash auto noauto,uid=jim,rw 0 0

    Any help would be appreciated
    Why are auto and noauto together? Just modify the last line to this
    Code:
    /dev/sda1        /media/usbflash        auto       auto,uid=jim,rw      0 0
    In case the problems do not vanish please let us know. And as always, if they work just add a post saying so.
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

Page 1 of 2 1 2 LastLast

Posting Permissions

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