Questions tagged [write]
The write tag has no usage guidance.
23
questions with no upvoted or accepted answers
4
votes
1answer
642 views
How to force Fedora 27 to write to USB flash drive immediately?
My Fedora 27 writes actual data to USB on umount. Before umount it works only with links or something like that. So, for example, when I transfer a big file of 5 GB cp /home/iam/bigFile /run/mnt/iam/...
4
votes
1answer
2k views
Linux USB Flash direct write / write cache
Lately I've been using USB2 flash drives to transfer a lot of data to my company.
When copying the Data to the flash drive, I noticed that the data is not written directly to the drive. It wrote ...
2
votes
1answer
104 views
Prevent battery drain from constant write IO churn by browsers
For some reason, common browsers (Chromium is particularly bad, but Firefox isn't much better) generate constant IO load, particularly writes, on my Debian system. This is the case even when the ...
2
votes
0answers
390 views
How to compress images using trimage?
I installed trimage to optimize images hosted on my websites with nginx However I'm getting the following error:
[error] /var/www/resistfromday1.org/htdocs/wp-content/uploads/2017/01/video-anti-...
2
votes
1answer
117 views
Cannot write to sector - boot Ubuntu
So I was in an airport working and I closed my laptop. When I brought it back up again, my screen was black so I kill switched. Now when I boot, I get "cannot write to sector".
2
votes
0answers
1k views
Problem in writing message from one terminal to another terminal
I have a user of name x in tty1 and y in tty2. x wants to write some message to y and vice-versa. When I typed write y tty2 in the tty1 terminal, it said:
write:you have write permission turned off
...
2
votes
2answers
93 views
How can I simulate an unresponsive file descriptor?
We have an application that writes to a log file. In the prod environment, the log file directory is mapped to a NAS:
192.168.1.10:/storage/app/log 2554360832 11844608 2412762112 1% /usr/local/app/...
1
vote
0answers
37 views
ACL to change Read Write permissions of another User's files
Is there a way that sysadmin can create an ACL(ex: read_write_acl) so that all users which are assigned "read_write_acl" can modify the file permissions (only read and write) for the files ...
1
vote
0answers
149 views
Alternatives to dd to read/write to a disk?
I'm using cp to read/write from an SSD drive but is not fast enough. Then I used dd, which is fast, especially with the drive unpartitioned. But I ran into errors like
there is no space left on ...
1
vote
0answers
102 views
consistent writes to a file while preserving its inode
What is the best way to edit a file consistently (consistency used here in the database systems sense of the term) without changing its inode? Normally, I would write to a temporary file and then ...
1
vote
1answer
781 views
How to use write command to send message to user in debian stretch
who command show that xyz user is on tty2.
$ who
xyz tty2 2018-06-22 08:18 (:0)
I trying send message to xyz using write xyz command. But it does not shows on terminal.
When I run tty ...
1
vote
0answers
147 views
Relation between write and filesystem blocksize in SSD disks on Apple
R. Stevens, in his famous book about programming in O.S. environment, taught us that when the syscall write's block size is comparable (or even equal) to the filesystem block size, the performances ...
1
vote
0answers
626 views
How to allow OpenLDAP user to write data to SSHFS mount point?
I mounted a network drive (Storage Server) to the directory /home/ldap for all OpenLDAP client computers. If a user login one of the computers, their home directory will be set the mount point as: /...
1
vote
0answers
1k views
RAID0 worse that write speeds of hard drives independently
So I have two hard drives one connect with SATA and one with USB3.0
SATA (/dev/sdc1):
Apple HDD Toshiba USB (/dev/sde2):
Western Digital Technologies, Inc. Elements SE Portable
mounted ...
1
vote
0answers
329 views
Random write on DISK benchmark shows high read rate on iostat
I am running a random write benchmark directly on some disks (HDD & SDD) and I am getting some weird output data on the iostat monitor. Besides the usual write rate, there is a read rate that I ...
1
vote
1answer
611 views
flash_erase & nandwrite seem to work, but uname -a shows the same kernel version
I've seen this question:
How can I flash_erase mtd0?
I have a similar problem with my mini2440. When I use
flash_erase /dev/mtd2 0 0
and then
nandwrite -p -N /dev/mtd2 uImage-mini2440
Everything ...
0
votes
0answers
19 views
Can't write anything to USB drive. HTOP says 'disk sleep (uninterruptible)'
I was trying to 'burn' a ISO to my usb flash drive using the good ol'
dd if=some-linux-distro.iso of=/dev/sdb bs=4M && sync
but the process took a long time. So, I looked at the process in ...
0
votes
0answers
14 views
Fast large-write performance with LVM RAID5?
I have a use-case that is dominated by large sequential writes. Seems to me that striped RAID5 performance for large writes should approach the performance of striped RAID0.
Say you configured RAID5 ...
0
votes
0answers
20 views
Why file copy waits for disk write? Copy from slower hdd to a faster one
I see this behavior for years with many Linux distributions. When I copy a file from one hdd to another, file read freezes and waits for the write to complete a batch. In the case from my picture ...
0
votes
0answers
7 views
Mounted network disk, how to determine whether the network disk is dropped
I'm trying to use fuse file operation for control, now I mount the network disk to the local, when cp a file to the inside, the mounted network disk suddenly dropped, in the cp file when the program ...
0
votes
1answer
53 views
Write all numbers between 0 and large number (both inclusive) to a file in random order
For simulation I am trying to do, I want a text file with numbers ranging from 0 to 2^33 which is a huge number. I have used this command:
seq 0 Number >> OUTPUT FILE
But this is very slow. ...
-1
votes
1answer
612 views
How to Interactively ask a user to change Permissions for a Specified File
I need to create a script that will allow a specified file to have its permissions changed interactively by asking the user if they would like to enable Read, Write and/or Execute one by one for each ...
-2
votes
1answer
30 views
Loop until find entry and then use the entry
Lets say i have a file which have entries,
File:
user pts/1 2016-10-22 19:47 (ip)
user1 pts/2 2016-10-22 20:04 (ip)
user1 pts/3 2016-10-22 20:04 (ip)
i want to have a loop ...