LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-12-2004, 06:35 PM   #1
Lossenelin
Member
 
Registered: Sep 2002
Location: New Zealand
Distribution: Ubuntu 10.10
Posts: 38

Rep: Reputation: 15
USB drive keeps mounting as "read only" I need to write to it.


I recently brought a USB flash memory drive, I mounted it on my Redhat 8.0 machine;
# mount /dev/sda1 /mnt/usbhd (as root ofcourse)
and wrote a file to it to make sure it was working, I then took it and installed it on a Windows 98SE machine to make sure I could read the file, I then wrote a file to it on the Windows machine to make sure I could read files I wrote on Windows on Linux.
I plugged the drive into my Linux machine and mounted it, that time and ever since then it has mounted as read only, yet other times I've mounted it on the Windows machine since then it is still read/write.
I tried
# chmod 777 /mnt/usbhd (as root ofcourse)
But it tells me I don't have permission, exact message: (requested: 0777, actual: 0755): Operation not permitted

Can anyone help me out?
 
Old 02-12-2004, 06:49 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Add this to your /etc/fstab:
/dev/sda1 /mnt/usbhd vfat uid=500,gid=500,umask=000,exec,dev,suid,rw 1 0

I am no expert on this. There might be a better (ie secrure) way to do it. But his should get you what you need.
 
  


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
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 09:00 AM
Mounting a "special device", Read Only hanasi Linux - Newbie 5 09-11-2005 09:06 AM
usb drive "protocol device" - why cannot I write to it? lefty.crupps Linux - Hardware 2 04-28-2005 09:32 PM
RH9 "remounting root filesystem in read-write mode" ChrisHax Linux - Newbie 3 07-23-2004 09:54 PM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM

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

All times are GMT -5. The time now is 06:51 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
Open Source Consulting | Domain Registration