Skip to content

HowToMakeLiveUSB en

Synge Todo edited this page Jun 16, 2018 · 6 revisions

How to make bootable live USB

[English/日本語]

Please do the following steps by your own risk. Keep in mind that all the contents of the hard disk drive will be lost if you make a mistake especially in the device name.

  1. Prepare USB Flash memory with more than 4 GB (over 8 GB is recommended).

  2. Download ISO image (hereafter, it calls MateriAppsLive-1.4.hybrid.iso).

  3. Write the system to USB using dd command. (Please make sure that the device name is correct, before start writing!)

    • For Linux: check the device name by

        fdisk -l
      

      (/dev/sdb is assumed in the following.) Check the output of df command, and umount /dev/sdb0, /dev/sdb1, etc if needed

      sudo umount /dev/sdb0
      

      Next, write the system to USB using dd command.

      sudo dd if=MateriAppsLive-1.4.hybrid.iso of=/dev/sdb bs=4M
      
    • For Mac OS X: check the device name by

        diskutil list
      

      (/dev/disk1 is assumed in the following.) Umount /dev/disk1s1 by

      diskutil umount /dev/disk1s1
      

      Next, write the system to USB using dd command. (Note that m is the small letter in "bs=4m")

      sudo dd if=MateriAppsLive-1.4.hybrid.iso of=/dev/disk1 bs=4m
      
    • For Windows (7, 8, 8.1)

      Download "DDforWindows" from http://www.si-linux.co.jp/techinfo/index.php?DD%20for%20Windows and run it as an administrator.

  4. Make persistence area (partition). (Note: The following steps can not be done on Mac OS X or Windows. Please boot from the USB flash memory made at step 3, open a terminal window in MateriApps LIVE!, then execute the following commands.)

    1. Start fdisk (please make sure that the device name is correct!)

      sudo fdisk /dev/sdb

    2. Push "p" key to check current partition table.

      Device Boot Start End Blocks Id System /dev/sdb1 * 1 1014 1573712 17 Hidd HPFS/NTFS

    3. Make a persistent partition (/dev/sdb2) after /dev/sdb1. (「n」→「p」→「1015」→Return)

    4. Write the partition table into the USB by pusshing w key, and exit from fdisk.

    5. Make ext4 file system.

      sudo mkfs.ext4 /dev/sdb2 -L persistence

      If you encounter an error message at this point, please try to reboot the system.

    6. Make persistence.conf

      sudo mount /dev/sdb2 /mnt echo "/ union" | sudo tee -a /mnt/persistence.conf sudo umount /mnt

Newly created or modified files on MateriApps LIVE! will be recorded in /dev/sdb2 persistently, and will not be deleted even after reboot.

Reference: http://live.debian.net/manual/stable/html/live-manual/the-basics.en.html#186