Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 04-29-2007, 11:34 AM   #1
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, 11:59 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
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-30-2007, 12:33 AM   #3
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-30-2007 at 12:42 AM.


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 04:18 PM
USB flash disk help bakazer Solaris / OpenSolaris 1 06-24-2005 10:30 AM
USB Flash Disk zillah Fedora 3 05-22-2005 04:25 AM
USB flash disk. ValidiusMaximus Linux - Software 0 12-30-2004 03:45 PM
USB Flash drive will not let me write. sniperhf Linux - Hardware 1 12-05-2003 03:39 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration