Hallo Thomas,

ich habe die Befehle jetzt mal einzeln ausgeführt:

----------------------------------------------------------------
root@fai:~# wipefs -a /dev/sda1
root@fai:~# wipefs -a /dev/sda5
root@fai:~# parted -s /dev/sda mklabel msdos
root@fai:~# parted -s /dev/sda mkpart primary "ext3" 1048576B 525336575B
root@fai:~# parted -s /dev/sda set 1 boot on
root@fai:~# parted -s /dev/sda mkpart extended "" 525336576B 17179869183B
root@fai:~# parted -s /dev/sda mkpart logical "linux-swap" 525337600B 2672821247B Warning: The resulting partition is not properly aligned for best performance. Error: Error informing the kernel about modifications to partition /dev/sda2 -- Invalid argument. This means Linux won't know about any changes you made to /dev/sda2 until you reboot -- so you shouldn't mount it or use it in any way before rebooting. Error: Partition(s) 2 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
root@fai:~# echo $?
1
root@fai:~#

----------------------------------------------------------------
Leider weiß ich absolut nicht, warum der parted-Befehl für das swap hier fehl schlägt. Die gleiche Fehlermeldung erscheint, wenn ich die Festplatte vorher lösche.


----------------------------------------------------------------
Wenn ich die 'disk_config' so anpasse:

disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid
primary   /boot     500    ext3    rw
primary   swap      2G     swap    sw
primary   /         8G-    ext4    rw,noatime,errors=remount-ro


... läuft die Partitionierung sauber durch. Es scheint also an der Konfiguration zu liegen, oder?

Ich weiß hier irgendwie nicht weiter

Peter

Antwort per Email an