Questions tagged [read-write]
The read-write tag has no usage guidance.
40 questions
0
votes
1
answer
74
views
Unable to write dumpcap output to mounted drive
I managed to automount an exFAT drive with rw permissions. The mount point is a directory I made (/media/usb1) and the drive itself is named usb1.
sudo dumpcap -i eth1 -w /media/usb1/logs -b duration:...
-1
votes
2
answers
62
views
When io util is relatively high, will Linux read and write hard disks return EIO?
When input/output util is relatively high, will Linux read and write hard disks return EIO?
2
votes
2
answers
2k
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 ...
1
vote
0
answers
9k
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 ...
2
votes
1
answer
2k
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 ...
0
votes
0
answers
1k
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/...
0
votes
2
answers
256
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
...
1
vote
0
answers
48
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/...
3
votes
1
answer
807
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.
...
1
vote
1
answer
2k
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,...
2
votes
0
answers
260
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/*...
0
votes
0
answers
828
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 ...
1
vote
0
answers
619
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 ...
2
votes
1
answer
2k
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 ...
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 ...
3
votes
3
answers
24k
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?...
17
votes
2
answers
35k
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 ...
0
votes
0
answers
337
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 ...
0
votes
1
answer
59
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 ...
3
votes
0
answers
785
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 ...
1
vote
0
answers
984
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 ...
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 ...
0
votes
1
answer
192
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 ...
3
votes
0
answers
6k
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 ...
-2
votes
1
answer
443
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 ...
1
vote
2
answers
7k
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 ...
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:~ ...
1
vote
2
answers
735
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 ...
-1
votes
1
answer
362
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 ...
2
votes
1
answer
3k
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,...
1
vote
1
answer
645
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?
20
votes
5
answers
154k
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 ...
1
vote
1
answer
372
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 ...
3
votes
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 ...
1
vote
0
answers
158
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 ...
1
vote
2
answers
23k
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 /...
2
votes
5
answers
542
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 ...
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 ...
0
votes
1
answer
611
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 ...
66
votes
6
answers
215k
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 ...