Other Help Topics :: Unable to delete files on usb



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.

- 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?

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.

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.
/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.

Next Page...
original here.