Gentoo Archives: gentoo-dev

From: Bastian Fuchs <bastiaf@×××.de>
To: gentoo-dev@g.o
Subject: [gentoo-dev] dd: reading `/dev/hda7': Input/output error (not a hardware problem) - kernel problem?
Date: Thu, 31 Oct 2002 11:17:57
Message-Id: 200210311817.14188.bastiaf@gmx.de
1 Hi!
2 I have some problem to read partitions with dd, but I think it's not a
3 hardware problem. (No badblocks or something else.)
4
5 I have two disks hda and hdb. Its possible to read hda1 and hdb1 with dd
6 without an error. But on all other partitions I get an "Input/output" error.
7
8 ---------------------------------------------------------------------------------
9 vulpec ~ # fdisk -s /dev/hda1
10 88326
11 vulpec ~ # dd if=/dev/hda1 of=/dev/null bs=1k skip=88000
12 326+0 records in
13 326+0 records out
14
15 hda1 has 88326 blocks and dd reads 88326. OK.
16 ---------------------------------------------------------------------------------
17
18 ---------------------------------------------------------------------------------
19 vulpec ~ # fdisk -s /dev/hda7
20 4200966
21 vulpec ~ # dd if=/dev/hda7 of=/dev/null skip=4200000 bs=1k
22 dd: reading `/dev/hda7': Input/output error
23 964+0 records in
24 964+0 records out
25 vulpec ~ # dmesg | tail
26 ...
27 attempt to access beyond end of device
28 03:07: rw=0, want=4200968, limit=4200966
29
30 hda7 has 4002966 blocks, but only 4002964 blocks a read. Why to blocks are
31 missing? And dmesg says, that dd wants to access 2 blocks beyond the end of
32 device?
33 ---------------------------------------------------------------------------------
34
35 Again:
36 This problem only occures with all partitions (ext2, ext3, ReiserFS) except
37 the first. The partition table is ok and there are no bad blocks. I find some
38 postings with google, which reports the same problem, but mostly with cdroms,
39 but harddiscs too. Some people think, this is an kernel problem, but the
40 mails/postings are from 2000 oder 2001.
41
42 It seems that nobody really knows, whats wrong. I hope you can help me. Maybe
43 it's an bug ...
44 - Bastian Fuchs
45
46 PS:
47 vulpec ~ # uname -a
48 Linux vulpec.wg.j.th.de 2.4.19 #1 Mon Oct 28 02:30:04 CET 2002 i686 AMD
49 Duron(tm) processor AuthenticAMD GNU/Linux
50
51 vulpec ~ # dd --version
52 dd (fileutils) 4.1.11