Questions tagged [read-write]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
81 views

Restrict linux process write permission to one folder

I want a process (and all its potential children) to be able to read the filesystem according to my user profile but I want to restrict that process's write permission to only a set of pre-selected ...
user avatar
1 vote
0 answers
2k views

mount: /: mount point not mounted or bad option (fresh Gentoo installation)

Just rebooted gentoo install from livecd, and it seems like nothing is writable. On boot I get this error as it tries to remount the root filesystem read/write: mount: /: mount point not mounted or ...
user avatar
  • 11
2 votes
1 answer
481 views

Testing LTO drive with mt and dd

Here are my commands mt -f /dev/st0 rewind dd if=/dev/st0 of=- As I understand it the first command rewinds my tape in /dev/st0, and the second command writes contents of /dev/st0 to -. My questions ...
user avatar
0 votes
0 answers
374 views

Unable to write to a folder on a drive on AiX system

I logged in the server with the below user id. myhost:hkgdb:/wd/user1>id uid=214(user1) gid=321(dba) groups=1(staff) I'm getting the following error while writing to a file: myhost:hkgdb:/wd/...
user avatar
  • 307
0 votes
2 answers
91 views

Read and write to file using bash

Problem statement: Read a file line by line Execute a command on each file Print the line and output of command in another file Input file (urls.txt): www.google.com www.yahoo.com www.bing.com ...
user avatar
1 vote
0 answers
22 views

Installed a steam game through one user but no write permissions from other?

I downloaded CS:GO steam in Linux Mint Tricia 19.3 through a standard user (spectra) and an administrator (darkguy) (tried both ways). Installed directoty :/mnt/227ad523-2b06-456b-908f-fbda67a95046/...
user avatar
3 votes
1 answer
326 views

Can I mount ext4 without writing the last mountpoint to the filesystem?

I have an old ext4 disk partition that I have to investigate without disturbing it. So I copied the complete partition to an image file and mounted that image file while continuing my investigation. ...
user avatar
  • 287
0 votes
1 answer
1k views

Unable to write/read from serial port after couple of minutes/hours. Error message: stty: standard input: Inappropriate ioctl for device

I am trying to write and read from serial port at the same time. The purpose of this is to turn on and off a device over a DIO card which is connected to the serial port. While doing these on/off test,...
user avatar
3 votes
0 answers
137 views

Why the user root doesn't have "w" permission of its home directory?

I'm on Oracle Linux 7.6. The user root apparently has write permission for its own home directory /root. But why the mode bits of /root shows dr-xr-x---. instead of drwxr-x---.? root:[~]# cat /etc/*...
user avatar
0 votes
0 answers
500 views

HPE MSA-2050, FC extremely slow read/write

There's HP DL380 Gen10 server (dual Xeon Silver 4110 2.10GHz, 128Gb RAM, qlogic qla2xxx ) running debian 9.8, acting as database sever (percona server-5.6.43-84.3). Mysql data directory is connected ...
user avatar
  • 193
1 vote
0 answers
381 views

A more permanent change to readonly squashfs mounted /etc

I have an IP-camera with the BusyBox v1.22.1 operating system that has some accounts either without or with public known passwords that I want to change to make it more secure. I have managed to log ...
user avatar
  • 11
1 vote
1 answer
1k views

/sys/kernel/debug/dynamic_debug/control not writable, follow xhci_hcd debug guide

I want to follow this tutorial. But I can't write to /sys/kernel/debug/dynamic_debug/control- or [debugfs]/dynamic_debug/control-file as suggested by the guide, even tough I am root, the special ...
user avatar
1 vote
1 answer
1k views

Saving terminal output to file line-by-line (writing and closing file after every print)

I have a Python script running on a Linux machine which is printing output out to the terminal. Currently, I'm logging this output to a file using the script command. However, the problem with this ...
user avatar
3 votes
3 answers
21k views

Write access to NTFS drives

Never had this problem before. The drives will not give me write access Drives are ntfs. Fstab was set on default, now tried rw option and nothing. Using Manjaro. How can I get write access to drives?...
user avatar
10 votes
2 answers
17k views

Under what conditions exactly does SIGPIPE happen?

Say we have a named pipe called fifo, and we're reading and writing to it from two different shells. Consider these two examples: shell 1$ echo foo > fifo <hangs> shell 2$ cat fifo foo shell ...
user avatar
0 votes
0 answers
292 views

Comparing I/O schedulers

I intend to compare different three I/O schedulers: "noop", "cfq", and "deadline" and I plan to compare them for both random reads and writes. So far, the only meaningful cases that I have identified ...
user avatar
0 votes
1 answer
32 views

Having multiple computers on network access file?

Say I have a program being run on multiple computers all on the same network (and all on the same account). Every once in a while the program needs to read/write a file save.dat. The actual file ...
user avatar
  • 103
2 votes
0 answers
663 views

Can't set filesystem to rw after crash

My Mint crashed twice yesterday. Googling for frozen system with flashing caps and scroll-lock LEDs made me believe it was a hardware problem. I carefully cleaned everything, and the hardware seems to ...
user avatar
1 vote
0 answers
832 views

Unable to write to partition

I have a dual boot system: Kali Linux + Windows 10, on two different partitions. There are two other partitions I use for storage. They are accessible. I can mount them, but I'm unable to write to ...
user avatar
0 votes
3 answers
5k views

Can't format USB Stick

