You are not logged in.

#1 2024-06-02 20:14

seb3773
Member
Registered: 2023-11-01
Posts: 127

add clonezilla to grub menu

Hello,
I made a little script to add a 'Clonezilla live' entry in the grub menu.
As you may know, Timeshift and similar backup programs don't cover all sort of disaster scenarios, so it's safer to do a complete 'offline' image of your disk/partitions sometimes, and this can be done with clonezilla. No matter if you have windows in dual boot or multiple other OS, it can take care of all kind of partition format, etc...  It can be usefull too when you want to clone your disk, for example in order to replace it with a larger size one or other replacement cases.

As I like to experiment, I have to do this kind of offline backup often to be safe, and to avoid having to reinstall everything when I screw it up tongue
So, it's usefull to have it ready on grub menu, I don't always have an usb key with bootable clonezilla live on it with me tongue

Of course, if your root partition is damaged bad, you will have no other choices but to boot Clonezilla from an usb mass storage to be able to restore the backup image, but it's handy to not have to boot from usb to make backup: just restart, access grub menu (press F4 at boot if you set timeout to zero) and choose the clonezilla entry smile

The script will download clonezilla, then put the iso file in the /iso/ folder, and finally create the grub menu entry with your current locales & keyboard layout parameters. (so it will be in your language and with the right keyboard layout for you)

32bits & 64bits compatible.

Just a warning: I'm 100% sure it won't work with a q4os installed from windows (q4os filesystem contained in a NTFS file). Although this can be done, it's not targeted by this script, so don't try in this case as it may break things.

the script must be run as root (sudo ./grubzilla.sh )


Tell me if it's usefull for you smile

Last edited by seb3773 (2024-06-02 20:24)


Attachments:
sh grubzilla.sh, Size: 1.96 KiB, Downloads: 60

My Q4OS scripts: win10/osx theming, perfs optimisation, laptop configuration, ...  for trinity users -->  https://github.com/seb3773/q4osXpack

Offline

Board footer

Powered by FluxBB