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 04-29-2007, 10:34 AM   #1
yiux
LQ Newbie
 
Registered: Jan 2007
Location: Mauritius
Distribution: Debian 4.0R0
Posts: 11

Rep: Reputation: 0
Cannot write to a USB flash disk


I have installed Debian 4.0R0 Linux for some times and I realized that I cannot write anything to my usb flash disk (Twinmos 512MB)

I have tried to mount it a rw but useless
Even root cannot have write access to it
I have also modified the fstab to given user access to the the file system by not working

when i try to copy something to the usb flash disk using command line
it say that: Read-only file system

Please help me to solve this problem and if any one of you have the same problem.

Note on window i have no problem at all and also with Ubuntu.
 
Old 04-29-2007, 10:59 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,008

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
We need more information!

What filesystem is on the USB (eg FAT, NTFS, ext3 .....)?
What does dmesg say when you plug it in?
What did you put in your fstab?
How did you try mounting it? What error messages (if any) did you get?
Does your USB drive have a little "Write-protect" switch?
Do other USB devices work?
 
Old 04-29-2007, 11:33 PM   #3
yiux
LQ Newbie
 
Registered: Jan 2007
Location: Mauritius
Distribution: Debian 4.0R0
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks tredegar for your concern. I managed to get it working.

The file system is fat32 (known as vfat in linux).
And i added the following to fstab:
/dev/hda5 /media/hda5 vfat rw,user,uid=1000 0 0

The problem was that my USB pen was too fragmented and there were some errors in its file system. I've done a check disk on windows then a defragmentation. It is working well now even if i remove the /etc/fstab entry I made

Once again thanks tredegar!!

Last edited by yiux; 04-29-2007 at 11:42 PM.
 
  


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
Can't format USB flash drive, write protection krisbitner Linux - Hardware 5 02-07-2007 03:18 PM
USB flash disk help bakazer Solaris / OpenSolaris 1 06-24-2005 09:30 AM
USB Flash Disk zillah Fedora 3 05-22-2005 03:25 AM
USB flash disk. ValidiusMaximus Linux - Software 0 12-30-2004 02:45 PM
USB Flash drive will not let me write. sniperhf Linux - Hardware 1 12-05-2003 02:39 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration