From Mageia wiki
Please remove this {{Draft}}template, when you're sure the page is complete and correct.
|
Persistent Live-USB case study
- Download usb from https://shared.com/at41j5zp74?s=l
- extract image with p7zip
7z e dd-kingstion.7z
- burn image on 1G usb stick to get physical entity
dd if=dd-kingston of=/dev/sdb
![]() |
Here be dragons! check "of" device with dmesg so you don't damage your healthy disk drive |
learn how Live-USB is build / configured
- /dev/sdb1 * 1 2445311 1222655+ 6 FAT16 is boot partition
- files and dirs on root are:
casper/ initrd.img ldlinux.sys opt/ stts.sh syslinux.cfg vmlinuz
- contents of syslinux.cfg
DEFAULT vmlinuz APPEND boot=casper initrd=initrd.img rw vga=788 live_media=/dev/sda1 splash quiet-- TIMEOUT 1 PROMPT 1
- after boot, squashfs is mounted from casper dir, on root is mounted live_media from /dev/sda1 (that's why bold)
- bootable part of stick was created copying right files and
syslinux.exe d:
- initrd.img we can explore [1]
- i believe stts.sh is userscript... in top of it is: mount -t vfat /dev/sda1 /live_media -o remount,rw,noatime