I/O is an acronym for Input/Output, which refers to the mechanism or process for the transfer of information between one system or component and another.

learn more… | top users | synonyms

10
votes
5answers
4k views

Special File that causes I/O error

I want to automatically test if a piece of software reacts as expected if an essential SQLite DB file fails to be read (causing an I/O error). Exactly that happened some days ago at a client. We ...
1
vote
1answer
18 views

Monitor temperature/IO of NVMe drive

Is there a way to monitor temperature or reads/writes of and NVMe drive (in this case Intel 750). hdparm, udisksctl, smartctl, and hddtemp all seem to lack this capability, google searches have been ...
1
vote
0answers
18 views

Determine affected file given logical block number [duplicate]

Given the logical block number from these log lines in /var/log/messages, is there a way to determine what file was affected? ...Buffer I/O error on device sdd1, logical block 203953715 ...lost page ...
0
votes
1answer
1k views

CentOS 7 Live - Read-only file system error

I have loaded a CentOS 7 Gnome Live USB. I wanted to do some operations on it without touching the installed system on the computer, because I only want to try some things. I installed openssh-server ...
2
votes
1answer
1k views

-bash: /usr/sbin/useradd: Input/output error — What does this mean?

Today, on my Centos server I tried to add a user but got the following error: -bash: /usr/sbin/useradd: Input/output error How do I fix it?
0
votes
2answers
69 views

Input/output error, cannot install anything

I have done something strange to my debian server and now I cannot install anything. It says, that locale is broken. I tried to fix it by reconfiguring dpkg, cleaning apt-get and and many other ...
26
votes
5answers
4k views

Portability of “> /dev/stdout”

Occasionally I need to specify a "path-equivalent" of one of the standard IO streams (stdin, stdout, stderr). Since 99% of the time I work with Linux, I just prepend /dev/ to get /dev/stdin, etc., ...
1
vote
1answer
23 views

How to clear data from all files present in a directory?

I have a folder which has some text files and other folders in it which in turn have more text files in them. I need a command which will recursively loop over the folder and clear all the contents ...
6
votes
2answers
15k views

When a process will go to 'D' state?

I'm using "Linux hostname 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux" All the client machines will use Thin-client ,I will use my laptop for working and I will ...
6
votes
2answers
2k views

Massive, unpredictable I/O performance drop in Linux

I'm using Debian testing without any problems for ~6 years (I'm just regularly updating it), but recently it started to show a random behaviour that can be summarized as "Low I/O performance which ...
0
votes
0answers
33 views

Why does hdparm and dd show two completely different results?

I have an external hard drive (/dev/sdc1) mounted at /mount1 When running hdparm -tT /dev/sdc1 I get: /dev/sdc1: Timing cached reads: 2246 MB in 2.00 seconds = 1123.75 MB/sec Timing buffered ...
2
votes
1answer
61 views

Create a file of fixed size with specific contents

I want to create a file of fixed size (1G, 10G, 100G etc) with a single random word of length within the specified limit on every line. I basically want this to run a benchmark which will sort the ...
3
votes
2answers
61 views

Defer *all* disk writes, keep them in memory

How to temporarily stop synchronizing of dirty data with disk, instead just keeping it in memory. Clarification: I want to sync it later.
2
votes
2answers
6k views

How can I specify that curl (via command line) overwrites a file if it already exists?

I'm using curl in this syntax: curl -o myfile.jpg http://mysite.com/myfile.jpg If I run this command twice, I get two files: myfile.jpg myfile-1.jpg How can I tell CURL that I want it to ...
1
vote
2answers
62 views

How to redirect STDIN of background process?

In my Ubuntu, i run java application in background. I use bash script to run it and now it looks like: nohup java -jar app.jar & exit 0 The problem that i want to be able to write an input ...
0
votes
0answers
17 views

Diagnose input/output errors on a Truecrypt container

I have been trying to get a local repository located on a usb drive working on an air-gapped machine. The repository was created with apt-mirror on the same kind of system (ubuntu i386). Currently I ...
0
votes
1answer
26 views

How do I give an input to an infinitely running program? [closed]

