LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-06-2004, 10:39 PM   #1
Ehartwig
LQ Newbie
 
Registered: Sep 2004
Distribution: RedHat 9.0
Posts: 5

Rep: Reputation: 0
Question chmod -R 777 usb-storage Errors


I am using RedHat 9.0 and Have successfully mounted my USB thumb drive. I am now unable to add or remove files from the drive.

I have tried:
Code:
chmod -R 777 /mnt/usb-storage/
(as root)

but it gives me the error:
Code:
chmod: changing permissions of `usb-storage/' (requested: 0777, actual: 0755): Operation not permitted
Then it goes to list the same error for the files on the device.

Am I doing something wrong or how can i solve this problem?
 
Old 09-06-2004, 10:44 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
the filesystem on that thing probably doesn't support permissions. You have to specify the permission at mounttime. If you are mounting it manually, try something like

mount -o umask=0 /dev/usb /mnt/usb

(of course, change the dev and mount point to suit your needs)
 
Old 09-08-2004, 11:45 AM   #3
stevie_velvet
Member
 
Registered: Aug 2004
Location: Italia + UK
Distribution: RHEL 4 + Fedora FC5
Posts: 118

Rep: Reputation: 15
in terms of write-protect or write-enable on USB ~ a numebr of drives support physical switches whcih should be used
 
Old 09-08-2004, 03:55 PM   #4
Ehartwig
LQ Newbie
 
Registered: Sep 2004
Distribution: RedHat 9.0
Posts: 5

Original Poster
Rep: Reputation: 0
Read Only

I am unable to run that code, it says device is already mounted. When I try to unmount the usb it says device is busy. How can I go about fixing this?
 
Old 09-08-2004, 08:47 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
Make sure nothing is reading data from the drive. Also, it says device busy if you are somewhere in the filesystem of the drive, e.g. you are in a terminal window and your current directory is on the drive.

You can also try
mount -o remount, umask=0 /dev/usb /dev/usb-storage
 
Old 09-09-2004, 05:27 PM   #6
Ehartwig
LQ Newbie
 
Registered: Sep 2004
Distribution: RedHat 9.0
Posts: 5

Original Poster
Rep: Reputation: 0
It seems to work now, somewhat. When copy a file to it, kde displays and error saying
Code:
Could not change permissions for:
The file still shows up on the usb device even though I recieve that error and the file is still on the usb drive when i plug it into another computer. It works, I'm just now woundering how i can fix the error message.
 
Old 09-09-2004, 05:37 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You can't - the filesystem is most likely FAT of
some sort, and knows nothing about linux permissions
as quatsch already pointed out.


Cheers,
Tink
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessibility / password / chmod 777 Developer Beaud Linux - General 2 07-11-2005 07:46 PM
Is it safe to chmod 777 Navaboy Slackware 4 03-24-2005 06:54 AM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
chmod 777 /* ziggamon Linux - Newbie 2 09-25-2003 11:40 AM
mount doesn't work as non su even after chmod 777 dokterneo Slackware 5 08-08-2003 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:54 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