| View previous topic :: View next topic |
| Author |
Message |
heiowge LXF regular

Joined: Wed Feb 27, 2008 8:21 pm Posts: 1803 Location: Cheshire, UK
|
Posted: Thu Jul 12, 2012 8:48 pm Post subject: can't remove a file from a USB drive |
|
|
I've got a USB stick with a couple of files on it I need gone. After dolphin failed, I tried CLI. As root, I was unable to remove them.
rm: cannot remove `torch 23.JPG': Read-only file system
Any help? _________________ AMD PHENOM II X6, 14 GB DDR3, 500 GB hd, 1GB nVidia card, running Linux Mint 14 KDE / Win 7. Damn thing keeps breaking.
eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd running Mint 14 MATE. Running great. |
|
| Back to top |
|
 |
heiowge LXF regular

Joined: Wed Feb 27, 2008 8:21 pm Posts: 1803 Location: Cheshire, UK
|
Posted: Thu Jul 12, 2012 8:57 pm Post subject: |
|
|
Ok, the files are gone. I unmounted and remounted the stick and I could suddenly do it!
I still want an answer to the question though... how do I change the permissions so I can delete read only files in the future (without pulling the stick)?
I've been trying to wrap my head around chown and chmod, thinking they were the sort of things I should be looking at, but Gaaarrrgghh!!! They talk all "man pages" at me.  _________________ AMD PHENOM II X6, 14 GB DDR3, 500 GB hd, 1GB nVidia card, running Linux Mint 14 KDE / Win 7. Damn thing keeps breaking.
eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd running Mint 14 MATE. Running great. |
|
| Back to top |
|
 |
Rhakios Moderator

Joined: Thu Apr 07, 2005 12:18 am Posts: 7484 Location: Midlands, UK
|
Posted: Thu Jul 12, 2012 9:06 pm Post subject: |
|
|
Sometimes it's as simple as going to the file's properties in your preferred file manager and ticking the Write box. However, as your error seems to indicate a read only file system, I assume the stick itself hadn't mounted properly, that's a bit odd, presumably after you pulled it and reinserted it, it remounted rw, as one would expect. _________________ Bye, Rhakios |
|
| Back to top |
|
 |
heiowge LXF regular

Joined: Wed Feb 27, 2008 8:21 pm Posts: 1803 Location: Cheshire, UK
|
Posted: Thu Jul 12, 2012 9:15 pm Post subject: |
|
|
Something like that. I did reach from my little CLI book, but it's not there. I think it's in the loft and I left the Fedora based Linux guide down here instead. The book isn't in plain English. It's like "Man pages - the full volume!"  _________________ AMD PHENOM II X6, 14 GB DDR3, 500 GB hd, 1GB nVidia card, running Linux Mint 14 KDE / Win 7. Damn thing keeps breaking.
eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd running Mint 14 MATE. Running great. |
|
| Back to top |
|
 |
Rhakios Moderator

Joined: Thu Apr 07, 2005 12:18 am Posts: 7484 Location: Midlands, UK
|
Posted: Thu Jul 12, 2012 10:48 pm Post subject: |
|
|
I have "Linux Command: Instant Reference" which is a bit like that, but it's one short reach from my desk. And much better than "Linux Complete", which is basically just all of man from a particular era in print. _________________ Bye, Rhakios |
|
| Back to top |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1570 Location: Guisborough
|
Posted: Thu Jul 12, 2012 11:11 pm Post subject: |
|
|
GIYF man chmod _________________
Ubuntu LXDE 12.04 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
|
|
| Back to top |
|
 |
wyliecoyoteuk LXF regular

Joined: Sun Apr 10, 2005 11:41 pm Posts: 3369 Location: Birmingham, UK
|
Posted: Fri Jul 13, 2012 12:38 pm Post subject: |
|
|
If it was saying "read only file system", then it was mounted as read only, i.e. like CD. _________________ The sig between the asterisks is so cool that only REALLY COOL people can even see it!
*************** ************ |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8036 Location: Warrington, UK
|
Posted: Wed Jul 18, 2012 12:19 am Post subject: |
|
|
It said read-only filesystem, not read-only file, so chmod won't help. In fact it won't do anything because the filesystem is read-only. This is not unusual with USB sticks and is usually caused by a filesystem error causing the kernel to mount the stick read-only to prevent damage. Unmounting and remounting the stick generally works, unless the filesystem is already damaged. _________________ "Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein) |
|
| Back to top |
|
 |
JimCameron
Joined: Tue Sep 11, 2012 11:03 am Posts: 1
|
|
| Back to top |
|
 |
heiowge LXF regular

Joined: Wed Feb 27, 2008 8:21 pm Posts: 1803 Location: Cheshire, UK
|
Posted: Tue Sep 11, 2012 12:02 pm Post subject: |
|
|
You are aware this is a LINUX forum?  _________________ AMD PHENOM II X6, 14 GB DDR3, 500 GB hd, 1GB nVidia card, running Linux Mint 14 KDE / Win 7. Damn thing keeps breaking.
eeepc 1015PX, 1.66 Ghz Intel atom processor, 2 GB DDR3, 320 GB hd running Mint 14 MATE. Running great. |
|
| Back to top |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1570 Location: Guisborough
|
Posted: Tue Sep 11, 2012 12:57 pm Post subject: |
|
|
| heiowge wrote: | You are aware this is a LINUX forum?  |
This made me laugh
No special system requirements. LONG PATH Tool works on any Windows version (NT/2000/XP/Vista/Windows 7). _________________
Ubuntu LXDE 12.04 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
|
|
| Back to top |
|
 |
Rhakios Moderator

Joined: Thu Apr 07, 2005 12:18 am Posts: 7484 Location: Midlands, UK
|
Posted: Tue Sep 11, 2012 8:42 pm Post subject: |
|
|
| Ram wrote: | | heiowge wrote: | You are aware this is a LINUX forum?  |
This made me laugh
No special system requirements. LONG PATH Tool works on any Windows version (NT/2000/XP/Vista/Windows 7). |
Or indeed, knife, fork and plate.  _________________ Bye, Rhakios |
|
| Back to top |
|
 |
Nelson32 Guest
|
Posted: Sat Oct 06, 2012 3:43 pm Post subject: |
|
|
| Long Path Tool helped me in this situation, but don't listen to a stupid spammer like me. |
|
| Back to top |
|
 |
Ram LXF regular

Joined: Thu Apr 07, 2005 10:44 pm Posts: 1570 Location: Guisborough
|
Posted: Sat Oct 06, 2012 5:39 pm Post subject: |
|
|
Think you should lock this thread, might stop the stupid idiots posting. _________________
Ubuntu LXDE 12.04 running on AMD Phenom II*4; ASUS Crosshair III Formula MB; 4 GB Ram.....
|
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 8036 Location: Warrington, UK
|
Posted: Sat Oct 06, 2012 5:42 pm Post subject: |
|
|
I'd rather delete the idiots than prevent genuine users being able to use the thread. _________________ "Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein) |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|