ls -l /dev/disk/by-id | grep usb
sudo dd if=/dev/sr0 of=/dev/sdb
sudo dd if=mathlibre.iso of=/dev/sdb
sudo dd if=mathlibre.img of=/dev/sdb
gparted もしくは fdisk を用いて継続的な保存領域を作成します.すでに /dev/sdb1 は先ほどの作業で作成されているので,その後ろに新たな領域 /dev/sdb2 を作成します.
sudo fdisk /dev/sdb GNU Fdisk 1.2.4 Copyright (C) 1998 - 2006 Free Software Foundation, Inc. This program is free software, covered by the GNU General Public License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Using /dev/sdb
Command (m for help): p Disk /dev/sdb: 7 GB, 7819837440 bytes 235 heads, 32 sectors/track, 2031 cylinders Units = cylinders of 7520 * 512 = 3850240 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 1021 3838944 17 Hidd HPFS/NTFS
Command (m for help): n Partition type e extended p primary partition (1-4)
p
First cylinder (default 0cyl): 1021
Last cylinder or +size or +sizeMB or +sizeKB (default 2030cyl):
Command (m for help): p Disk /dev/sdb: 7 GB, 7819837440 bytes 235 heads, 32 sectors/track, 2031 cylinders Units = cylinders of 7520 * 512 = 3850240 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 1021 3838944 17 Hidd HPFS/NTFS /dev/sdb2 1021 2031 3793840 83 Linux
Command (m for help): w Information: Don't forget to update /etc/fstab, if necessary. Writing all changes to /dev/sdb.
sudo mkfs.ext4 /dev/sdb2 -L persistence
sudo -s mount -t ext4 /dev/sdb2 /media echo "/ union" > /media/persistence.conf umount /media exit