I O Error Linux
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with
Linux I/o Error Dev Sda Sector
us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange linux disk i/o error log is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's
Input/output Error Linux
how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top I/O errors on hard disk on Linux boot up vote 2 down vote favorite 1 Here is a screenshot of booting input/output error ubuntu Arch. I guess the reason is that I force poweroff my Arch linux many times. (I already force poweroff my Arch because my firefox flash plugin use too much memory to stop my system.) Note: I can boot my Windows 7 system on the same drive disk. So I think it is not a disk problem, mostly is a partion problem. Update: I check out more information, the partion /dev/sda9 is /home directory. And always error on same sector 798717984. I use DiskGenius software under Windows to input/output error centos check error. Then found an error. and that partion is not formated. I want to recover my Arch linux. How to solve this ? If I can not fix this error, then how to get the partion data out ? Update2: I really hope to save this partion data out. Because I have a lot of important things in this partion. I think the first step is backup this bad partion or whole hard drive into an image file (what image file ?), then let someone who can fix this partion to fix. More update: After I use DiskGenius software to fix the partion sector error. Then I use e2fsck to check. get error: fsck.ext4: Bad magic number in super-block while trying to open /dev/sda9. /dev/sda9: The superblock could not be read or does not describe a correct ext2 filesystem. VFS: can't find ext4 filesystem. (my this broken partion /home -> /dev/sda9 is ext4 when I create it before.) And I execute command # mke2fs /dev/sda9 to get block information: OS type: Linux Block size: 4096 (log=2) Fragment size=4096 (log=2) Stride = 0 blocks, stripe width = 0 blocks 65536 inodes, 261888 blocks 13094 blocks (5.00%) reserved for super user First data block = 0 Maximum filesystem bloack = 268435456 8 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Super block backup stored on blocks: 32768, 988304, 163840, 229376 linux boot io share|improve this question edited Mar 17 '13 at 8:46 asked Mar 16 '13 at 10:37 stardiviner 145117 2
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss
Ubuntu Input Output Error External Hard Drive
the workings and policies of this site About Us Learn more about linux io error log Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux
Mkdir Input/output Error
Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. http://unix.stackexchange.com/questions/68147/i-o-errors-on-hard-disk-on-linux-boot Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to fix this I/O error on SD card? up vote 1 down vote favorite 1 EDIT: I tried with gparted, it didnt work. i found a SDFormatter, http://unix.stackexchange.com/questions/236252/how-to-fix-this-i-o-error-on-sd-card tool for windows that did the full erase. I have a SD card and want to install debian onto it. The dd process takes about 45 minutes, after that i quit it. In my windows machine it shows up in drive list but theres also an undefined error while try formatting or even opening. gparted just tells me /dev/mmcblk0: unrecognised disk label I issued dd if='deb.iso' of=/dev/mmcblk0 bs=512k dd: error writing „/dev/mmcblk0“: I/O error 0+1 data in 0+0 data out copied 0 Bytes (0 B), 10,098 s, 0,0 kB/s After that i tried root@kali:~# lsblk -o NAME,FSTYPE,MOUNTPOINT,SIZE,RO NAME FSTYPE MOUNTPOINT SIZE RO sda 465,8G 0 ├─sda1 ext4 / 450,1G 0 ├─sda2 1K 0 └─sda5 swap [SWAP] 15,7G 0 sr0 1024M 0 mmcblk0 29,5G 0 mmcblk0 is the one i have problems with. And last i tried root@kali:~# mkdosfs -F 32 -v /dev/mmcblk0 mkfs.fat 3.0.26 (2014-03-07) /dev/mmcblk0 has 4 heads and 16 sectors per track, hidden sectors 0x0000; logical sector size is 512, using 0xf8 media descriptor, with 61896704 sectors; drive number 0x80; filesystem has 2 32-bit FATs
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring http://serverfault.com/questions/498900/intentionally-cause-an-i-o-error-in-linux developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question https://www.drbd.org/doc/users-guide-83/s-configure-io-error-behavior _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Intentionally cause an I/O error in Linux? up vote 38 down vote favorite 13 Is there anyway, with output error Linux, to purposely cause a block device to report an I/O error, or possibly simulate one for testing purposes? linux linux-kernel block-device share|improve this question asked Apr 12 '13 at 20:15 Dok 50347 Are you simulating a disk failure? Perhaps you could mount a directory and then unmount it while it was in use. –Shef Apr 12 '13 at 20:50 2 I'd write a little kernel module that you could load with modprobe, behaving like a block i o error device, and then another little program that sends ioctl()'s to the driver to make it return the value you want. –ott-- Apr 12 '13 at 21:06 Same question on Stack Overlflow and on Unix and Linux. –Gilles May 29 '13 at 21:30 To follow up the comment @Gilles made, this was was also asked on stackoverflow.com/questions/1361518/… (several different fault injection answers) and stackoverflow.com/questions/1870696/… (use device mapper). –Anon Jun 14 '14 at 5:30 add a comment| 5 Answers 5 active oldest votes up vote 48 down vote accepted Yes, theres a very plausible way to do this with device mapper. The device mapper can recombine block devices into a new mapping/order of your choosing. LVM does this. It also supports other targets, (some which are quite novel) like 'flakey' to simiulate a failing disk and 'error' to simulate failed regions of disk. One can construct a device which deliberate has IO blackholes on it which will report IO errors when crossed. First, create some virtual volume to use as a target and make it addressable as a block device. dd if=/dev/zero of=/var/lib/virtualblock.img bs=512 count=1048576 losetup /dev/loop0 /var/lib/virtualblock.img So, to start this creates a 512M file that is the basis of our virtual block device which we will punch a 'hole' in. No hole exists yet though. If you were to mkfs.ext4 /dev/loop0 you'd get a perfectly valid filesystem. So, lets use dmsetup which, usi
8.4.x User's Guide 8.0 - 8.3.x Technical Publications Community Connecting Download Usage Support & Training LINBIT DRBD Users Guide 8.0-8.3Table of Contents About this guide I. Introduction to DRBD 1. DRBD Fundamentals Kernel module User space administration tools Resources Resource roles 2. DRBD Features Single-primary mode Dual-primary mode Replication modes Multiple replication transports Efficient synchronization On-line device verification Replication traffic integrity checking Split brain notification and automatic recovery Support for disk flushes Disk error handling strategies Strategies for dealing with outdated data Three-way replication Long-distance replication with DRBD Proxy Truck based replication Floating peers II. Building, installing and configuring DRBD 3. Installing pre-built DRBD binary packages Packages supplied by LINBIT Packages supplied by distribution vendors 4. Building and installing DRBD from source Downloading the DRBD sources Checking out sources from the public DRBD source repository Building DRBD from source Checking build prerequisites Preparing the kernel source tree Preparing the DRBD build tree Building DRBD userspace utilities Compiling DRBD as a kernel module Building a DRBD RPM package Building a DRBD Debian package 5. Configuring DRBD Preparing your lower-level storage Preparing your network configuration Configuring your resource Example configuration The global section The common section The resource sections Enabling your resource for the first time The initial device synchronization Using truck based replication III. Working with DRBD 6. Common administrative tasks Checking DRBD status Retrieving status with drbd-overview Status information in /proc/drbd Connection states Resource roles Disk states Enabling and disabling resources Enabling resources Disabling resources Reconfiguring resources Promoting and demoting resources Enabling dual-primary mode Using on-line device verification Enabling on-line verification Invoking on-line verification Automat