Ok so here's what happened. I had been using a USB stick to re-install Windows 10 and quickly reformat my dads laptop. Now I used the existing Windows 10 to create the live USB drive and I guess it ...
user avatar
  • 11
0 votes
1 answer
110 views

Why is the write rate to the disk being up to several GB/s, while no process reports any writing?

I use Ubuntu 17.04, though this problem was persistent in many previous versions. Long ago (a year or two, I think) I started to spot it. Immediately (no more than a couple of minutes) after the ...
user avatar
3 votes
0 answers
5k views

Cannot write to/ cannot create directory (Read-only file system)

I have a dual boot system with Kali Linux and Windows. I have 4 four partitions, one with a Windows install, another with the Kali Linux installation and the other two left aside for storage of other ...
user avatar
-2 votes
1 answer
235 views

How to write on a second hard disk?

New Linux (Debian) installation. Two hard disks, A and B. On A I have the whole system, on B I just have the lost+found directory. Only root has read/write access to B. How can I create a directory in ...
user avatar
  • 449
1 vote
2 answers
5k views

I can't -o "remount,rw" a usb drive

I have a usb drive. It mounts as "ro." When I mount -o "remount,rw" I see this in dmesg. hfsplus: filesystem was not cleanly unmounted, running fsck.hfsplus is recommended. leaving read-only. The ...
user avatar
  • 22.8k
2 votes
1 answer
6k views

checkPermissions Missing write access to /usr/local/lib/node_modules

I tried to install the npm install pug, could not because of the permisions, got this: checkPermissions Missing write access to /usr/local/lib/node_modules However im logged in as as root Linards:~ ...
user avatar
1 vote
2 answers
637 views

How to get read-write access (safe) to ext4 filesystem used by second OS running from virtualbox

I run Ubuntu 16 Desktop as host and on VirtualBox running Ubuntu 16 Server as guest which is using raw partition on another disk different from the one used by the host. I am searching for a solution ...
user avatar
-1 votes
1 answer
218 views

Read file and write output in another file using shell script

My input file is: Employee e_id e_name 100 abc 101 xyz 102 pqr Salary e_id e_salary 100 12345 101 67890 Dependents e_id depp1 depp2 100 qwer tyui 102 asdf ghjkl I want the output line by line as ...
user avatar
  • 1
2 votes
1 answer
2k views

Remounting is not supported at present. You have to umount volume and then mount it once again

I was not able to chmod a file in my /dev/sda3 on my Ubuntu12.04 system. This is what I get when I try to see its information: $ mount | grep 'media' /dev/sda2 on /media/sda2 type fuseblk (rw,...
user avatar
  • 123
1 vote
1 answer
411 views

How can the read/write speed of a partition or drive be measured? [duplicate]

How can I preferable from the terminal measure the read and write speeds of /dev/sdx?
user avatar
  • 1,977
18 votes
5 answers
139k views

USB Disk Read-only, cannot format - Turn off write-protection

I have a USB disk which does not allow me to format/mount/unmount or created partitions on it. Using dmesg | tail gives me the following result: I found this post on AskUbuntu and tried using the ...
user avatar
  • 281
1 vote
1 answer
236 views

SWAP write protection on SSD

When using SWAP on an SSD, does the filesystem offer any write-cycle protection? i.e. randomizing or otherwise managing writes to avoid "flash wear-out" since modern SSDs are generally rated in the ...
user avatar
  • 20.4k
1 vote
2 answers
3k views

Need write permissions to install themes on Linux Mint 17 "Rebecca" Mate

Just installed Linux Mint 17 "Rebecca" Mate. I'm trying to install a new theme and am directed to http://gnome-look.org/index.php?xcontentmode=167 I've downloaded a couple and their instructions ...
user avatar
1 vote
0 answers
102 views

How can we measure performance overhead resulting from writing to files or folders?

I have a tool which takes as input a folder or a file and then it logs operations done on that file or folder (modifying,deletion,creating new folders or files, etc). I was looking for a way to ...
user avatar
1 vote
2 answers
22k views

mounting iso image: message "block device is write protected, mounting read-only"! [duplicate]

I want to delete a few files from my iso image on hard disk. So, I did: ravbholua@ravbholua-Aspire-5315:/media/ravbholua/f34890dd-20d2-4d78-92c9-1de7c0957f00$ sudo mount -o loop check_bholua99.iso /...
user avatar
  • 3,513
2 votes
5 answers
522 views

AWK Search massive file and write to variable name

I want to pull data that I will need to reformat from a simulation file I am working with to prepare it as input for running other simulations. The target data is an optimized chemical z-matrix. The ...
user avatar
6 votes
2 answers
3k views

Overwriting an input file

Solutions that I have come across for replacing the contents of an input file with converted output involve using a temp file or the sponge utility. Stephane Chazelas's answer here indicates another ...
user avatar
  • 16k
0 votes
1 answer
597 views

How do I set up proper ownership of these files?

I need the directory /var/www/ (and everything inside it) to be modifiable by only authorized users. The way I tried to do this was: sudo groupadd webmasters sudo usermod -G webmasters pi # My user ...
user avatar
56 votes
5 answers
169k views

Mounting a squashfs filesystem in read-write

I have a Clonezilla installation on a USB stick and I'd like to make some modifications to the operating system. Specifically, I'd like to insert a runnable script into /usr/sbin to make it easy to ...
user avatar
  • 35.7k