Hallo,

Ich bitte um Nachsicht, diese Mail ist/wird etwas groesser, um den
Zustand genau zu beschreiben.
Heute hat sich auf einem Zweitrechner ein IMHO schwerer Fehler in der 
Partitions-Tabelle ergeben. Vorausgegangen war eine Neuinstallation
von winXX mit (urspruenglich) 2 Partitionen. Dies klappte soweit auch,
leider verschwand nach einem Neustart irgendwann die zweite Partition,
dort hatte ich ein komplettes Abbild der winXX-CD abgelegt.
Unter Linux stellt sich die Situation so dar, dass beim Neustart diese
Fehler sich meldeten (gesnippt):

Apr 20 18:53:04 penti333 kernel:  hda: hda1 hda2 hda3 hda4 < hda5 hda6
hda7 hda8 hda9hda: dma_intr: status=0x51 { DriveReady SeekComplete
Error }
Apr 20 18:53:04 penti333 kernel: hda: dma_intr: error=0x10 {
SectorIdNotFound }, LBAsect=57613762, sector=0
Apr 20 18:53:04 penti333 kernel: hda: dma_intr: status=0x51 {
DriveReady SeekComplete Error }
...
Apr 20 18:53:04 penti333 kernel: hda: DMA disabled
Apr 20 18:53:04 penti333 kernel: ide0: reset: success
...
Apr 20 18:53:04 penti333 kernel: hda: read_intr: status=0x59 {
DriveReady SeekComplete DataRequest Error }
Apr 20 18:53:04 penti333 kernel: hda: read_intr: error=0x10 {
SectorIdNotFound }, LBAsect=57613762, sector=0
Apr 20 18:53:04 penti333 kernel: ide0: reset: success
Apr 20 18:53:04 penti333 kernel: hda: read_intr: status=0x59 {
DriveReady SeekComplete DataRequest Error }
Apr 20 18:53:04 penti333 kernel: hda: read_intr: error=0x10 {
SectorIdNotFound }, LBAsect=57613762, sector=0
Apr 20 18:53:04 penti333 kernel: end_request: I/O error, dev 03:0a
(hda), sector 0
Apr 20 18:53:04 penti333 kernel:  >
-----------------------------------
Die Platte wird so erkannt vom kernel (2.2.14 mit UDMA- Unterstuetzung):

Apr 20 18:53:04 penti333 kernel: PIIX4: not 100%% native mode: will
probe irqs later
Apr 20 18:53:04 penti333 kernel:     ide0: BM-DMA at 0xf000-0xf007,
BIOS settings: hda:DMA, hdb:DMA
Apr 20 18:53:04 penti333 kernel:     ide1: BM-DMA at 0xf008-0xf00f,
BIOS settings: hdc:DMA, hdd:DMA
Apr 20 18:53:04 penti333 kernel: hda: Maxtor 32049H2, ATA DISK drive
----------------------------------

Die urspruengliche Partition sah so aus:

Festplatte /dev/hda: 255 Köpfe, 63 Sektoren, 2491 Zylinder
Einheiten: Zylinder mit 16065 * 512 Bytes

Gerät boot.  Anfang      Ende    Blöcke   Id  Dateisystemtyp
Mountet:
/dev/hda1   *         1        51    409626   83  Linux          /
/dev/hda2            52       434   3076447+   b  Win95 FAT32    win
/dev/hda3           435       562   1028160   83  Linux          /usr
/dev/hda4           563      2491  15494692+   5  Erweiterte
/dev/hda5           563       578    128488+  82  Linux Swap     Swap
/dev/hda6           579       700    979933+  83  Linux          /var
/dev/hda7           701       822    979933+  83  Linux          /home
/dev/hda8           823       944    979933+  83  Linux          leer
/dev/hda9           945      1066    979933+  83  Linux          leer
/dev/hda10         1067      1431   2931831    b  Win95 FAT32    win2
/dev/hda11         1432      1917   3903763+  83  Linux          leer
/dev/hda12         1918      2491   4610623+  63  GNU HURD / SysV

Beim ersten Versuch mit fdisk faselte mir der was von OS/2
Bootmanager, der in /dev/hda10 sitzen wuerde...(gruebbel).
Darauf hin habe ich versucht, diese Partition zu loeschen, mit dem
"Erfolg", dass jetzt weder fdisk (linux und Dos) noch cfdisk /dev/hda
erreichen:

