The write tag has no usage guidance.
0
votes
0answers
42 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
...
1
vote
0answers
31 views
How long does process wait for locked file? [closed]
If a process in a Unix based OS finds that a file is locked because another process is writing to it, how long does it wait and retry before giving up and returning an error?
0
votes
0answers
48 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 ...
43
votes
3answers
5k views
How does `yes` write to file so quickly?
Let me give an example:
$ timeout 1 yes "GNU" > file1
$ wc -l file1
11504640 file1
$ for ((sec0=`date +%S`;sec<=$(($sec0+5));sec=`date +%S`)); do echo "GNU" >> file2; done
$ wc -l ...
1
vote
2answers
171 views
No output when running script on startup (but correct output if run manually)
I recently got myself a Raspberry Pi 2 to learn a couple of things in my spare time. It is now running on Raspbian and I control it remotely via ssh from a laptop with Linux Mint 17.2 installed.
Now ...
1
vote
1answer
42 views
How to write a luit command that outputs a file
I need help formatting a luit command so I can write a file that I'm trying to fix the encoding for. What I have write now is luit -encoding gbk cat santi.txt, but I would like this to have the output ...
1
vote
2answers
396 views
Stress (write) Test an SD card to destruction using a simple shell script
I would like to find out how many write cycles I can get from my SD
card.
I have googled and found good answers like this but its too complicated for a normal person like me.
Say its a 64GB exfat ...
0
votes
2answers
474 views
Chat over LAN in Linux
I am trying to set up a LAN chat with two users using Linux server and none of them is root.
I have tried this two methods:
write account_name on both computers
And:
nc -l port_number on first ...
3
votes
1answer
10k views
How to get total Read and write IOPS in linux
How do i get Read and write IOPS separately in Linux? using command line or in a programmatic way. i am installed sysstat package.
Please tel me how do i calculate separately using sysstat package ...
2
votes
2answers
1k views
warning: Filesystem seems to be mounted read-only
I have an old SGI indigo with an EFS file system (Extent File System ), and the password needs to be reset. I can mount the hard drive, but read-only. I need write permissions.
# mount --rw -t efs /...
0
votes
0answers
24 views
New files in a mounted directory are being created with a different user and removing write permission for other users
I am running a python script that outputs files into a mounted directory on a different computer. The script can be run multiple times in a way that overwrites the contents of created files. However, ...
2
votes
1answer
176 views
What data transfer / write speeds are to be expected for a badblock destructible write test?
I have purchased a new HDD for my backups. Before entrusting the device with the job of keeping my data safe I want to make sure that it is in good condition. The drive is a new internal 3.5 inch SATA ...
-1
votes
1answer
151 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 ...
1
vote
1answer
156 views
write command does not work
I have 2 users : User1 is connected on tty1 and User2 is connected on tty2.
The output of mesg on both ttys is is y.
On tty1, when I type write User2 tty2, I get write: User2 has messages disabled ...
4
votes
2answers
195 views
How to determine whether the data is written to disk or cached?
I'm learning file operation calls under Linux. The read() and write() and many other functions use cache to increase performance, and I know fsync() can transfer data from cache to disk device.
...
2
votes
1answer
46 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".
Anyone got any ideas? ...
1
vote
3answers
51 views
Why does Debian prefer a temp file replacing the original over modifying bytes in original file?
In the mp3gain manpages, you can read the following:
-t mp3gain writes modified mp3 to temp file, then deletes
original instead of modifying bytes in original file (This ...
2
votes
1answer
69 views
Forcing write(2) to return 0
I am writing unit tests and would like to test some code's handling of the case where a call to write(2) returns zero. As ever, it would be nice to keep the test as authentic as possible.
I can use a ...
0
votes
2answers
309 views
User messages can't be switched on Fedora
A non-root user X cannot message a user Y. This is despite both users having successfully run mesg y. I've tried following advice for similar problems on Ubuntu described in this question. No luck.
A ...
1
vote
0answers
265 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
...
5
votes
4answers
14k views
Sending message from one terminal user to another user
I have a user of name x in tty1 and y in tty2. Now x wants to write some message to y and vice-versa.
Now I typed in tty1 terminal write y tty2
It is showing
write:write:you have write permission ...
1
vote
3answers
412 views
Is it dangerous to remount a partition rw/ro frequently?
I'm developing an embedded linux system running on a SD card.
To protect the SD against corruption I've used a read only root filesystem as well as an extra partition where I mount /home, also in ...
1
vote
1answer
455 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
...