[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Partitionierungsproblem



Hallo,

konnte an dem Problem bisher nicht weitermachen, hier noch einige Infos, das
Problem besteht immer noch und ich komme nicht weiter:

Windows bootet, FreeBSD und Linux auch. Linux bootet nur nicht mit
2.6.{8,9}.  Ich frage mich ob das ein Bug im Kernel ist, oder an meiner
Partitionstabelle liegt:

Der 2.6.6 Kernel erkennt die Platte so:

Nov  8 09:04:38 Astor kernel: hda: TOSHIBA MK6021GAS, ATA DISK drive
Nov  8 09:04:38 Astor kernel: Using anticipatory io scheduler
Nov  8 09:04:38 Astor kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Nov  8 09:04:38 Astor kernel: hdc: MATSHITADVD-RAM UJ-815A, ATAPI CD/DVD-ROM drive
Nov  8 09:04:38 Astor kernel: ide1 at 0x170-0x177,0x376 on irq 15
Nov  8 09:04:38 Astor kernel: hda: max request size: 128KiB
Nov  8 09:04:38 Astor kernel: hda: 117210240 sectors (60011 MB), CHS=65535/16/63, UDMA(100)
Nov  8 09:04:38 Astor kernel:  hda: hda1 hda2 < hda5 hda6 hda7 hda8 > hda3 hda4
Nov  8 09:04:38 Astor kernel:  hda3: <bsd: hda9 hda10 hda11 hda12 hda13 >

Das Layout ist zugegebenermaßen etwas umständlich, funktionierte aber
bislang:

hda1 - Windoof
hda2 - Extended mit
       hda5 Linux root
       hda6 Linux swap
       hda7 Linux /home
       hda8 Linux /export
hda3 - FreeBSD
hda4 - Linux Arcade: Ein kleines Linux, dass der Hersteller an diese
       stelle gepackt hat um Multimedia Features der Hardware zu bedienen.

Die physikalische Partitionierung der Linux Seite habe ich mit Knoppix/ fdisk
gemacht, dann Windoof, Linux  und FreeBSD installiert. Nach den derzeitigen
Problemen habe ich auch schon einen kompletten newfs auf hda5 gemacht, ohne
Erfolg.

Fdisk meldet

# fdisk -lu /dev/hda

Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders, total 117210240 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *          63    29318624    14659281    c  W95 FAT32 (LBA)
/dev/hda2        29318625    78156224    24418800    f  W95 Ext'd (LBA)
/dev/hda3        78156225   117017459    19430617+  a5  FreeBSD
/dev/hda4       117017460   117210239       96390   83  Linux
/dev/hda5        29318688    48869729     9775521   83  Linux
/dev/hda6        48869793    50845724      987966   82  Linux swap
/dev/hda7        50845788    62573174     5863693+  83  Linux
/dev/hda8        62573238    78156224     7791493+  83  Linux

Hier machen mich die Differenzen zwischen End/ Start stutzig, die sind in der
fdisk -l Ausgabe nicht zu sehen.

Hier nochmal die ausführliche Version von sfdisk:

# sfdisk -V -l -x /dev/hda 

Disk /dev/hda: 116280 cylinders, 16 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Warning: The partition table looks like it was made
  for C/H/S=*/255/63 (instead of 116280/16/63).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hda1   *      0+   1824    1825-  14659281    c  W95 FAT32 (LBA)
/dev/hda2       1825    4864    3040   24418800    f  W95 Ext'd (LBA)
/dev/hda3       4865    7283    2419   19430617+  a5  FreeBSD
                start: (c,h,s) expected (1023,254,63) found (1023,255,63)
/dev/hda4       7284    7295      12      96390   83  Linux
                start: (c,h,s) expected (1023,254,63) found (1023,255,63)

/dev/hda5       1825+   3041    1217-   9775521   83  Linux
    -           3042    3164     123     987997+   5  Extended
    -           1825    1824       0          0    0  Empty
    -           1825    1824       0          0    0  Empty

/dev/hda6       3042+   3164     123-    987966   82  Linux swap
    -           3165    3894     730    5863725    5  Extended
    -           3042    3041       0          0    0  Empty
    -           3042    3041       0          0    0  Empty

/dev/hda7       3165+   3894     730-   5863693+  83  Linux
    -           3895    4864     970    7791525    5  Extended
    -           3165    3164       0          0    0  Empty
    -           3165    3164       0          0    0  Empty

/dev/hda8       3895+   4864     970-   7791493+  83  Linux
    -           3895    3894       0          0    0  Empty
    -           3895    3894       0          0    0  Empty
    -           3895    3894       0          0    0  Empty

/dev/hda9       4865    5778-    914-   7340032  
/dev/hda10      5778+   5909-    131-   1048576  
/dev/hda11      5909+   6039-    131-   1048576  
/dev/hda12      6039+   6651-    612-   4915200  

/dev/hda13      6651+   7283     633-   5078233+ 
Warning: partitions 3 and 9 overlap

Die Korrekte Adressierung der Platte ist wohl CHS=(7296,255, 63), hdparm
gibt die Platte aus als

# hdparm -I /dev/hda

/dev/hda:

ATA device, with non-removable media
        Model Number:       TOSHIBA MK6021GAS                       
        Serial Number:      83C72799S           
        Firmware Revision:  GA024A  
Standards:
        Supported: 5 4 3 2 
        Likely used: 6
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  117210240
        device size with M = 1024*1024:       57231 MBytes
        device size with M = 1000*1000:       60011 MBytes (60 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        bytes avail on r/w long: 46     Queue depth: 1
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Advanced power management level: unknown setting (0x0080)
        DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4 
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
[...]


Wie kann ich die oben angegebenen Fehler mit H=254 statt H=255 korrigieren?

Von verschiedener Seite wurde ich auf

    http://lwn.net/Articles/86835/

aufmerksam gemacht.  Ganz bin ich davon nicht überzeugt, weil alle OS-Systeme
gebootet werden können (BTW Ich verwende lilo), insbesondere funktioniert der
oben angegebene Fix nicht

# sfdisk -d /dev/hda | sfdisk --no-reread -H255 /dev/hda
Warning: HDIO_GETGEO says that there are 16 heads

Disk /dev/hda: 116280 cylinders, 255 heads, 63 sectors/track
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+   1824    1825-  14659281    c  W95 FAT32 (LBA)
/dev/hda2       1825    4864    3040   24418800    f  W95 Ext'd (LBA)
/dev/hda3       4865    7283    2419   19430617+  a5  FreeBSD
                start: (c,h,s) expected (1023,254,63) found (1023,255,63)
/dev/hda4       7284    7295      12      96390   83  Linux
                start: (c,h,s) expected (1023,254,63) found (1023,255,63)
/dev/hda5       1825+   3041    1217-   9775521   83  Linux
/dev/hda6       3042+   3164     123-    987966   82  Linux swap
/dev/hda7       3165+   3894     730-   5863693+  83  Linux
/dev/hda8       3895+   4864     970-   7791493+  83  Linux
/dev/hda9       4865    5778-    914-   7340032  
/dev/hda10      5778+   5909-    131-   1048576  
/dev/hda11      5909+   6039-    131-   1048576  
/dev/hda12      6039+   6651-    612-   4915200  
/dev/hda13      6651+   7283     633-   5078233+ 

sfdisk: unrecognized input: extended partition does not start at a cylinder boundary.

Noch immer etwas ratlos -- Peter

-- 
Peter.Weiss@consol.de                         ConSol* Software GmbH
Phone  +49 89 45841-100                       Consulting & Solutions
Mobile +49 177 6040121                        Franziskanerstr. 38
http://www.consol.de                          D-81669 München



Reply to: