1

i have deleted a usb disk using Gparted , and i am trying to create new disk using the unlocated space .. and i found this message

Can't write to /dev/sdb, because it is opened read-only.

enter image description here

5
  • Maybe sudo hdparm -r0 /dev/sdb will help? Nov 29, 2016 at 15:48
  • Is this a USB pendrive (guessing from the size)? In that case, if it is read-only, whatever you try to do with it, you may have a big problem: it might be 'gridlocked'. See this link and links from it: ubuntuforums.org/… You can try to wipe the first megabyte and after that try with gparted again.
    – sudodus
    Nov 29, 2016 at 15:58
  • You should also try zeroing out the first few megabytes with dd. Nov 29, 2016 at 16:08
  • Sometimes a dedicated gparted Live USB stick will do things that the version of gparted installed in Ubuntu will not. Your problem looks like it might be one of those occasions. Dec 1, 2016 at 2:18
  • You can analyze the problem according to this link and if you are lucky, find a solution.
    – sudodus
    Aug 10, 2022 at 7:01

1 Answer 1

0

Run the following commands:

sudo hdparm -r0 /dev/sdb

sudo umount /dev/sdb

Then go to Gparted and format the drive as FAT32.

Now it can be opened by Windows or any other operating system.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .