Live System on USB
Hello,
this weekend I did some tests with an USB stick - I'm a little
bit confused, now ;-)
Goal: Build a USB stick which also persists the user data.
I have one ISO image which looks likes this
--------------------------
boot
'[BOOT]'
EFI
efi.img
isolinux
live
sha256sum.README
sha256sum.txt
--------------------------
I _think_ I was able to just copy the files and I was able to cp
the iso-file to /dev/sda. Both where working. \o/
When I create a ISO, now (I don't know what I did) the ISO looks
like:
--------------------------
* lot of .mod files
* mkisofs
* grub* files
* info
* fs.lst
* EFI
* ...
--------------------------
Is the first ISO a Hybrid and the second a 'normal' iso? Can
somebody tell me what I did / missed?
To create the partition I did the following steps
- it is not working ;-)
I copied debian-junior-live-system/live-image-amd64.hybrid.iso to
sda (my USB Stick).
fdisk -l /dev/sda
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 64 4746719 4746656 2,3G 0 Empty
/dev/sda2 740 6051 5312 2,6M ef EFI (FAT-12/16/32)
I created a new partition.
cfdisk /dev/sda
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 64 4746719 4746656 2,3G 0 Empty
/dev/sda2 740 6051 5312 2,6M ef EFI (FAT-12/16/32)
/dev/sda3 4747264 120176639 115429376 55G 83 Linux
(I think this breaks something (mbr?) - I was not able to boot
the live system).
The sda3 should have the persistence.conf.
mkfs.ext4 /dev/sda3
tune2fs -L persistence /dev/sda3
mount /dev/sda3 /mnt/
echo "/home" >> /mnt/persistence.conf
umount /mnt
Can somebody help me to setup such a stick?
This is my config:
https://salsa.debian.org/debian-jr-team/debian-junior-live-system/-/blob/master/auto/config#L8-11
--
Stefan
Diese E-Mail wurde von einem Debian GNU/Linux System gesendet
Reply to: