Hallo, Am Fre, 02 Jun 2006, Ingo Freund schrieb:
Carl A. Schreiber wrote (please find the answer below the original text):
Danke sogleich gemacht und das erhalten: Disk /dev/hda: 100.0 GB, 100 030 242 816 bytes (also doch 100 GB?)
Nein. 100 GByte sind 107374182400 Bytes.
255 heads, 63 sectors/tracks, 12 161 cylinders Units = cylinders of 16 065 * 512 = 8 225 280 bytes Device Boot Start End Blocks /dev/hda1 1 121 971 901 /dev/hda2 * 122 383 2 104 515 /dev/hda3 384 12161 94 606 785
und die gross ist jetzt die Bootpartition?
"Blocks" sind KB, mit nem '+' noch ein Sektor (512 Bytes) mehr. Also ist dein /dev/hda1 949 MB gross. Auch wenn man das nach der Geometrie ausrechnet bekommt man diese Zahl: 255 * 63 * 121 - 63 = 1943802 Sektoren ^^^\ ^^- Sektoren nach MBR `- End-Zylinder Analog: /dev/hda2 ist 2104515 KB gross (also 2.007 GB).
hda1 = swap, hda2 = /, hda3 = /home
ZB die 94 606.. mit was müßte ich die denn jetzt dividieren multiplizieren und wie steht das in Relation zu den 100,03 GB der ersten Zeile?
$ echo 'scale=4;97606785 / 1024 / 1024' | bc 93.0850 Das sind die "echten" GB.
Die Partitionen sind in Blöcken angegeben, da vergleichst du Äpfel mit Birnen.
Ein Block = 2 Sektoren = 1 KByte.
Da geht es so: Partitionsgröße [byte] = (Endblock - Startblock) x Unit und das dann wiederum durch das richtige GigaByte teilen.
Nur bekommst du hier Endblock und Startblock nicht direkt heraus. -dnh -- "Many of the kinder souls here are throwing clues his way, but he seems to have this weird idea that instead of catching them, he's supposed to be hitting them back over the net." -- Lionel -- Um die Liste abzubestellen, schicken Sie eine Mail an: suse-linux-unsubscribe@suse.com Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: suse-linux-help@suse.com