Palm84 某所の日記

死のうは一定、しのびクマには何しよぞ...

Ubuntu マルチブート LiveUSB 作成いろいろ

XBOOT

Ubuntu Live についてはバグがあるのでひと手間必要ですが、基本はisoのドラッグ&ドロップ作成なのでいちばん楽かも。

grub4dos isoブート

ファイル配置
ルート
|  
+---iso
|   |   
|   |   ubuntu-ja-13.10-desktop-amd64.iso
|   |   ubuntu-ja-13.10-desktop-i386.iso
|   |   lubuntu-13.10-desktop-i386.iso

isoファイルが断片化してると起動に時間がかかるので注意。デフラグは必須かと。

ブート設定

iso-scan/filename パラメータでisoのパスを指定。

※ すんません。間違ったので訂正しました。

  • menu.lst
title ubuntu-ja-13.10-desktop-amd64.iso
ls /iso/ubuntu-ja-13.10-desktop-amd64.iso || find --set-root /iso/ubuntu-ja-13.10-desktop-amd64.iso
map --heads=0 --sectors-per-track=0 /iso/ubuntu-ja-13.10-desktop-amd64.iso (0xff) || map --mem --heads=0 --sectors-per-track=0 /iso/ubuntu-ja-13.10-desktop-amd64.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash -- debian-installer/language=ja keyboard-configuration/layoutcode?=jp keyboard-configuration/modelcode?=jp106 iso-scan/filename=/iso/ubuntu-ja-13.10-desktop-amd64.iso
initrd /casper/initrd.lz

title ubuntu-ja-13.10-desktop-i386.iso
ls /iso/ubuntu-ja-13.10-desktop-i386.iso || find --set-root /iso/ubuntu-ja-13.10-desktop-i386.iso
map --heads=0 --sectors-per-track=0 /iso/ubuntu-ja-13.10-desktop-i386.iso (0xff) || map --mem --heads=0 --sectors-per-track=0 /iso/ubuntu-ja-13.10-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash -- debian-installer/language=ja keyboard-configuration/layoutcode?=jp keyboard-configuration/modelcode?=jp106 iso-scan/filename=/iso/ubuntu-ja-13.10-desktop-i386.iso
initrd /casper/initrd.lz

title lubuntu-13.10-desktop-i386.iso
ls /iso/lubuntu-13.10-desktop-i386.iso || find --set-root /iso/lubuntu-13.10-desktop-i386.iso
map --heads=0 --sectors-per-track=0 /iso/lubuntu-13.10-desktop-i386.iso (0xff) || map --mem --heads=0 --sectors-per-track=0 /iso/lubuntu-13.10-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash -- debian-installer/language=ja keyboard-configuration/layoutcode?=jp keyboard-configuration/modelcode?=jp106 iso-scan/filename=/iso/lubuntu-13.10-desktop-i386.iso
initrd /casper/initrd.lz

サブディレクトリにまとめる

この方法だとネットワークブート用の設定と併用できます。

ファイル配置
ルート
|  
+---iso
|   |   
|   +---ubuntu.13.10-amd64
|   |   <ここへisoの中身をコピー>
|   +---ubuntu.13.10-i386
|   |   <ここへisoの中身をコピー>
|   +---lubuntu.13.10
|   |   <ここへisoの中身をコピー>
|
ブート設定
  • パスの変更
  • live-media-path でディレクトリ名指定
  • ignore_uuid - これを付けないとUSBメモリがスルーされる(場合が多い)
  • grub4dos - menu.lst
title Ubuntu 13.10 Desktop CD amd64 == /iso/ubuntu.13.10-amd64/
kernel /iso/ubuntu.13.10-amd64/casper/vmlinuz file=/cdrom/iso/ubuntu.13.10-amd64/preseed/ubuntu.seed boot=casper ignore_uuid live-media-path=/iso/ubuntu.13.10-amd64/casper/ quiet splash -- debian-installer/language=ja keyboard-configuration/layoutcode?=jp keyboard-configuration/modelcode?=jp106
initrd /iso/ubuntu.13.10-amd64/casper/initrd.lz

title Ubuntu 13.10 Desktop CD i386 == /iso/ubuntu.13.10-i386/
kernel /iso/ubuntu.13.10-i386/casper/vmlinuz file=/cdrom/iso/ubuntu.13.10-i386/preseed/ubuntu.seed boot=casper ignore_uuid live-media-path=/iso/ubuntu.13.10-i386/casper/ quiet splash -- debian-installer/language=ja keyboard-configuration/layoutcode?=jp keyboard-configuration/modelcode?=jp106
initrd /iso/ubuntu.13.10-i386/casper/initrd.lz

title Lubuntu 13.10 Desktop CD i386 == /iso/lubuntu.13.10/
kernel /iso/lubuntu.13.10/casper/vmlinuz file=/cdrom/iso/lubuntu.13.10/preseed/lubuntu.seed boot=casper ignore_uuid live-media-path=/iso/lubuntu.13.10/casper/ quiet splash -- debian-installer/language=ja keyboard-configuration/layoutcode?=jp keyboard-configuration/modelcode?=jp106
initrd /iso/lubuntu.13.10/casper/initrd.lz

ほなまただべや