Remove write protection on a usb drive

General security questions
Post Reply
Chris
Site Admin
Posts: 129
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium
Contact:

Remove write protection on a usb drive

Post by Chris »

ho do I remove write protection on a usb drive ?

I have a drive that I want to format.
but when I try to do it under windows,
I get the message that the drive is write-protected.
Chris
Site Admin
Posts: 129
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium
Contact:

Re: Remove write protection on a usb drive

Post by Chris »

Best is to erase the partitions with fdisk or gparted
and create new ones.
Chris
Site Admin
Posts: 129
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium
Contact:

Re: Remove write protection on a usb drive

Post by Chris »

You can check with hdparm :

Code: Select all

sudo hdparm /dev/sdc

/dev/sdc:
 multcount     =  0 (off)
 readonly      =  1 (on)
 readahead     = 256 (on)
 geometry      = 15904/64/32, sectors = 32571392, start = 0
Change it with:

Code: Select all

sudo hdparm -r0 /dev/sdc1
If it doesn't work, it might be a problem with the USB drive.
Post Reply