Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > SuSE Linux Help > usb flash and HD Permission trouble

Forgot Password?
 SuSE Linux Help   For help and discussions related to SuSE Linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-02-2006   #1 (permalink)
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.
harjim is offline  


Reply With Quote
Old 07-02-2006   #2 (permalink)
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
Javasnob is offline   Reply With Quote
Old 07-02-2006   #3 (permalink)
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
harjim is offline   Reply With Quote
Old 07-03-2006   #4 (permalink)
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
__________________
Please visit http://fanfan1313.googlepages.com
Reviews and howtos available (very, very few at the moment)

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
fanfan1313 is offline   Reply With Quote
Old 07-03-2006   #5 (permalink)
/etc/init.d/moderator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 6,038
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.
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline   Reply With Quote
Old 07-03-2006   #6 (permalink)
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
akshay_iitd is offline   Reply With Quote
Old 07-03-2006   #7 (permalink)
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
apoorv_khurasia is offline   Reply With Quote
Old 07-03-2006   #8 (permalink)
Linux Newbie
 
Join Date: Jul 2005
Posts: 122
apoorv_khurasia your advice worked perfectly. Thanks a lot.

-Brian
__________________
Please visit http://fanfan1313.googlepages.com
Reviews and howtos available (very, very few at the moment)

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
fanfan1313 is offline   Reply With Quote
Old 07-03-2006   #9 (permalink)
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
harjim is offline   Reply With Quote
Old 07-04-2006   #10 (permalink)
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
apoorv_khurasia is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:57 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2