mount: cannot remount /dev/sda5 read-write, is write-protected

Collapse

Unconfigured Ad Widget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Delaney martin
    Senior Member
    • Jun 2022
    • 191

    mount: cannot remount /dev/sda5 read-write, is write-protected

    Whenever I tried to read/write my file using: sudo mount -o remount,rw /, I got this error: mount: cannot remount /dev/vda1 read-write, is write-protected. Is there any reason for this?
  • Clay Page
    Senior Member
    • Sep 2022
    • 127

    #2
    Run this once in rescue mode to locate root disk : lsblk

    Your root partition is probably /dev/sda5 or /dev/vda1.

    Run filesystem check (fsck)
    Now run:

    fsck -f /dev/sda5
    Replace /dev/sda5 with your actual root partition from lsblk​

    reboot Server
    Now try:

    mount | grep ' / '

    Comment

    VPS Hosting
    Working...
    X