LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-09-2003, 08:55 PM   #1
Pathian
Member
 
Registered: Sep 2003
Location: Dayton, Ohio and Hoffman Estates, IL
Distribution: Slackware 9.1 (laptop) Mandrake 9.2 (desktop)
Posts: 58

Rep: Reputation: 15
chmod USB pendrive problem


I've gotten my 32 meg Targus DiskOnKey USB pendrive working on Redhat Linux 9 (redhat can recognize, and mount it). But I've been having some problems with it. I originally created /mnt/diskonkey as my mount point, and I've been using
mount -t vfat /dev/sda1 /mnt/diskonkey
to mount it. Strangely enough, when I unmount and remove the pendrive, /mnt/diskonkey disappears, and reappears when I plug it back in. It also edits my fstab whenever I plug/unplug it. it adds/removes the following line
/dev/sda /mnt/diskonkey auto noauto,owner,kudzu 0 0
That much I assume is just normal working order, so I don't consider that a problem, that's just background info. Here is my problem.
when I created the mount point, I did chmod 777 /mnt/diskonkey. but whenever I mount the drive, the permissions change to 755 so I cannot edit the contents in konqueror unless I am logged in as root. I can still do functions like cp and mv in the console as root, but this is somewhat cumbersome when I am just trying to use my drive in a GUI. I've tried using chmod while it was mounted, but it gave me the following error
[root@localhost magician]# chmod 777 /mnt/diskonkey/
chmod: changing permissions of `/mnt/diskonkey/' (requested: 0777, actual: 0755): Operation not permitted
Trying to use chown to change the owner of the drive yielded a similar error as well. does anyone have a fix? The pendrive itself has no physical write-lock switch
 
Old 12-09-2003, 09:09 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
The permissions that get set to it have nothing to do with the chmod settings of the mount point, its gotta be declared in the argument to mount. That goofiness with the mount point is all kudzu's fault.


/dev/sda1 /mnt/diskonkey vfat noauto,user 0 0

would probably be a better idea... I'm not certain how kudzu works so maybe it requires that things are mounted "owner" instead of "user". User means that any old joe user can mount the disk... and then they'll have be the owner so it'll stay 755, but your user will be the owner so R+W+X will be you and the R+X will apply to... everyone else, which is probably no one.

Also, with the above line... or the one you've got now, all you need to type is:

mount /mnt/diskonkey

Cheers,

Finegan
 
  


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
USB PENDRIVE Problem with kernel 2.6.10 tandre Linux - Hardware 11 04-20-2005 10:18 PM
USB Pendrive DarkAsHell Linux - Hardware 3 04-07-2005 03:26 PM
USB pendrive help jojotx0 Fedora 12 09-14-2004 02:49 AM
USB PenDrive and 2.6.3 kernel vfat mount problem jarro Linux - Hardware 0 06-12-2004 05:23 PM
USB Pendrive d4d4n9 Mandriva 7 02-03-2004 08:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration