0
$ dmesg | tail
[1103808.031688] usb 2-2: SerialNumber: A0325H14RA77001200
[1103808.032241] usb-storage 2-2:1.0: USB Mass Storage device detected
[1103808.032523] scsi host6: usb-storage 2-2:1.0
[1103809.203868] scsi 6:0:0:0: Direct-Access     hp       v210w            1100 PQ: 0 ANSI: 4
[1103809.204550] sd 6:0:0:0: Attached scsi generic sg2 type 0
[1103809.207667] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[1103809.215288] sd 6:0:0:0: [sdb] 31195648 512-byte logical blocks: (16.0 GB/14.9 GiB)
[1103809.216046] sd 6:0:0:0: [sdb] Write Protect is on
[1103809.216050] sd 6:0:0:0: [sdb] Mode Sense: 43 00 80 00
[1103809.220912]  sdb: sdb1

$ fsck -n /dev/sdb1
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
Warning!  /dev/sdb1 is mounted.
fsck.ext2: Permission denied while trying to open /dev/sdb1
You must have r/o access to the filesystem or be root

$ fdisk -l
fdisk: cannot open /dev/loop0: Permission denied
fdisk: cannot open /dev/loop1: Permission denied
fdisk: cannot open /dev/loop2: Permission denied
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied

$ sudo hdparm -r0 /dev/sdb1
/dev/sdb1:
 setting readonly to 0 (off)
 readonly      =  0 (off)

$ fdisk -l
fdisk: cannot open /dev/loop0: Permission denied
fdisk: cannot open /dev/loop1: Permission denied
fdisk: cannot open /dev/loop2: Permission denied
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied

$ umount /dev/sdb1

$ sudo mkfs -t vfat /dev/sdb1
mkfs.fat 3.0.28 (2015-05-16)
mkfs.vfat: unable to open /dev/sdb1: Read-only file system

How can I make the pendrive available for normal use? I use Ubuntu 16.04

marked as duplicate by Zanna, Eric Carvalho, user364819, karel, muru Jul 20 '17 at 9:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Generally you have to run fdisk -l with sudo. Same applies to umount and fsck afaik. This [1103809.216046] sd 6:0:0:0: [sdb] Write Protect is on suggests there is a write protect setting on the drive. It might even be a physical switch. – Zanna Jul 18 '17 at 8:58
  • 1
    This problem (and/or related problems) is described at the following link, askubuntu.com/questions/144852/… – sudodus Jul 18 '17 at 10:18

Browse other questions tagged or ask your own question.