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

  • Maybe sudo hdparm -r0 /dev/sdb will help? – You'reAGitForNotUsingGit Nov 29 '16 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: https://ubuntuforums.org/showthread.php?t=2196858&p=13199297#post13199297 You can try to wipe the first megabyte and after that try with gparted again. – sudodus Nov 29 '16 at 15:58
  • You should also try zeroing out the first few megabytes with dd. – You'reAGitForNotUsingGit Nov 29 '16 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. – C.S.Cameron Dec 01 '16 at 02:18
  • You can analyze the problem according to this link and if you are lucky, find a solution. – sudodus Aug 10 '22 at 07:01

1 Answers1

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.

waldyrious
  • 2,197