With a few simple steps, I replaced the somewhat outdated Knoppix with an up-to-date Debian Live as my rescue system on my regular hard disk.
Done.
When you launch this, the FAT partiton is already mounted on /run/live/medium.
There lies the bash_aliases with my aliases and shell functions. I source them and I'm at home and good to go...
That's persistence enough for me. More persistence - as described elsewhere, should be no problem.
My root is on lvm, the iso data - as like Knoppix - on FAT. I still use MBR.
I have this also done with the SystemRescueCD, likewise an excellent software!
You can also do this with the Debian installer image.
Code:
# mount the live isoMNT=/media/isomount -r debian-live-12.8.0-amd64-mate.iso $MNT
Code:
# set your data partitionFAT=/mnt/ssd1
Code:
# copy data to FAT (~3GB)rsync -rP $MNT/live/filesystem.* $FAT/DEBIAN128/
Code:
# copy signaturesrsync -ri $MNT/.disk $FAT/
Code:
# copy kernel/initrd to root/boot partitionrsync -ri $MNT/live/vmlinuz /boot/debian128/cp -v $MNT/live/initrd.img /boot/debian128/
Code:
# add to /boot/grub/custom.cfgmenuentry "debian 12.8.0 live" { linux /boot/debian128/vmlinuz boot=live live-media-path=/DEBIAN128 components keyboard-layouts=de vga=788 initrd /boot/debian128/initrd.img}
When you launch this, the FAT partiton is already mounted on /run/live/medium.
There lies the bash_aliases with my aliases and shell functions. I source them and I'm at home and good to go...
That's persistence enough for me. More persistence - as described elsewhere, should be no problem.
My root is on lvm, the iso data - as like Knoppix - on FAT. I still use MBR.
Code:
# more memswapon -v swap_partiton
You can also do this with the Debian installer image.
Statistics: Posted by linuxCowboy — 2025-01-08 20:35