3.3 USB/HDD イメージの構築
The following sequence of helper commands will create a basic
USB/HDD image containing just the Debian standard system without
X.org. It is suitable for booting from USB sticks, USB hard
drives, and various other portable storage devices.
注意) 前の例でlive iso イメージをビルドしたなら, lh_clean コマ
ンドでワーキングディレクトリのビルドイメージとその他を削除する必
要があります (see Section 4.1.3, ?The lh_clean helper?):
$ lh_clean --binary
USB/HDD イメージを作成するには lh_config コマンドを -b usb-hdd
オプション付でタイプし config/ 以下を作成する
$ lh_config -b usb-hdd
lh_buildでisoイメージをビルドする。
# lh_build
これでbinary.isoなどのイメージファイルが出来る
3.3.1. USB/HDD iso イメージファイルの USB stick書き込み
The generated binary image contains a VFAT partition and the
syslinux bootloader, ready to be directly written on an USB
stick. Plug in an USB stick with a size larger than binary.img's
one
binary.iso イメージファイルの USB stick書き込み
$ dd if=binary.img of=${USBSTICK}
ファイルを間違えて指定しないこと)
重要 先にusbスティックにあった内容は上書きされますので必要なら
バックアップしておいてください。
3.3.2. Qemuを使ったUSB/HDD isoイメージのテスト
# apt-get install qemu
$ qemu -hda binary.img
3.3.3. Using the space left on a USB stick
If you want to use the remaining free space after you have
installed the binary.img, you can use a partitioning tool such
as gparted or parted to create a new partition on the stick. The
first partition will be used by the Debian Live system.
# gparted ${USBSTICK}
After the creation of the partition you have to create a
filsystem on it. One possible choice would be ext2 (ext3 isn't
recommended because the journaling causes too much writes to the
stick).
# mkfs.ext2 ${USBSTICK}
If you want to use this data partition with Windows, use FAT32
# mkfs.vfat -F 32
Important
Remember: Every time you install a new binary.img on the stick,
all your data will be lost because the image includes a complete
partition table.
FIXME: Describe installing Debian Live to a partition (e.g. /dev
/sdc1) AND using a bootloader to boot this.
The following sequence of helper commands will create a basic
USB/HDD image containing just the Debian standard system without
X.org. It is suitable for booting from USB sticks, USB hard
drives, and various other portable storage devices.
注意) 前の例でlive iso イメージをビルドしたなら, lh_clean コマ
ンドでワーキングディレクトリのビルドイメージとその他を削除する必
要があります (see Section 4.1.3, ?The lh_clean helper?):
$ lh_clean --binary
USB/HDD イメージを作成するには lh_config コマンドを -b usb-hdd
オプション付でタイプし config/ 以下を作成する
$ lh_config -b usb-hdd
lh_buildでisoイメージをビルドする。
# lh_build
これでbinary.isoなどのイメージファイルが出来る
3.3.1. USB/HDD iso イメージファイルの USB stick書き込み
The generated binary image contains a VFAT partition and the
syslinux bootloader, ready to be directly written on an USB
stick. Plug in an USB stick with a size larger than binary.img's
one
binary.iso イメージファイルの USB stick書き込み
$ dd if=binary.img of=${USBSTICK}
${USBSTICK} の部分はシステムのusbスペシャルファイルで, /dev/sdaのように指定します。(/dev/sda1のようなパーティションスペシャル
ファイルを間違えて指定しないこと)
重要 先にusbスティックにあった内容は上書きされますので必要なら
バックアップしておいてください。
3.3.2. Qemuを使ったUSB/HDD isoイメージのテスト
# apt-get install qemu
$ qemu -hda binary.img
3.3.3. Using the space left on a USB stick
If you want to use the remaining free space after you have
installed the binary.img, you can use a partitioning tool such
as gparted or parted to create a new partition on the stick. The
first partition will be used by the Debian Live system.
# gparted ${USBSTICK}
After the creation of the partition you have to create a
filsystem on it. One possible choice would be ext2 (ext3 isn't
recommended because the journaling causes too much writes to the
stick).
# mkfs.ext2 ${USBSTICK}
If you want to use this data partition with Windows, use FAT32
# mkfs.vfat -F 32
Important
Remember: Every time you install a new binary.img on the stick,
all your data will be lost because the image includes a complete
partition table.
FIXME: Describe installing Debian Live to a partition (e.g. /dev
/sdc1) AND using a bootloader to boot this.

このページへのコメント
EARyE7 Wow, great article post. Great.