[SOLVED] usb drive: cannot remount block device /dev/sdb1 read-write, is write-protected
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
usb drive: cannot remount block device /dev/sdb1 read-write, is write-protected
hi, i have a usb thumb drive that has been running my xbmc full install for a couple of years. now it wont boot and i suspect its because the drive keeps complaining about being write-protected:
Code:
[schneidz@hyper ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
Bus 001 Device 012: ID 13fe:5200 Kingston Technology Company Inc.
[schneidz@hyper ~]$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 31.0 GB, 31009800192 bytes
255 heads, 63 sectors/track, 3770 cylinders, total 60566016 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 20482047 10240000 83 Linux
/dev/sdb2 20482048 60534783 20026368 83 Linux
[schneidz@hyper ~]$ mount
...
/dev/sdb1 on /media/d9788d9b-9612-4983-830d-3ca680e715fe type ext2 (ro,nosuid,nodev,relatime,seclabel,errors=continue,uhelper=udisks)
/dev/sdb2 on /media/xbmc-data type ext2 (ro,nosuid,nodev,relatime,seclabel,errors=continue,uhelper=udisks)
[schneidz@hyper ~]$ sudo hdparm -r0 /dev/sdb
/dev/sdb:
setting readonly to 0 (off)
readonly = 0 (off)
[schneidz@hyper ~]$ sudo mount -o remount,rw /dev/sdb1
mount: cannot remount block device /dev/sdb1 read-write, is write-protected
[schneidz@hyper ~]$ fsck -v /dev/sdb1
fsck from util-linux 2.19.1
e2fsck 1.41.14 (22-Dec-2010)
fsck.ext2: Read-only file system while trying to open /dev/sdb1
Disk write-protected; use the -n option to do a read-only
check of the device.
how to remove the write-protection (gparted wont format it) ?
i am able to copy all the files off of it but i just cant modify any of the files.
If it would be a sdcard i'd say it is locked by its little jumper ...;
Is there maybe some bios option, which allows only read access to external devices ?
Did you check in another pc if it is writable there ?
Or remove it from fstab (if it is in there) and mount manually on a different mount point ?
Did you check the mount point ? Sometimes there are files in the folder which is used as mount point (when the device got removed and sth tried to write to it)
If it would be a sdcard i'd say it is locked by its little jumper ...;
there is no switch on the outside of it. maybe i can take it apart and use jumper wire to reflash it to read-write.
Quote:
Originally Posted by heinblöd
Is there maybe some bios option, which allows only read access to external devices ?
when i plug my fone in, i can read-write.
Quote:
Originally Posted by heinblöd
Did you check in another pc if it is writable there ?
doesnt work in any other pc.
Quote:
Originally Posted by heinblöd
Or remove it from fstab (if it is in there) and mount manually on a different mount point ?
yup.
Quote:
Originally Posted by heinblöd
Did you check the mount point ? Sometimes there are files in the folder which is used as mount point (when the device got removed and sth tried to write to it)
good points. at this point i think it is just busted. i think flash drive manufacturers are putting clever fail-safes on these drives since they fail so often.
similar if you have a failing internal hard drive it is best to disconnect it then plug it in as a secondary so you can save all your stuff to another hd before it is lost forever ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.