Gparted in PXE: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
m New page: Gparted consente di effettuare il resize di partizioni NTFS ==Scaricamento== <pre> cd /tmp/ mkdir gparted cd gparted wget -c --bind-address=192.168.0.231 "http://downloads.sourceforge.ne...
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
<pre>
<pre>
cd /tmp/
cd /tmp/
mkdir gparted
wget -c "http://switch.dl.sourceforge.net/project/gparted/gparted-live-stable/0.10.0-3/gparted-live-0.10.0-3.zip"
cd gparted
unzip gparted-live-*.zip -d gparted
wget -c --bind-address=192.168.0.231 "http://downloads.sourceforge.net/project/gparted/gparted-live-stable/0.6.2-2/gparted-live-0.6.2-2.zip?use_mirror=switch" -O gparted-live-0.6.2-2.zip
unzip gparted-live-0.6.2-2.zip -d gparted
</pre>
</pre>
== Installazione ==
== Installazione ==
<pre>
<pre>
Line 16: Line 15:
sudo cp -v /tmp/gparted/live/filesystem.squashfs /files/tftpboot/gparted/
sudo cp -v /tmp/gparted/live/filesystem.squashfs /files/tftpboot/gparted/
</pre>
</pre>
==Configurazione PXE==
==Configurazione PXE==
* Creare l'istanza Syslinux da includere nella configurazione PXE.
'''Inserire l'ip del server TFTP corretto'''


<pre>
<pre>
cd /files/tftpboot/
cat | sudo tee -a /files/tftpboot/gparted/gparted.cfg > /dev/null <<EOFile
 
cat | sudo tee -a /files/tftpboot/pxelinux.cfg/default > /dev/null <<EOFile
label gparted
label gparted
kernel gparted/vmlinuz
    kernel gparted/vmlinuz
append initrd=gparted/initrd.img boot=live union=aufs noswap noprompt vga=788 fetch=tftp://192.168.29.254/gparted/filesystem.squashfs
    append initrd=gparted/initrd.img boot=live live-config union=aufs noswap nop
rompt vga=788 fetch=tftp://192.168.30.254/gparted/filesystem.squashfs
EOFile
EOFile
</pre>
</pre>


<pre>
* Includere la configurazione
echo | sudo tee -a cd /files/tftpboot/boot.txt > /dev/null <<EOFile
 
gparted    Boot into Gparted partition editor
sudoedit /files/tftpboot/pxelinux.cfg/default
EOFile
 
</pre>
INCLUDE gparted/gparted.cfg
 
* Aggiungere la voce nel menu testuale
 
sudoedit /files/tftpboot/boot.txt
 
gparted


==Riferimenti==
==Riferimenti==
*[http://gparted.sourceforge.net/livepxe.php GParted Live on PXE server]
*[http://gparted.sourceforge.net/livepxe.php GParted Live on PXE server]

Latest revision as of 09:03, 15 November 2011

Gparted consente di effettuare il resize di partizioni NTFS

Scaricamento

cd /tmp/
wget -c "http://switch.dl.sourceforge.net/project/gparted/gparted-live-stable/0.10.0-3/gparted-live-0.10.0-3.zip"
unzip gparted-live-*.zip -d gparted

Installazione

sudo mkdir /files/tftpboot/gparted/
sudo cp -v /tmp/gparted/live/{vmlinuz,initrd.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/vmlinuz
    append initrd=gparted/initrd.img boot=live live-config union=aufs noswap nop
rompt vga=788 fetch=tftp://192.168.30.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