WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   2 gleiche Festplatten exakt gleich partitionieren (http://www.wcm.at/forum/showthread.php?t=113767)

paux 29.10.2003 16:08

2 gleiche Festplatten exakt gleich partitionieren
 
Hallo!

Ich stehe vor folgendem Problem:
Code:

paux:~# fdisk -l /dev/hda

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot    Start      End    Blocks  Id  System
/dev/hda1            1      123    987966  fd  Linux raid autodetect
/dev/hda2          124      125    16065  fd  Linux raid autodetect
/dev/hda3          126      8636  68364607+  5  Extended
/dev/hda4          8637      9729  8779522+  83  Linux
/dev/hda5          126      369  1959898+  fd  Linux raid autodetect
/dev/hda6          370      1586  9775521  fd  Linux raid autodetect
/dev/hda7          1587      2195  4891761  fd  Linux raid autodetect
/dev/hda8          2196      2318    987966  fd  Linux raid autodetect
/dev/hda9          2319      8636  50749303+  fd  Linux raid autodetect
paux:~# fdisk -l /dev/hdb

Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot    Start      End    Blocks  Id  System
/dev/hdb1            1      123    987966  fd  Linux raid autodetect
/dev/hdb2          124      125    16065  fd  Linux raid autodetect
/dev/hdb3          126      8636  68364607+  5  Extended
/dev/hdb4          8637      9729  8779522+  83  Linux
/dev/hdb5          126      369  1959929+  fd  Linux raid autodetect
/dev/hdb6          370      1586  9775552  fd  Linux raid autodetect
/dev/hdb7          1587      2195  4891792  fd  Linux raid autodetect
/dev/hdb8          2196      2318    987997  fd  Linux raid autodetect
/dev/hdb9          2319      8636  50749334+  fd  Linux raid autodetect

D.h. die 4 primären Partitionen hd?1-4 sind noch gleich, die logischen hd?5-9 dagegen nicht mehr, obwohl die Platten dieselbe Geometrie haben. Die hdb hat immer ein paar Blocks mehr pro Partition, deshalb kann ich die hda auch nicht ins RAID eingliedern, weil sie "too small" sind.

Kann ich die hda irgendwie anpassen, oder muß ich alles auf hda rüber-synchronisieren und dann hdb neu partitionieren (ich hoffe daß es dann kein "too large" gibt...)?

lg paux

paux 29.10.2003 16:24

What the ...?
Code:

paux:~# sfdisk -l /dev/hdb

Disk /dev/hdb: 9729 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

  Device Boot Start    End  #cyls    #blocks  Id  System
/dev/hdb1          0+    122    123-    987966  fd  Linux raid autodetect
/dev/hdb2        123    124      2      16065  fd  Linux raid autodetect
/dev/hdb3        125    8635    8511  68364607+  5  Extended
                end: (c,h,s) expected (1023,254,63) found (443,254,63)
/dev/hdb4      8636    9728    1093    8779522+  83  Linux
/dev/hdb5        125+    368    244-  1959929+  fd  Linux raid autodetect
/dev/hdb6        369+  1585    1217-  9775552  fd  Linux raid autodetect
                end: (c,h,s) expected (1023,254,63) found (561,254,63)
/dev/hdb7      1586+  2194    609-  4891792  fd  Linux raid autodetect
                start: (c,h,s) expected (1023,254,63) found (562,0,2)
                end: (c,h,s) expected (1023,254,63) found (146,254,63)
/dev/hdb8      2195+  2317    123-    987997  fd  Linux raid autodetect
                start: (c,h,s) expected (1023,254,63) found (147,0,2)
                end: (c,h,s) expected (1023,254,63) found (269,254,63)
/dev/hdb9      2318+  8635    6318-  50749334+  fd  Linux raid autodetect
                start: (c,h,s) expected (1023,254,63) found (270,0,2)
                end: (c,h,s) expected (1023,254,63) found (443,254,63)

Den Käse mit start/end expected/found gibt's beim hda nicht.

paux 29.10.2003 17:14

Ich verdien' mir noch den Monolog-Führer des Jahres! :)

cfdisk -> Maximize disk usage of the current partition (experts only)

Dadurch bekommt die Partition das/die Flag(s) "NC" (was auch immer das heißt, mir momentan egal) und kommt auf die gewünschte Größe.

Komisch nur daß das fdisk das bei hdb auch konnte und bei hda dann nicht mehr.

lg paux


Alle Zeitangaben in WEZ +2. Es ist jetzt 00:23 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag