'Error: Read-only file system', even with root privileges in Bash shell

GreenJames

I have Ubuntu 17.10 with gnome installed on it. Something I did (removing a folder from /usr/share/gnome-shell) made me unable to use GNOME. So, I booted into recovery mode with root privileges. I made a backup of that folder before I deleted it, so I thought it would be as easy as cp -r <backup> <destination>.

Sadly, even with root privileges, it told me that it was unable to copy since /usr/share/gnome-shell/ is read-only. What do I do? Have no access to GNOME at all, and I am doing this in the Ubuntu bash recovery mode, so I can only do terminal commands.

steeldriver

By default, filesystems are mounted with the readonly (ro) option when in recovery mode. You will need to re-mount / in read-write (rw) mode:

mount -o remount,rw /

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Make file read only on Linux even for root

From Dev

Make file read only on Linux even for root

From Dev

File that is only readable with root privileges

From Dev

Root file system mounted as read-only

From Dev

Can't edit read only file even when root

From Dev

nix-shell error - mkdir: cannot create directory '/nix/store/...': Read-only file system

From Dev

EROS | Read Only file system error

From Dev

Root file system is mounted read-only on boot on Gentoo Linux

From Dev

Is using a read only root file system a good idea for embedded setup?

From Dev

Ubuntu 12.04 SSD root frequent random read only file system

From Dev

CentOS root file system goes into read-only after reboot

From Dev

Read only file system

From Dev

How do I make a file permanently read-only on Linux so even root can not edit it?

From Dev

webapp2 - read-only file system error

From Dev

Error creating imagefile (Read-only file system)

From Dev

"read-only file system" error when pulling Docker image

From Dev

Read-only file system error while creating a directory?

From Dev

How to Solve this Read-only file system error?

From Dev

udev rule triggers error "Read-only file system"

From Dev

Read-only file system error for mounted media

From Dev

Read-only file system when attempting mkdir /root/.local/share on Mac with Putty

From Dev

How to demand root privileges in a shell script?

From Dev

Read only file-system error while downloading file from FTP in Android

From Dev

adb: error: Read-only file system when trying to push hosts file

From Dev

How to create a user with root privileges in bash?

From Dev

How to create a user with root privileges in bash?

From Dev

How to elevate privileges to root in bash and return back?

From Dev

sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

From Dev

logrotate succeeds when manually run as root, but fails with "Read-only file system" when run by logrotate.service

Related Related

  1. 1

    Make file read only on Linux even for root

  2. 2

    Make file read only on Linux even for root

  3. 3

    File that is only readable with root privileges

  4. 4

    Root file system mounted as read-only

  5. 5

    Can't edit read only file even when root

  6. 6

    nix-shell error - mkdir: cannot create directory '/nix/store/...': Read-only file system

  7. 7

    EROS | Read Only file system error

  8. 8

    Root file system is mounted read-only on boot on Gentoo Linux

  9. 9

    Is using a read only root file system a good idea for embedded setup?

  10. 10

    Ubuntu 12.04 SSD root frequent random read only file system

  11. 11

    CentOS root file system goes into read-only after reboot

  12. 12

    Read only file system

  13. 13

    How do I make a file permanently read-only on Linux so even root can not edit it?

  14. 14

    webapp2 - read-only file system error

  15. 15

    Error creating imagefile (Read-only file system)

  16. 16

    "read-only file system" error when pulling Docker image

  17. 17

    Read-only file system error while creating a directory?

  18. 18

    How to Solve this Read-only file system error?

  19. 19

    udev rule triggers error "Read-only file system"

  20. 20

    Read-only file system error for mounted media

  21. 21

    Read-only file system when attempting mkdir /root/.local/share on Mac with Putty

  22. 22

    How to demand root privileges in a shell script?

  23. 23

    Read only file-system error while downloading file from FTP in Android

  24. 24

    adb: error: Read-only file system when trying to push hosts file

  25. 25

    How to create a user with root privileges in bash?

  26. 26

    How to create a user with root privileges in bash?

  27. 27

    How to elevate privileges to root in bash and return back?

  28. 28

    sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?

  29. 29

    logrotate succeeds when manually run as root, but fails with "Read-only file system" when run by logrotate.service

HotTag

Archive