From Mageia wiki
Jump to: navigation, search
this page is a draft.
It requires improvements. If you want to improve it, simply log in and click on the Edit tab.

Please remove this {{Draft}}template, when you're sure the page is complete and correct.


View the other draft pages, or other pages to improve and maintain.

Persistent Live-USB case study

  1. Download usb from https://shared.com/at41j5zp74?s=l
  2. extract image with p7zip 7z e dd-kingstion.7z
  3. burn image on 1G usb stick to get physical entity
dd if=dd-kingston of=/dev/sdb
Dragon-head.png 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