Gentoo Archives: gentoo-user

From: meino.cramer@×××.de
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] disk error, where?
Date: Mon, 17 Jan 2011 19:18:26
Message-Id: 20110117191511.GL5748@solfire
1 Stefan G. Weichinger <lists@×××××.at> [11-01-17 20:04]:
2 >
3 > Would someone help me out on this issue?
4 >
5 > I have a flaky disk in a server, and dmesg says:
6 >
7 > end_request: I/O error, dev sdb, sector 1835240116
8 >
9 > Now i have this layout:
10 >
11 > # fdisk -l /dev/sdb
12 >
13 > Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
14 > 255 heads, 63 sectors/track, 121601 cylinders
15 > Units = cylinders of 16065 * 512 = 8225280 bytes
16 > Sector size (logical/physical): 512 bytes / 512 bytes
17 > I/O size (minimum/optimal): 512 bytes / 512 bytes
18 > Disk identifier: 0x00000000
19 >
20 > Device Boot Start End Blocks Id System
21 > /dev/sdb1 1 13 104391 fd Linux raid
22 > autodetect
23 > /dev/sdb2 14 50 297202+ 82 Linux swap / Solaris
24 > /dev/sdb3 51 2483 19543072+ fd Linux raid
25 > autodetect
26 > /dev/sdb4 2484 121601 956815335 5 Extended
27 > /dev/sdb5 2484 106917 838866073+ 8e Linux LVM
28 > /dev/sdb6 106918 121601 117949198+ fd Linux raid
29 > autodetect
30 >
31 >
32 > My question (apart from the fact that I evacuate all on that
33 > non-raid-LVM-partition right now!):
34 >
35 > In which partition is that "sector 1835240116" ?
36 >
37 > Sorry for this maybe stupid question ...
38 >
39 > Thanks, Stefan
40 >
41
42 Hi Stefan,
43
44 small shot into the deep dark.... :
45
46 :)
47
48 As far as I know, you can switch fdisk to display either to
49 diplay units in cylinders or in sectors.
50
51
52 Usage:
53 fdisk [options] <disk> change partition table
54 fdisk [options] -l <disk> list partition table(s)
55 fdisk -s <partition> give partition size(s) in blocks
56
57 Options:
58 -b <size> sector size (512, 1024, 2048 or 4096)
59 -c[=<mode>] compatible mode: 'dos' or 'nondos' (default)
60 -h print this help text
61 -u[=<unit>] display units: 'cylinders' or 'sectors' (default)
62 -v print program version
63 -C <number> specify the number of cylinders
64 -H <number> specify the number of heads
65 -S <number> specify the number of sectors per track
66
67
68 When switched to display sector units it is only a matter of counting
69 to find the partition in question I would guess...
70
71 Good luck!
72
73 Best regards,
74 mcc

Replies

Subject Author
Re: [gentoo-user] disk error, where? "Stefan G. Weichinger" <lists@×××××.at>