| 172 | |
| 173 | * mitty@ubuntu64:~$ dpkg -S /usr/sbin/grub-install |
| 174 | {{{ |
| 175 | grub-pc: /usr/sbin/grub-install |
| 176 | }}} |
| 177 | * mitty@ubuntu64:~$ aptitude show grub-pc |
| 178 | {{{ |
| 179 | Version: 1.98-1ubuntu12 |
| 180 | }}} |
| 181 | |
| 182 | == fdisk, format USB flash memory == |
| 183 | * mitty@ubuntu64:~$ sudo fdisk -u /dev/sdb |
| 184 | {{{ |
| 185 | Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel |
| 186 | Building a new DOS disklabel with disk identifier 0x0b19ae9f. |
| 187 | Changes will remain in memory only, until you decide to write them. |
| 188 | After that, of course, the previous content won't be recoverable. |
| 189 | |
| 190 | Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) |
| 191 | |
| 192 | WARNING: DOS-compatible mode is deprecated. It's strongly recommended to |
| 193 | switch off the mode (command 'c'). |
| 194 | |
| 195 | Command (m for help): n |
| 196 | Command action |
| 197 | e extended |
| 198 | p primary partition (1-4) |
| 199 | p |
| 200 | Partition number (1-4): 1 |
| 201 | First sector (62-3932159, default 62): |
| 202 | Using default value 62 |
| 203 | Last sector, +sectors or +size{K,M,G} (62-3932159, default 3932159): |
| 204 | Using default value 3932159 |
| 205 | |
| 206 | Command (m for help): t |
| 207 | Selected partition 1 |
| 208 | Hex code (type L to list codes): b |
| 209 | Changed system type of partition 1 to b (W95 FAT32) |
| 210 | |
| 211 | Command (m for help): p |
| 212 | |
| 213 | Disk /dev/sdb: 2013 MB, 2013265920 bytes |
| 214 | 62 heads, 62 sectors/track, 1022 cylinders, total 3932160 sectors |
| 215 | Units = sectors of 1 * 512 = 512 bytes |
| 216 | Sector size (logical/physical): 512 bytes / 512 bytes |
| 217 | I/O size (minimum/optimal): 512 bytes / 512 bytes |
| 218 | Disk identifier: 0x0b19ae9f |
| 219 | |
| 220 | Device Boot Start End Blocks Id System |
| 221 | /dev/sdb1 62 3932159 1966049 b W95 FAT32 |
| 222 | Partition 1 does not end on cylinder boundary. |
| 223 | |
| 224 | Command (m for help): w |
| 225 | The partition table has been altered! |
| 226 | |
| 227 | Calling ioctl() to re-read partition table. |
| 228 | |
| 229 | WARNING: If you have created or modified any DOS 6.x |
| 230 | partitions, please see the fdisk manual page for additional |
| 231 | information. |
| 232 | Syncing disks. |
| 233 | }}} |
| 234 | * format[[br]][[Image(format-USB-memory.png,33%)]] |
| 235 | |
| 236 | == install GRUB2 == |
| 237 | * mitty@ubuntu64:~$ sudo mount /dev/sdb1 /mnt/ |
| 238 | * mitty@ubuntu64:~$ sudo grub-install --no-floppy --root-directory=/mnt/ /dev/sdb |
| 239 | {{{ |
| 240 | Installation finished. No error reported. |
| 241 | }}} |
| 242 | * mitty@ubuntu64:~$ sudo umount /mnt/ |
| 243 | |
| 244 | == copy iso, image files to USB memory == |
| 245 | * E:\>tree /f /a |
| 246 | {{{ |
| 247 | E:. |
| 248 | \---boot |
| 249 | | memtest.plus |
| 250 | | plpbt.bin |
| 251 | | FDOS0138.IMG |
| 252 | | |
| 253 | +---grub |
| 254 | | | 915resolution.mod |
| 255 | |
| 256 | (snip) |
| 257 | |
| 258 | | | core.img |
| 259 | | | grubenv |
| 260 | | | grub.cfg |
| 261 | | | |
| 262 | | \---locale |
| 263 | |
| 264 | (snip) |
| 265 | |
| 266 | | |
| 267 | \---iso |
| 268 | 10.04-i386.iso |
| 269 | 10.04-x86_64.iso |
| 270 | 11.10-i386.iso |
| 271 | 11.10-x86_64.iso |
| 272 | debian-6.0.3-amd64-businesscard.iso |
| 273 | debian-6.0.3-i386-businesscard.iso |
| 274 | fdbasecd.iso |
| 275 | knoppix_v6.7.1CD_20110914-20111018.iso |
| 276 | }}} |
| 277 | * iso, image files[[br]][[Image(isofiles.png,33%)]] |
| 278 | |
| 279 | == edit grub.cfg == |
| 280 | * /boot/grub/grub.cfg |
| 281 | {{{ |
| 282 | menuentry "KNOPPIX 6.7.1 CD JAPANESE (text mode)" { |
| 283 | loopback loop /boot/iso/knoppix_v6.7.1CD_20110914-20111018.iso |
| 284 | echo 'Loading Linux 3.0.4 i386 ...' |
| 285 | linux (loop)/boot/isolinux/linux 3 bootfrom=/*/*/boot/iso/knoppix_v6.7.1CD_20110914-20111018.iso ramdisk_size=100000 lang=ja vt.default_utf8=0 apm=power-off initrd=minirt.gz nomce libata.force=noncq hpsa.hpsa_allow_any=1 loglevel=1 tz=Asia/Tokyo |
| 286 | echo 'Loading minirt.gz ...' |
| 287 | initrd (loop)/boot/isolinux/minirt.gz |
| 288 | } |
| 289 | |
| 290 | menuentry "KNOPPIX 6.7.1 CD JAPANESE" { |
| 291 | loopback loop /boot/iso/knoppix_v6.7.1CD_20110914-20111018.iso |
| 292 | echo 'Loading Linux 3.0.4 i386 ...' |
| 293 | linux (loop)/boot/isolinux/linux bootfrom=/*/*/boot/iso/knoppix_v6.7.1CD_20110914-20111018.iso ramdisk_size=100000 lang=ja vt.default_utf8=0 apm=power-off initrd=minirt.gz nomce libata.force=noncq hpsa.hpsa_allow_any=1 loglevel=1 tz=Asia/Tokyo |
| 294 | echo 'Loading minirt.gz ...' |
| 295 | initrd (loop)/boot/isolinux/minirt.gz |
| 296 | } |
| 297 | |
| 298 | menuentry "memtest86+ 4.20" { |
| 299 | linux16 /boot/memtest.plus |
| 300 | } |
| 301 | |
| 302 | menuentry "Plop Boot Manager 5.0.13" { |
| 303 | linux16 /boot/plpbt.bin |
| 304 | } |
| 305 | |
| 306 | menuentry "Debian 6.0 (i386) installer" { |
| 307 | loopback loop /boot/iso/debian-6.0.3-i386-businesscard.iso |
| 308 | echo 'Loading 2.6.32-5-486 ...' |
| 309 | linux (loop)/install.386/vmlinuz vga=788 initrd=/install.386/initrd.gz |
| 310 | echo 'Loading initrd.gz ...' |
| 311 | initrd (loop)/install.386/initrd.gz |
| 312 | } |
| 313 | |
| 314 | menuentry "Debian 6.0 (x86_64) installer" { |
| 315 | loopback loop /boot/iso/debian-6.0.3-amd64-businesscard.iso |
| 316 | echo 'Loading Linux 2.6.32-5-amd64 ...' |
| 317 | linux (loop)/install.amd/vmlinuz vga=788 initrd=/install.amd/initrd.gz |
| 318 | echo 'Loading initrd.gz ...' |
| 319 | initrd (loop)/install.amd/initrd.gz |
| 320 | } |
| 321 | |
| 322 | menuentry "Ubuntu 10.04 (i386) installer" { |
| 323 | loopback loop /boot/iso/10.04-i386.iso |
| 324 | echo 'Loading Linux 2.6.32-21-generic i386 ...' |
| 325 | linux (loop)/linux vga=normal initrd=initrd.gz |
| 326 | echo 'Loading initrd.gz ...' |
| 327 | initrd (loop)/initrd.gz |
| 328 | } |
| 329 | |
| 330 | menuentry "Ubuntu 10.04 (x86_64) installer" { |
| 331 | loopback loop /boot/iso/10.04-x86_64.iso |
| 332 | echo 'Loading Linux 2.6.32-21-generic x86_64 ...' |
| 333 | linux (loop)/linux vga=normal initrd=initrd.gz |
| 334 | echo 'Loading initrd.gz ...' |
| 335 | initrd (loop)/initrd.gz |
| 336 | } |
| 337 | |
| 338 | menuentry "Ubuntu 11.10 (i386) installer" { |
| 339 | loopback loop /boot/iso/11.10-i386.iso |
| 340 | echo 'Loading Linux 3.0.0-12-generic i386 ...' |
| 341 | linux (loop)/linux vga=normal initrd=initrd.gz |
| 342 | echo 'Loading initrd.gz ...' |
| 343 | initrd (loop)/initrd.gz |
| 344 | } |
| 345 | |
| 346 | menuentry "Ubuntu 11.10 (x86_64) installer" { |
| 347 | loopback loop /boot/iso/11.10-x86_64.iso |
| 348 | echo 'Loading Linux 3.0.0-12-generic x86_64 ...' |
| 349 | linux (loop)/linux vga=normal initrd=initrd.gz |
| 350 | echo 'Loading initrd.gz ...' |
| 351 | initrd (loop)/initrd.gz |
| 352 | } |
| 353 | |
| 354 | menuentry "FreeDOS/V V01L38" { |
| 355 | loopback loop /boot/iso/fdbasecd.iso |
| 356 | linux16 (loop)/isolinux/data/memdisk |
| 357 | echo 'Loading fdos0138.img ...' |
| 358 | initrd16 /boot/fdos0138.img |
| 359 | } |
| 360 | |
| 361 | menuentry "FreeDOS 1.0 Final" { |
| 362 | loopback loop /boot/iso/fdbasecd.iso |
| 363 | linux16 (loop)/isolinux/data/memdisk |
| 364 | echo 'Loading fdboot.img ...' |
| 365 | initrd16 (loop)/isolinux/data/fdboot.img |
| 366 | } |
| 367 | }}} |
| 368 | |
| 369 | * GRUB2 bootmenu[[br]][[Image(grub2-menu.png,33%)]] |
| 370 | |
| 371 | == references == |
| 372 | * [http://www.memtest.org/ Memtest86+ - Advanced Memory Diagnostic Tool] |
| 373 | * [http://www.plop.at/en/bootmanager.html Plop - Boot Manager - Free Boot Manager, builtin usb driver, native usb, boot different operating systems, cdrom, usb, freeware, option rom bios] |
| 374 | * [http://www.debian.org/CD/netinst/ Debian -- 最小の CD を使って、ネットワークインストールする] |
| 375 | * [https://help.ubuntu.com/community/Installation/MinimalCD Installation/MinimalCD - Community Ubuntu Documentation] |
| 376 | |
| 377 | === knoppix === |
| 378 | * [http://www.rcis.aist.go.jp/project/knoppix/ KNOPPIX Japanese edition] |
| 379 | * [http://www.knoppix.net/wiki/Cheat_Codes Cheat Codes - Knoppix Documentation Wiki] |
| 380 | |
| 381 | * そのままでは正常に起動しない[[br]][[Image(knoppix-boot.png,33%)]][[br]][[Image(knoppix-boot-fail1.png,33%)]] [[Image(knoppix-boot-fail2.png,33%)]] [[Image(knoppix-boot-fail3.png,33%)]] |
| 382 | * bootfromオプションが必要[[br]][[Image(knoppix-boot-bootfrom.png,33%)]][[Image(knoppix-found.png,33%)]] |
| 383 | |
| 384 | === FreeDOS === |
| 385 | * [http://www.freedos.org/ FreeDOS | The FreeDOS Project] |
| 386 | * [http://baalzephon.dyndns.org/tech/index.php?FreeDOS FreeDOS - PukiWiki Plus!] Bootable FreeDOS USB Stick |
| 387 | * [http://ubuntuforums.org/showthread.php?t=1440507 [ubuntu] freedos and grub 2 - Ubuntu Forums] |
| 388 | * [http://homepage1.nifty.com/bible/fdos/ FreeDOS/Vページ] |
| 389 | = Multi CD iso boot with USB flash memory = |