D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] how to fix read only USB key?

 

On 04/06/15 21:28, Eion MacDonald wrote:


On 04/06/2015 10:04, Tom wrote:
On 03/06/15 22:56, Eion MacDonald wrote:
Dear folk, stupidly I cancelled a half written linux with uNetbootin to
a USB key. I find it mounts 'read-only' and GParted  will not reformat.
Is there a way to recover a usable USB Key from 'read-only' status to
read-write status?
Any help appreciated.

sudo hdparm -r0 /dev/sdb      or wherever the usb is
unplug usb and plug in again..

another technique is to
dd if=/dev/zero of=/dev/sdb bs=1M
unplug usb and plug in again..

make sure you have the right usb or else!!!!!
usual at your own risk stuff
Tom te tom te tom

response as root or user 'failed to open read only file system'
Thanks for second part using dd, I had not tried that before.
Seems locked as a CD?

It is possible to physically lock some devices - is there a little teeny weeny switch somewhere?
Tom te tom te tom

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq