LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-11-2006, 06:27 AM   #1
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Rep: Reputation: 30
write permission to thumb drive


hi, in knoppix i connected my usb storage device and am trying to write files to it. But cannot do it because i don't have write permissions.

i tried this "chmod o=rwx usb1" but it didn't work. Can someone help?
 
Old 01-11-2006, 07:03 AM   #2
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30
I'm guessing you didn't explictly have to mount the device, i.e. it automatically mounted it when you connected it. In which case, it's probably an issue with how it's set up in /etc/fstab, so if you could list the contents of that file it'd help.

Also (and the eternal question)... when you say "it didn't work", could you be more specific? What error message did you get? If no error message came up, what made you think it didn't work? What user did you run the command as (if you don't have write permissions you almost certainly won't have the permission to change permissions)?
 
Old 01-11-2006, 10:55 AM   #3
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
yeah it automounted. The error i get is nothing happens, but when i hover the objects i want to transfer to my usb pen drive in the bottom of the window theres a dialog box which says: You don't have permission to write to this file.
i'll post what fstab has to say in a bit
 
Old 01-11-2006, 11:33 AM   #4
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30
The chmod command probably won't have worked because it's likely the owner of the directory usb1 is root, so adding permissions to the owner won't help you as a non-root user. Try just a simple "chmod +w usb1" as root, which should give everyone permission to write to that directory. If you're worried about any user being able to write to the drive, you can alternatively "chown your_username usb1" so that *you* now own it and will have all priviledges.

Try either of those commands as root and see if that helps. If it doesn't, could I see an output of "ls -l" (that's an l for lima as the argument) when you're in the usb1 directory?
 
Old 01-11-2006, 05:19 PM   #5
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
Geminias,

What filesystem are you using on the thumb drive? If it's FAT32, you can try and mount the drive with a umask of 000. This will give all users +rw to the device.

Code:
mount -o umask=000 /dev/sda1 /mnt/usb
-Kristijan
 
  


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
Thumb Drive dudeman41465 Linux - Hardware 2 11-20-2005 01:02 AM
write permission for windows drive bruse Mandriva 2 03-01-2005 07:10 AM
thumb drive iarebob Slackware 5 02-01-2005 03:33 PM
Cannot mount thumb drive moxieman99 Linux - Newbie 4 10-09-2004 02:33 PM
can i boot this off of a thumb drive? shapdaddy DamnSmallLinux 1 05-05-2004 08:12 AM


All times are GMT -5. The time now is 11:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration