I'm trying to format a 64gb pen drive that turned readonly after failing to move a larger video file using gparted but it keeps failing due to the pen drive being in readonly. (just installed Ubuntu for this). Doing sudo hdparm -r0 /dev/sdb
returns:
setting readonly to 0 (off)
readonly = 1 (on)
Is there any other way to turn off readonly? I also tried a bunch of other hdparm commands but they usually return: "no such file or directory"
sudo umount /dev/sdb
before you try to format it. – waltinator Aug 17 '23 at 01:03