SD card stays locked even when unlocked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Description: Ubuntu 18.04.2 LTS
Release: 18.04
After card reader device is used with write-protected SD card, write-protection incorrectly persists to future SD cards, even non-protected ones.
To reproduce:
1) Insert non-protected SD card in card reader (confirm system normal):
$ sudo hdparm -r /dev/sdd
/dev/sdd:
readonly = 0 (off)
[result is correct]
2) Eject card, set physical lock on side of card, reinsert:
$ sudo hdparm -r /dev/sdd
/dev/sdd:
readonly = 1 (on)
[result is correct - card read-only]
3) Eject card again, unlock card, reinsert
$ sudo hdparm -r /dev/sdd
/dev/sdd:
readonly = 1 (on)
[result is **incorrect** (card still locked)]
Because the lock is still set, the device always appears read-only. (For example, I cannot "dd" to /dev/sdd)
Workaround:
after removing the locked card, issue "sudo hdparm -r0" to turn off the lock. Then insert the unlocked card and the device will appear read/write.
(I don't know if this is the right package to report against.)
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: udisks2 2.7.6-3ubuntu0.2
ProcVersionSign
Uname: Linux 4.15.0-46-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CurrentDesktop: XFCE
CustomUdevRuleF
Date: Fri Apr 5 14:50:32 2019
InstallationDate: Installed on 2016-09-28 (919 days ago)
InstallationMedia: Xubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
MachineType: Hewlett-Packard HP Z620 Workstation
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: udisks2
Symptom: storage
Title: No permission to access files on storage device
UpgradeStatus: Upgraded to bionic on 2019-01-14 (81 days ago)
dmi.bios.date: 05/27/2015
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: J61 v03.88
dmi.board.
dmi.board.name: 158A
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 0.00
dmi.chassis.
dmi.chassis.type: 6
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-
dmi.product.family: 103C_53335X G=D
dmi.product.name: HP Z620 Workstation
dmi.sys.vendor: Hewlett-Packard
it's more likely a kernel issue, reassigning