I can’t get this to work on my test VM running the latest Manjaro and kernel 5.14 on BTRFS. Have tried both KDE and XFCE.
This is the error message I get when selecting Clonezilla from grub:
error: file `/opt/clonezilla-live-20210817-hirsute-amd64.iso' not found.
error: no server is specified
error: you need to load the kernel first.
My 40_custom file:
sudo nano -w /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "CloneZilla" {
# The string between " and " below is the actual name of the ISO file you just downloaded
# and copied to the /opt directory (where optional software resides) and is the current
# version as of the last edit to this [HowTo].
set ISOFile="/opt/clonezilla-live-20210817-hirsute-amd64.iso"
loopback loop ($root)$ISOFile
linux (loop)/live/vmlinuz boot=live components config findiso=$ISOFile ip=frommedia toram=filesystem.squashfs union=overlay
initrd (loop)/live/initrd.img
}
I have verified that the .iso is located in /opt/ and that the filenames are corresponding.
Changing the directory to home does not work either (and changing the set ISOFile=).
Changing ISOFile to isofile (all of those mentioned in the script) doesn’t work either.
Any ideas?
-update-
Normal CloneZilla stable .iso makes no difference.
I’m not a BTRFS user, but the question here is: Is BTRFS already fully supported by grub, so have a look at stuff like this because it looks like your /opt is on a BTRFS partition.
Alternatively, if you have an EXT4 partition somewhere, put the ISOs on there as that’s what I used to test the tutorial…
Just because I can’t see the logic of what you’re trying to accomplish here, please be so kind to allow me to reiterate:
because this sounds like an XY problem to me. (OTOH: you might be leaps and bounds ahead of me, so just trying to ensure you don’t back yourself into some corner you won’t be able to get out of in the future…)
It’s a trail run in a test enviroment. Rather mess a vm up than my daily driver machine. I do not use ext4 anymore, that has been replaced by btrfs. Manjaro ships with btrfs support now so I asume it is mature enough. I have no idea if its fully supported by grub. I am playing around with it to find out. So far no luck.
Btw I am still a beginner when it comes to linux. The functionality in the link you’ve posted is already implemented on my system. Great feature! But I would like to have cloned backups aswell without the hassle of plugging in usb sticks again and again.
In that case, make the cloned backup using a USB stick and then mess up your system on bare metal all you want because now you’re adding a level of complexity using a VM…
You have a point, however that takes up more time and effort. Using a VM was a safe way to play with it. Not knowing that it may (or may not) require extra steps to get that working in such a way. I could create a new vm with ext4 filesystem and see if that will work, just out of curiousity. That way we can rule out any incompatibility with btrfs?
It’s a single btrfs partition. Nothing else. That is the way manjaro has it configured during install of the OS. That means that grub is on there right?
Alternatively, an inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.
No spare space… You’re in for a disk extension before doing this on bare metal. Alternatively,Parted Live and shrink one of your partitions to make space
I have just noticed that my system uses mbr instead of gpt. Forgot to boot usb stick in uefi mode when installing system… Maybe that has something to do with it? I have no fat32 partition.
even zstd-compession is now supported but only from grub 2.04 onward
I do use this ! (on bare metal)
some things to look for: EFI - GPT - grub - grub-btrfs - btrfs(wiki @ kenel.org) - snapper - zstd - initramfs - mkinitcpio - mhwd-kernel I did mark /boot to be NOT compressed by btrfs, grub.cfg is not compressed at alll. And kernel(gzip) and initramfs(zstd) are compressed, but not by btrfs. The rest is compressed with zstd=9
also look into this "emergency mode" after Timeshift snapshot recovery - #28 by gadzhi
The only feature missing:
What grub can’t do at this time is to store the last boot-entry on btrfs (GRUB_DEFAULT=saved does not work with btrfs)
Please have a look at btrfs send / receive
The name is irritating. This is a solution for incremental btrfs backup of snapshots
If you want to boot a iso from grub
, please put the iso under /boot/iso (and don´t compress /boot) There is an tutorial in this forum and additional info in arch wiki !
(When /boot is inside btrfs, you dont´t have a problem with the space there. So put things for booting there. And dont’ compress anything that must be used by grub)
And please allways install at least 2 kernels (one of them LTS)