Already explained:
Twist: is it possible to transfer the system currently on sdc to sda?
Because I think what I would like to end up with is
a) One OS only on sda (240 GB SSD) - preferably the system currently on sdc since everything works properly there and the newly installed one on sda has niggles, the main one being the printer not working well (though I finally did get it to work after a long time by turning the machine off and on after no joy with endless driver installations etc!), and also not all gnome extensions work properly and for some mysterious reason cannot log in via the browser to change them - gnome extensions ‘just says no!’
That can be done, but would be a lot to write and explain, especially because of btrfs (and you are not familiar with it). Also, you need some basic understanding about the process so that nothing goes wrong. I assume you have almost zero knowledge about it. Contact me via PM, if you would like some support and real time explanations, I will not explain every single detail here, since a search with the correct terms can give you all the information you need, and you need the will and time to learn that.
Perhaps a fresh installation on sda would be better for you, since I assume that you are a newbie on this field.
Using dd for btrfs is not recommended!
If I keep the main OS on the current 500 GB drive, then my understanding is that I cannot use the smaller sda for dd backups of the larger disk. That’s why I’m thinking of shifting it over. I would like to end up with simple, bullet-proof whole system backup method that can simply restore the entire disk quickly - like I used to do back in the day with Windows Exp and Hard Disk Manager (a great program developed in D-land, I think)
TimeShift is not a real backup tool and was never intended. Timeshift is more like “Windows Recovery”. By default, it creates a snapshot of your system files on the same disk and with timeshift-autosnap it creates a snapshot right before a system upgrade starts. And if something went wrong, you can roll it back.
If you want to backup your home files, I would suggest using borg. There are 2 GUIs for that vorta and pika-backup, although you can also just use a script. Borg supports snapshots, deduplication and compression.
Anyway, why would you create images of the whole OS? What would make sense on debian servers, which doesn’t change very often, but a rolling OS is still rolling. You will spend a lot of time creating images every time something changes.
After this experience I am thinking that having a backup OS - which seemed prudent to me at the time - is inviting more headaches than it potentially solves and in any case doesn’t really offer anything more than a livecd EXCEPT that I can use it to keep working on things in word processors etc. But those things can be worked on via livecd too for a little while making the reasons for having a second OS questionable - especially given how having one can result in seriously compromising the main OS as happened to me last week for reasons am still not clear about.
I have a backup OS, which is just a customized Manjaro ISO and I don’t use a flash drive for this.
- Make some space on sdc and create a 10GB vfat partition and flag it with
boot,espand name the partition and file system “RECOVERY” (
important
). - Mount it and install grub on it:
sudo mount --mkdir --label RECOVERY /mnt/recovery
sudo grub-install --target=x86_64-efi --recheck --removable --efi-directory=/mnt/recovery --boot-directory=/mnt/recovery/boot --verbose --force
- Create an efi entry in your UEFI/BIOS:
sudo efibootmgr --create --disk /dev/sdX --part <number> --label "Recovery" --loader '\EFI\BOOT\BOOTX64.EFI'
- Copy a Manjaro ISO to that partition:
sudo cp -f /path/to/manjaro.iso /mnt/recovery/manjaro.iso
- This script has to be in
/mnt/recovery/boot/grub/grub.cfg(create it):
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if loadfont $prefix/fonts/unicode.pf2 ; then
# Set Video
set gfxmode=auto
load_video
insmod gfxterm
# Set Langauge for grub
set locale_dir="$prefix/locale"
set lang="de"
insmod gettext
fi
# Set keyboard language for grub
#insmod keylayouts
#keymap $prefix/lang.gkb
terminal_input console
terminal_output gfxterm
insmod part_gpt
insmod part_msdos
insmod fat
set label="RECOVERY"
search --no-floppy --label --set=root $label
insmod png
set timeout_style="menu"
set timeout="10"
menuentry "Manjaro ISO" {
# Setup grub
load_video
set gfxpayload=keep
insmod part_gpt
insmod part_msdos
insmod fat
## Set Parameters for the ISO
# Set the free or nonfree drivers
set dri="free"
# Set the language of the Desktop (localectl list-locales)
set lang="de_DE"
# Set keyboard language (localectl list-keymaps)
set keyboard="de"
# Set the timezone (timedatectl list-timezones)
set timezone="Europe/Berlin"
# Copy to RAM (needs at least 8GB RAM)
#set c2r="copy2ram"
# Set Params searching the ISO
# Label of the partition where it searches for the iso file
set label="RECOVERY"
# Search for the partition label and switch to the root directory of it
search --no-floppy --label --set=root $label
# Set the device where the ISO is located
set device="/dev/disk/by-label/$label"
# Set the Path to the ISO
set file="/manjaro.iso"
loopback loop $file
linux (loop)/boot/vmlinuz-x86_64 img_dev=$dev img_loop=$file driver=$dri tz=$timezone lang=$lang keytable=$keyboard $cr2
initrd (loop)/boot/intel_ucode.img (loop)/boot/initramfs-x86_64.img
}
- And now you are done. You can now reboot, type F12 and choose “Recovery” from the Bootmenu. This little installation is fully dedicated and even work when your main installation is non-functional. You can also do a full installation form here.
You need to adjust the parameter in menu to your language. Parameters are mostly explained. If you have an amd CPU, then replace intel_ucode.img with amd_ucode.img.
Anyway, this works for me in production and if something goes wrong, I can always boot a live session and fix stuff.
Ok I hope this is clear now and helpful. ![]()