21:35:23root@penti333:/home/hannes $ fdisk -l

Konnte /dev/hda nicht lesen

-----------------------------------
Zum Glueck liegen alle derzeit genutzten Partitionen "weiter vorn" auf
der Platte, so dass mir alle Linux-Bordmittel zur Verfuegung stehen.
So konnte ich mit sfdisk zumindest dies sehen:

21:35:28root@penti333:/home/hannes $ sfdisk -d
read: Datei oder Verzeichnis nicht gefunden

sfdisk: read error on /dev/hda - cannot read sector 3815710146
# partition table of /dev/hda
unit: sectors

/dev/hda1 : start=       63, size=  819252, Id=83, bootable
/dev/hda2 : start=   819315, size= 6152895, Id= b
/dev/hda3 : start=  6972210, size= 2056320, Id=83
/dev/hda4 : start=  9028530, size=30989385, Id= 5
/dev/hda5 : start=  9028593, size=  256977, Id=82
/dev/hda6 : start=  9285633, size= 1959867, Id=83
/dev/hda7 : start= 11245563, size= 1959867, Id=83
/dev/hda8 : start= 13205493, size= 1959867, Id=83
/dev/hda9 : start= 15165423, size= 1959867, Id=83

21:37:33root@penti333:/home/hannes $ sfdisk -l -u m
unrecognized format - using sectors

Disk /dev/hda: 2491 cylinders, 255 heads, 63 sectors/track
read: Datei oder Verzeichnis nicht gefunden

sfdisk: read error on /dev/hda - cannot read sector 3815710146
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End  #sectors  Id  System
   /dev/hda1   *        63    819314    819252  83  Linux
   /dev/hda2        819315   6972209   6152895   b  Win95 FAT32
   /dev/hda3       6972210   9028529   2056320  83  Linux
   /dev/hda4       9028530  40017914  30989385   5  Erweiterte
   /dev/hda5       9028593   9285569    256977  82  Linux Swap
   /dev/hda6       9285633  11245499   1959867  83  Linux
   /dev/hda7      11245563  13205429   1959867  83  Linux
   /dev/hda8      13205493  15165359   1959867  83  Linux
   /dev/hda9      15165423  17125289   1959867  83  Linux

---------------------------------

Oder so:

21:43:02root@penti333:/home/hannes $ sfdisk -f /dev/hda

sfdisk: read error on /dev/hda - cannot read sector 3815710146
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting
from 0

   Device Boot Start     End   #cyls   #blocks   Id  System
   /dev/hda1   *      0+     50      51-   409626   83  Linux
   /dev/hda2         51     433     383   3076447+   b  Win95 FAT32
   /dev/hda3        434     561     128   1028160   83  Linux
   /dev/hda4        562    2490    1929  15494692+   5  Erweiterte
   /dev/hda5        562+    577      16-   128488+  82  Linux Swap
   /dev/hda6        578+    699     122-   979933+  83  Linux
   /dev/hda7        700+    821     122-   979933+  83  Linux
   /dev/hda8        822+    943     122-   979933+  83  Linux
   /dev/hda9        944+   1065     122-   979933+  83  Linux
----------------------------------

Die Frage ist nun, wie kann ich die Partitionen, die weiter hinter
/dev/hda9 liegen loeschen und neu anlegen z.B. mit sfdisk? IMO muesste
das das Problem loesen ohne, dass ich alles komplett neu installieren
muss (Platte platt machen). Kann mir dazu jemand was genaues mitteilen?
Oder gibt es andere Mittel/Wege?

BTW sicherlich muss ich dazu alles umounten. Ist dazu auch ein
umounten von / und swap erforderlich, oder wie macht man(n) das?

Danke fuer Antwort im voraus und jeden Hinweis.

CU H.Lau
-- 
-------------------------------------------------------------------------
Hannes Lau        | Mail: [EMAIL PROTECTED]                        
Dierkower Höhe 31 | http://home.debitel.net/user/hannes.lau/default.html
18146 Rostock     | Home- Office- Tel: +49 (0381) 69 65 18
-------------------------------------------------------------------------

Antwort per Email an