Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

sudo nano /etc/grub.d/40_custom && sudo update-grub2

#40_custom

#This is a DHCP example

menuentry "Clonezilla live" {
set isofile="/home/isos/clonezilla.iso"
loopback loop $isofile
linux (loop)/live/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_prerun=\"dhclient -v eth0\" ocs_live_extra_param=\"\" keyboard-layouts=\"\" ocs_live_batch=\"no\" locales=en_US.UTF-8 vga=788 locales=en_US.UTF-8 vga=788 ip=frommedia nosplash toram=filesystem.squashfs findiso=$isofile usercrypted=Kb/VNchPYhuf6 ocs_daemonon=\"ssh\"
initrd (loop)/live/initrd.img
}

#This is a Static IP example

menuentry "Clonezilla live" {
set isofile="/home/isos/clonezilla.iso"
loopback loop $isofile
linux (loop)/live/vmlinuz boot=live live-config noswap nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" keyboard-layouts=\"\" ocs_live_batch=\"no\" locales=en_US.UTF-8 vga=788 locales=en_US.UTF-8 vga=788 ip=eth0:192.168.200.86:255.255.255.0:192.168.200.1:8.8.8.8 nosplash toram=filesystem.squashfs findiso=$isofile usercrypted=Kb/VNchPYhuf6 ocs_daemonon=\"ssh\"
initrd (loop)/live/initrd.img

—————————The Differences!___________________________

I removed:

ocs_prerun=\"dhclient -v eth0\"

I changed This

ip=frommedia

 

to:

ip=eth0:192.168.200.86:255.255.255.0:192.168.200.1:8.8.8.8

 

Where:

ip=[DEVICE]:[IP]:[SUBNET]:[GATEWAY]:[DNS]

 

you may want to change in the menu entry in between $isofile & ocs_daemonon

$isofile usercrypted=Kb/VNchPYhuf6 ocs_daemonon=

 

To create new password use these commands

sudo apt-get install whois echo iloveclonezilla | mkpasswd -s

 

This results in current password

Kb/VNchPYhuf6

 

Now just access via ssh user=”user” pwd=”iloveclonezilla” port 22 etc etc.

Root can be accessed via

sudo su

This assumes clonezilla is your only extra grub entry, if more, trial and error #4

sudo nano ~/.bashrc && source ~/.bashrc 
 
alias czilla="sudo grub-reboot 4 && sudo reboot"

This reboots server with CloneZilla Live ISO in RAM with all disks unmounted!


  • No labels