Gparted in PXE

From RVM Wiki
Jump to navigation Jump to search

Gparted consente di effettuare il resize di partizioni NTFS

Scaricamento

cd /tmp/
wget -c "http://downloads.sourceforge.net/project/gparted/gparted-live-stable/0.7.1-1/gparted-live-0.7.1-1.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fgparted%2Ffiles%2Fgparted-live-stable%2F0.7.1-1%2F&ts=1293106607&use_mirror=switch" -O gparted-live-0.7.1-1.zip
unzip gparted-live-0.7.1-1.zip -d gparted

Installazione

sudo mkdir /files/tftpboot/gparted/
sudo cp -v /tmp/gparted/live/{vmlinuz1,initrd1.img} /files/tftpboot/gparted/
sudo cp -v /tmp/gparted/live/filesystem.squashfs /files/tftpboot/gparted/

Configurazione PXE

  • Creare l'istanza Syslinux da includere nella configurazione PXE.

Inserire l'ip del server TFTP corretto

cat | sudo tee -a /files/tftpboot/gparted/gparted.cfg > /dev/null <<EOFile
label gparted
kernel gparted/vmlinuz1
append initrd=gparted/initrd1.img boot=live live-config union=aufs noswap noprompt vga=788 fetch=tftp://192.168.29.254/gparted/filesystem.squashfs
EOFile
  • Includere la configurazione
sudoedit /files/tftpboot/pxelinux.cfg/default
INCLUDE gparted/gparted.cfg
  • Aggiungere la voce nel menu testuale
sudoedit /files/tftpboot/boot.txt
gparted

Riferimenti