I have a python program that runs infinitely, takes an input and throws an output. I want to write a bash program that gives an input while the python script is running. So, how do I give an input to ...
0
votes
2answers
61 views

What does the symbol '-' mean in Linux? [duplicate]

I see this symbol all the time and my book has yet to clarify what it means. None of the man pages or web searches clarify this either. At first I believed it to be a I/O symbol, but that never works ...
1
vote
1answer
259 views

hdparm: SECURITY_SET_PASS: Input/output error

I'm trying to use hdparm to secure erase an SSD as suggested here. Following the directions in that guide has worked okay so far, but I can't seem to resolve this error: ~ $ sudo hdparm ...
5
votes
2answers
811 views

Why do systems become slow when doing massive writes to disk?

I want to know why systems become slow when writing mass data to disk. I think that for system to become slow, there should be some issue with CPU. But write is only I/O bound. Do hardware ...
6
votes
4answers
2k views

Intercept input and output from specific executable

I have a certain Linux executable that is called from a bigger application to perform some calculations. I want to modify the way the calculations are performed, for that I first need to understand ...
0
votes
2answers
53 views

command to list logical volume I/O statistics on AIX

I am looking for a command which displays the I/O statistics of logical volumes (like reads/sec , writes/sec, io utilization %, read kb per second, written kb per second) . I tried iostat, but its ...
4
votes
1answer
27 views

understanding lsof during long operation on big file

Background I'm running Musicbrainz Picard to update a ~11M ogg file on a 500GB NTFS disk (Transcend StoreJet) connected via USB and mounted using autofs. The connection is through docking station. ...
0
votes
2answers
55 views

The interrupt timeline for a single process doing output

I'm studying the book 'Operating System Concepts' 9th edition. In the first chapter, part 1.2.1 computer system operation, I can't understand the figure 1.3: Can any one make a quick interpretation ...
1
vote
1answer
47 views

Why is uninterruptible sleep indicated by 'D'?

From "man ps": R = Running or Runnable S = interruptable Sleep T = sTopped Z = Zombie D = uninterruptible sleep (usually IO) Where does this D come from?
0
votes
0answers
27 views

How do I hook an application and find out what files it writes while running? [duplicate]

I'm not sure how to exactly word this question, because my searching hasn't yielded anything that describes my situation what I'm looking for. Say my friend writes an application and sends it to me ...
1
vote
1answer
65 views

Desktop completely freezing on I/O operations

In my old system, I was already having desktop freezes on some heavy I/O operations like apt-get dist-upgrade and copying 4 GB video files. But now, it has become a lot worse: any apt-get install is ...
2
votes
1answer
176 views

How to calculate blkio shares in cgroups?

Currently I'm trying to setup a test scenario with the use of Debian Wheezy with its default kernel 3.2.60-1+deb7u3 and the cgroups blkio controller. The calculation of blkio.weight is not working for ...
0
votes
1answer
24 views

Crash with input/out error and swap unmounting [duplicate]

