apt get life

Life around technology

  • Technology
    • Guides
    • Linux
    • Development
      • Laravel
    • Misc
    • Raspberry Pi
  • Writing
  • Crafts
    • Crochet
    • Model Making
    • Painting
You are here: Home / Archives for hard drive errors

Fixing Cannot remount block device is write protected on Ubuntu

2017/02/26 by sudo

While working on an old hard drive, I came across a problem that it would only mount as read only, even when specifying that it should mount as read write. Here’s an example:

1
2
mount /dev/sdb1 /media/aptgetlife/datadisk -o remount,rw
mount: cannot remount block device /dev/sdb1 read-write, is write-protected

By this point I’d already got the data disk mounted to the local user media folder, so I could read data from /media/aptgetlife/datadisk but not write data to it.

After some investigation I was able to found this post on stack overflow regarding a similar problem and a solution using blockdev:

1
blockdev --setrw /dev/sdb1

After which it was possible to run the mount command again, which didn’t present an error and allowed me to write data to the disk.

Share this:

  • Twitter
  • Facebook
  • Google
  • Reddit
  • Tumblr
  • Pinterest

Filed Under: Misc, Technology Tagged With: hard drive errors, mount, troubleshooting

Recent Posts

  • mount disk image created with dd using ubuntu
  • Fixing Cannot remount block device is write protected on Ubuntu
  • Add a policy to ImageMagick in Debian
  • Laravel 5.2 API Token Authentication
  • Linux servers – using ClamAV to find malware

Tags

6 word stories 7z 7zip API auditing BBC command line Courier MTA crochet data recovery debian debudding development Dingo API email Getting started with Laravel 5 & Dingo API hard drive health internet radio Laravel larvel 5 lenovo Linux mailq Mail Quota Minion mint netgear nas network shares php Postfix proxy server samba SMART smartctl smartmontools smb smbfs squid testing ubuntu vagrant Virtual machines wget xdebug xubuntu

© Copyright 2015 apt get life