Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Unable to delete files on usb< Next Oldest | Next Newest >
JohnJS Offline





Group: Members
Posts: 200
Joined: Oct. 2006
Posted: Feb. 15 2008,21:24 QUOTE

Been using a Kingston 512mb usb stick to transfer files between two computers.
For some reason today am unable to delete the files on the stick..  Get "read only file system" message.
Tried to change permissions but with no success.
Any suggestions?

Edit:
Tried cfdisk on sda but did not fix the problem. Files still there.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Feb. 16 2008,00:02 QUOTE

- how did you mount it?
- what user are you when you try to delete it? (root privileges?)
- check for a read-only switch on the stick?
Back to top
Profile PM 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: Feb. 16 2008,00:56 QUOTE

Quote
Tried cfdisk on sda but did not fix the problem. Files still there.

That doesn't erase anything, it just rewrites the partition table. Along with what hats asked and it's not related to permissions, look at your /etc/mtab to see how it's mounted (ro is read-only, rw is read-write). Then if needed you can adjust it in /etc/fstab (change the sda1 line from ro to rw). Unmount, mount.


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Feb. 16 2008,07:16 QUOTE

If you're sure it's mounted rw and you have permissions, the flash wear-out can have that effect, I've bumped into it once. What I did was just re-format the stick, the format should see a bad block and mark it as such.

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
JohnJS Offline





Group: Members
Posts: 200
Joined: Oct. 2006
Posted: Feb. 16 2008,17:05 QUOTE

/etc/mtab reads: /dev/sda1 /mnt/sda1 vfat rw,nosuid,nodev,umask=000,uid=1001,gid=50 0 0

Ran cfdisk as Aterm sudo su.

Mounted using rightclick on dfm icon.

What command do I use to format in Linux other than cfdisk? (newbie question).

Edit: Solved it:
Used mke2fs and then cfdisk, wiped the stick clean. Many thanks for assistance.
Back to top
Profile PM 
11 replies since Feb. 15 2008,21:24 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: Unable to delete files on usb

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code