I am looking for hints on this problem. I've searched around, but can't find something exactly similar. I am running Debian 8 stable, updated, very minimal install (i3wm, small number of apps ...
7
votes
3answers
2k views

Construct a command by putting a string into a tty

I managed to do this echo -n "command" > /dev/tty1 The letters appear, and the cursor moves, but they are "ghosts" – if you hit Enter, nothing happens (they are not in stdin). Edit: In the ...
3
votes
2answers
6k views

Optimizing logical sector size for physical sector size 4096 HDD

With many new hard drive disks the physical sector size is 4096. Would it be possible to make the system use a logical sector size of the same size, rather than the default logical sector size of 512? ...
2
votes
2answers
1k views

What's the difference between ioremap and file operation mmap?

I'm currently working on a PCI device driver for Ubuntu. I have some example code about PCI driver, but I have difficult on understanding the ioremap and file_operation.mmap. The description of file ...
1
vote
3answers
273 views

How do I run a command in a different tty?

Suppose there are two terminals, pts/0 and pts/1. In pts/0, I have fired a command: ls>/dev/pts/1 Then, we only get the output of the ls command in pts/1, but I want to run a command as well as ...
10
votes
3answers
1k views

tar to pipe but keep -v verbose output separate from STDERR

A normal tar command tar cvf foo.tar ./foo >foo.out 2>foo.err has three output IO streams archive data to foo.tar list of filenames to STDOUT (redirected into foo.out) error messages to ...
1
vote
1answer
52 views

copy and symlink mysql to another disk partition

I'm using ubuntu 12.04 and have two disk partition named: /dev/sda and /dev/sdb. my home partition and other programs are in /dev/sda. therefor any work like database benchmark on my mysql databases ...
0
votes
1answer
52 views

Which components of Linux IO subsystem are device-independent and device-dependent?

From Tanenbaum's Modern OS, every operating system has an I/O subsystem for managing its I/O devices. Some of the I/O software is device independent, that is, applies to many or ...
1
vote
0answers
64 views

Linux: Why do init and systemd use so much I/O?

This is probably unanswerable. But maybe someone else will have this problem and find this question, append to it, or proffer an answer. I discovered the pidstat command with its -d option, today. ...
0
votes
2answers
39 views

Input redirection using command and options

I am trying to write a script that takes in 2 parameters - program name and optional flags. I am trying to execute the program command on an input_file and store the output in the output_file. ...
0
votes
0answers
14 views

how qemu interacts with guest os io requests?

the Linux io stack (eg the path of an io request) is something like this: now when such a guest OS is a Linux distro in qemu, the path is the same except in this case there is no disk and scheme is ...
0
votes
0answers
34 views

Dive into qemu source code to trace io requests

I searched a lot about qemu and read its documentation but could not find any explaining its I/O stack. Specifically, I want to know about how an I/O request is created and what path it travels to ...
0
votes
0answers
39 views

dd process real vs. sys time

I have two quad core workstations. One is based on Intel Atom x86_64 architecture (WS1). Another one is based on armv7l architecture (WS2). Both are running 3.10 kernel version. Identical busybox dd ...
0
votes
0answers
29 views

Why my disk is at full speed even though very little is written or read?

Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util sda 429.60 9.00 170.20 2.00 2479.20 71.20 29.62 10.80 67.28 ...
1
vote
0answers
36 views

Storage device trouble: IO errors but no bad sectors?

I have a lightly used spinning metal drive (internal) with some VMs on it. I'm running into IO errors while running a VM and upon closer examination I have found a virtual disk file that is reporting ...
0
votes
1answer
130 views

Serial port - no output Penmount DMC9000

I'm trying to read some data from the some serial ports (I need them to deal with a touch screen controller). What I'm basically doing is cat /dev/ttyS0 to see what does the serial give as output ...
1
vote
1answer
101 views

Does hpdarm -Y suffice to stop IO on my hard drive?

I'm using Ubuntu 14.04 with two hard drives in my laptop. The first contains my root partition and my home partition. The second one is used for backups only. I know that hard drives break down after ...
1
vote
1answer
99 views

find which process is sending the current io request in linux kernel

I've been diving into the Linux kernel. and would like to trace an io request and find out exactly which process sent the current io request? There is a structure named current which the kernel ...
11
votes
5answers
1k views

Utility to buffer an unbounded amount of data in a pipeline?

Is there a utility that I can stick in a pipeline to decouple read and write speeds? $ producer | buf | consumer Basically, I want a utility buf that reads its input as fast as possible, storing it ...
4
votes
1answer
34 views

Cannot reformat Micro SD Card

I need to reformat my micro SD card, however I am having some issues with it. When I go the card on my computer, it displays the following message: The folder contents could not be displayed ...
1
vote
1answer
28 views

which section of kernel, manages io requests?

I know that the Block IO layer in Linux io stack manages and schedules io requests. but i do not know where is this code? indeed, i wanna see the section of code in kernel which corresponds to this ...
0
votes
0answers
36 views

LVM Logical Volume (linear) best performance

As a system administrator, one thing I do very often is increase LV's size. In most cases I have to extend first the VG, adding a new disk (we are talking about virtual machines). I have got a lot of ...