Questions tagged [read-only]

Questions related to read-only devices or permissions.

444 questions
227
votes
20 answers

How to fix "sudo: unable to open ... Read-only file system"?

The title might not be as descriptive as I would like it to be but couldn't come up with a better one. My server's file system went into Read-only. And I don't understand why it does so and how to solve it. I can SSH into the server and when trying…
John
  • 2,443
168
votes
20 answers

USB devices showing as read only

I am using Ubuntu 14.04. I have an 8gb FAT32 USB stick and a 500gb FAT32 HDD; both of these have suddenly become read only devices. I've tried deleting the directory inside /media and then creating it again, renaming it, then giving that directory…
oodles2do
  • 1,843
113
votes
4 answers

How to mount a hard disk as read-only from the terminal

How do you mount a hard disk from the command line as read-only? I don't want or need a link to the man page, I want the exact thing I will have to type in if the following is true: disk to mount is on /dev/sda it is 2 TB -it is critical that I…
wardr
  • 2,429
90
votes
10 answers

Why does my NTFS partition mount as read only?

Until recently both my Windows Partition (C:) and my Data Partition (E:) would mount as read/write. Now both seem to only mount as read-only. GParted Resize (Error) ntfsresize v2.0.0 (libntfs 10:0:0) Device name : /dev/sda4 NTFS volume version:…
83
votes
6 answers

Read / Write permissions in /opt directory

I installed Android Studio in my /opt directory without a hitch and have been using it. Recently, though, Android Studio informed me of an update. It won't perform the update, however, because it says it doesn't have Read / Write permissions in the…
wayneeusa
  • 969
68
votes
7 answers

How to Fix "Read-only file system" error when I run something as sudo and try to make a folder/file?

When I try to save something or rename a file/folder it say this error " Read-only file system" or run something as root in the terminal it say this error sudo: unable to open /var/lib/sudo/"My User Name"/0: Read-only file system W: Not using…
MathCubes
  • 5,732
45
votes
5 answers

Read Only usb stick that won't let me do anything to it

Somehow I messed up and accidentally made my usb stick into a read only file system. I have tried a bunch of things to delete the files, including the basic (rm -f myfile) and attempting to allow writing (sudo chmod +w myfile) and then deleting,…
Jonathon
  • 594
43
votes
7 answers

Why can I modify a read-only file?

Short Question: Why can we manipulate a read-only file in Vim using : + w + q + ! even without being an administrator? Long Question: I have a text file (myFile.txt) which is read-only for everyone: navid@navid-ThinkPad-T530:~/ubuntuTest$ ls -l…
40
votes
3 answers

Unable to open /dev/sdb read-write (Read-only file system)

As in the title, I'm unable to format it as it says read-only. I've tried couple of searches and the solutions too. Even I tried GParted to see I have any luck. Unfortunately below is what I get. GParted 0.11.0 --enable-libparted-dmraid Libparted…
AzkerM
  • 10,390
38
votes
1 answer

'sudo apt-get install' is showing "Not using locking for read only file /var/lib/dpkg/lock" warning on Ubuntu Touch

I just installed Ubuntu Touch on my Nexus 7. Unfortunately I can't install anything from the terminal app: If I enter: sudo apt-get install yasm -y git make g++ build-essential libminiupnpc-dev I get: W: Not using locking for read only lock file…
33
votes
6 answers

How to edit read-only file in /etc?

I'm a brand new user so I'm not sure of my way around the system yet. I want to change my computer's name, so I tried to edit the name in /etc/hostname, but it is a read-only file. Adding the ! character didn't help. I'm using vim to edit the file.
32
votes
3 answers

Why can't snap files be modified in any way?

I have been trying for a long time to change Blender's icon, but no matter what I do, I am not allowed to edit anything in /snap/blender-tpaw/3/. Here's what I tried: Editing the files from nautilus without sudo. Editing the files from nautilus…
Tooniis
  • 1,602
31
votes
4 answers

How to fix "The destination is read-only" error on HDD partition

How to fix The destination is read-only error on HDD partition with Windows 8.1 dual boot? Error while copying to ntfs partition
VJ Ranga
  • 1,539
26
votes
6 answers

Read-only partition, dual boot WIn10

I am no longer able to write on the data partition files in Ubuntu, due to a "read-only" message appearing. I have 3 partitions: one has Ubuntu installed (1), one is for Win10 (2) (dual boot) and the 3rd (3) is for data storage. Today I updated…
22
votes
2 answers

How to create a read-only link to a directory?

One of my scripts dynamically creates a symlink like so: ln -s /home/hosting/projects/images /home/hosting/projects/demo/images How can I make it so that the access through link is read-only?
Elmor
  • 355
1
2 3
29 30