isoイメージのダウンロード
% wget 'http://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/2.8.0/systemrescuecd-x86-2.8.0.iso' --2002-01-01 04:43:28-- http://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/2.8.0/systemrescuecd-x86-2.8.0.iso Resolving downloads.sourceforge.net... 216.34.181.59 Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://jaist.dl.sourceforge.net/project/systemrescuecd/sysresccd-x86/2.8.0/systemrescuecd-x86-2.8.0.iso [following] --2002-01-01 04:43:28-- http://jaist.dl.sourceforge.net/project/systemrescuecd/sysresccd-x86/2.8.0/systemrescuecd-x86-2.8.0.iso Resolving jaist.dl.sourceforge.net... 150.65.7.130 Connecting to jaist.dl.sourceforge.net|150.65.7.130|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 397369344 (379M) [application/octet-stream] Saving to: `systemrescuecd-x86-2.8.0.iso' 100%[====================>] 397,369,344 8.37M/s in 48s 2002-01-01 04:44:20 (7.82 MB/s) - `systemrescuecd-x86-2.8.0.iso' saved [397369344/397369344] % echo "450305b2c3ac12d5c97ff849ca178586 systemrescuecd-x86-2.8.0.iso" > systemrescuecd-x86-2.8.0.md5 % md5sum --check systemrescuecd-x86-2.8.0.md5 systemrescuecd-x86-2.8.0.iso: OK
iso イメージをマウント。ここで大事なのは、/mnt に iso イメージをマウントしないこと。なぜなら、./usb_inst.sh の中で /mnt/usbstick ディレクトリを作るから。すなわち、/mnt 以下が readonly ファイルシステムだと ./usb_inst.sh は失敗する。
% mount -o loop,exec systemrescuecd-x86-2.8.0.iso /mnt/cdrom mount: warning: /mnt/cdrom seems to be mounted read-only.
インストーラのあるディレクトリに移動して、インストール。最後にログ確認。
% cd /mnt/cdrom % bash ./usb_inst.sh ┌────────────────────────────────────────────────────────────────────┐ │ The following USB/Removable devices cannot be used: │ │ * Device [/dev/sdb] is mounted: cannot use it │ │ │ │ Select the USB/Removable devices where you want to install it. │ │ Files on these devices will be lost if you continue. │ │ ┌────────────────────────────────────────────────────────────────┐ │ │ │ [*] /dev/sdc [SMI USB DISK ] and size=956MB │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └────────────────────────────────────────────────────────────────┘ │ │ │ │ │ │ │ │ │ ├────────────────────────────────────────────────────────────────────┤ │ < OK > <Cancel> │ └────────────────────────────────────────────────────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────┐ │ Installation on /dev/sdc in progress │ │ │ │ details will be written in /var/tmp/usb_inst.log │ │ * Writing MBR on /dev/sdc │ │ * Creating filesystem on /dev/sdc1... │ │ * Copying files (please wait)... │ │ * Installing the boot loader on /dev/sdc1... │ │ * Installation on /dev/sdc1 successfully completed │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └─────────────────────────────────────────────────────────────────────────┘ ┌───────────────────Success──────────────────────┐ │ Installation successfully completed │ │ │ │ │ │ │ │ │ │ │ ├────────────────────────────────────────────────┤ │ < OK > │ └────────────────────────────────────────────────┘ % cat /var/tmp/usb_inst.log Installation on /dev/sdc at 2002-01-01_04:53 The device [/dev/sdc] seems to be big enough: 956 MB. --> /var/tmp/usb_inst.tmp/install-mbr /dev/sdc --force --> /var/tmp/usb_inst.tmp/parted -s /dev/sdc mklabel msdos --> /var/tmp/usb_inst.tmp/parted -s /dev/sdc mkpart primary 0 100% Warning: The resulting partition is not properly aligned for best performance. --> /var/tmp/usb_inst.tmp/parted -s /dev/sdc set 1 boot on The device [/dev/sdc1] seems to be big enough: 955 MB. mkfs.vfat 3.0.9 (31 Jan 2010) Partition /dev/sdc1 has been successfully formatted The device [/dev/sdc1] seems to be big enough: 955 MB. /dev/sdc1 successfully mounted on /mnt/usbstick DEBUG: diskspace(/mnt/usbstick): freespace=955, sysrcdspc=0, realfreespace=955 Free space on /mnt/usbstick is 955MB cp -v -r --remove-destination ./* /mnt/usbstick/ `./bootdisk' -> `/mnt/usbstick/bootdisk' `./bootdisk/aida.img' -> `/mnt/usbstick/bootdisk/aida.img' `./bootdisk/dban.bzi' -> `/mnt/usbstick/bootdisk/dban.bzi' `./bootdisk/freedos.img' -> `/mnt/usbstick/bootdisk/freedos.img' `./bootdisk/gag.img' -> `/mnt/usbstick/bootdisk/gag.img' `./bootdisk/grubdisk.img' -> `/mnt/usbstick/bootdisk/grubdisk.img' `./bootdisk/hdt.img' -> `/mnt/usbstick/bootdisk/hdt.img' `./bootdisk/memtestp' -> `/mnt/usbstick/bootdisk/memtestp' `./bootdisk/mhdd.img' -> `/mnt/usbstick/bootdisk/mhdd.img' `./bootdisk/ranish.img' -> `/mnt/usbstick/bootdisk/ranish.img' `./bootprog' -> `/mnt/usbstick/bootprog' `./bootprog/grub4dos-0.4.4.zip' -> `/mnt/usbstick/bootprog/grub4dos-0.4.4.zip' `./bootprog/syslinux-4.05.zip' -> `/mnt/usbstick/bootprog/syslinux-4.05.zip' `./isolinux' -> `/mnt/usbstick/isolinux' `./isolinux/altker32' -> `/mnt/usbstick/isolinux/altker32' `./isolinux/altker64' -> `/mnt/usbstick/isolinux/altker64' `./isolinux/boot.cat' -> `/mnt/usbstick/isolinux/boot.cat' `./isolinux/chain.c32' -> `/mnt/usbstick/isolinux/chain.c32' `./isolinux/f1boot.msg' -> `/mnt/usbstick/isolinux/f1boot.msg' `./isolinux/f2images.msg' -> `/mnt/usbstick/isolinux/f2images.msg' `./isolinux/f3params.msg' -> `/mnt/usbstick/isolinux/f3params.msg' `./isolinux/f4arun.msg' -> `/mnt/usbstick/isolinux/f4arun.msg' `./isolinux/f5troubl.msg' -> `/mnt/usbstick/isolinux/f5troubl.msg' `./isolinux/f6pxe.msg' -> `/mnt/usbstick/isolinux/f6pxe.msg' `./isolinux/f7net.msg' -> `/mnt/usbstick/isolinux/f7net.msg' `./isolinux/ifcpu64.c32' -> `/mnt/usbstick/isolinux/ifcpu64.c32' `./isolinux/initram.igz' -> `/mnt/usbstick/isolinux/initram.igz' `./isolinux/isolinux.bin' -> `/mnt/usbstick/isolinux/isolinux.bin' `./isolinux/isolinux.cfg' -> `/mnt/usbstick/isolinux/isolinux.cfg' `./isolinux/isolinux.old' -> `/mnt/usbstick/isolinux/isolinux.old' `./isolinux/kbdmap.c32' -> `/mnt/usbstick/isolinux/kbdmap.c32' `./isolinux/maps' -> `/mnt/usbstick/isolinux/maps' `./isolinux/maps/azerty.ktl' -> `/mnt/usbstick/isolinux/maps/azerty.ktl' `./isolinux/maps/be.ktl' -> `/mnt/usbstick/isolinux/maps/be.ktl' `./isolinux/maps/bg.ktl' -> `/mnt/usbstick/isolinux/maps/bg.ktl' `./isolinux/maps/by.ktl' -> `/mnt/usbstick/isolinux/maps/by.ktl' `./isolinux/maps/cf.ktl' -> `/mnt/usbstick/isolinux/maps/cf.ktl' `./isolinux/maps/croat.ktl' -> `/mnt/usbstick/isolinux/maps/croat.ktl' `./isolinux/maps/cz.ktl' -> `/mnt/usbstick/isolinux/maps/cz.ktl' `./isolinux/maps/de.ktl' -> `/mnt/usbstick/isolinux/maps/de.ktl' `./isolinux/maps/dk.ktl' -> `/mnt/usbstick/isolinux/maps/dk.ktl' `./isolinux/maps/dvorak.ktl' -> `/mnt/usbstick/isolinux/maps/dvorak.ktl' `./isolinux/maps/es.ktl' -> `/mnt/usbstick/isolinux/maps/es.ktl' `./isolinux/maps/et.ktl' -> `/mnt/usbstick/isolinux/maps/et.ktl' `./isolinux/maps/fi.ktl' -> `/mnt/usbstick/isolinux/maps/fi.ktl' `./isolinux/maps/fr.ktl' -> `/mnt/usbstick/isolinux/maps/fr.ktl' `./isolinux/maps/fr_CH.ktl' -> `/mnt/usbstick/isolinux/maps/fr_CH.ktl' `./isolinux/maps/genlist.sh' -> `/mnt/usbstick/isolinux/maps/genlist.sh' `./isolinux/maps/gr.ktl' -> `/mnt/usbstick/isolinux/maps/gr.ktl' `./isolinux/maps/hu.ktl' -> `/mnt/usbstick/isolinux/maps/hu.ktl' `./isolinux/maps/il.ktl' -> `/mnt/usbstick/isolinux/maps/il.ktl' `./isolinux/maps/it.ktl' -> `/mnt/usbstick/isolinux/maps/it.ktl' `./isolinux/maps/lt.ktl' -> `/mnt/usbstick/isolinux/maps/lt.ktl' `./isolinux/maps/mk.ktl' -> `/mnt/usbstick/isolinux/maps/mk.ktl' `./isolinux/maps/nl.ktl' -> `/mnt/usbstick/isolinux/maps/nl.ktl' `./isolinux/maps/no.ktl' -> `/mnt/usbstick/isolinux/maps/no.ktl' `./isolinux/maps/pl.ktl' -> `/mnt/usbstick/isolinux/maps/pl.ktl' `./isolinux/maps/ru.ktl' -> `/mnt/usbstick/isolinux/maps/ru.ktl' `./isolinux/maps/sg.ktl' -> `/mnt/usbstick/isolinux/maps/sg.ktl' `./isolinux/maps/slovene.ktl' -> `/mnt/usbstick/isolinux/maps/slovene.ktl' `./isolinux/maps/trf.ktl' -> `/mnt/usbstick/isolinux/maps/trf.ktl' `./isolinux/maps/trq.ktl' -> `/mnt/usbstick/isolinux/maps/trq.ktl' `./isolinux/maps/ua.ktl' -> `/mnt/usbstick/isolinux/maps/ua.ktl' `./isolinux/maps/uk.ktl' -> `/mnt/usbstick/isolinux/maps/uk.ktl' `./isolinux/maps/us.ktl' -> `/mnt/usbstick/isolinux/maps/us.ktl' `./isolinux/maps/wangbe.ktl' -> `/mnt/usbstick/isolinux/maps/wangbe.ktl' `./isolinux/memdisk' -> `/mnt/usbstick/isolinux/memdisk' `./isolinux/menu.c32' -> `/mnt/usbstick/isolinux/menu.c32' `./isolinux/netboot' -> `/mnt/usbstick/isolinux/netboot' `./isolinux/pxelinux.0' -> `/mnt/usbstick/isolinux/pxelinux.0' `./isolinux/reboot.c32' -> `/mnt/usbstick/isolinux/reboot.c32' `./isolinux/rescue64' -> `/mnt/usbstick/isolinux/rescue64' `./isolinux/rescuecd' -> `/mnt/usbstick/isolinux/rescuecd' `./isolinux/vesamenu.c32' -> `/mnt/usbstick/isolinux/vesamenu.c32' `./ntpasswd' -> `/mnt/usbstick/ntpasswd' `./ntpasswd/initrd.cgz' -> `/mnt/usbstick/ntpasswd/initrd.cgz' `./ntpasswd/scsi.cgz' -> `/mnt/usbstick/ntpasswd/scsi.cgz' `./ntpasswd/vmlinuz' -> `/mnt/usbstick/ntpasswd/vmlinuz' `./sysrcd.dat' -> `/mnt/usbstick/sysrcd.dat' `./sysrcd.md5' -> `/mnt/usbstick/sysrcd.md5' `./usb_inst' -> `/mnt/usbstick/usb_inst' `./usb_inst/dialog' -> `/mnt/usbstick/usb_inst/dialog' `./usb_inst/install-mbr' -> `/mnt/usbstick/usb_inst/install-mbr' `./usb_inst/mkfs.vfat' -> `/mnt/usbstick/usb_inst/mkfs.vfat' `./usb_inst/mtools' -> `/mnt/usbstick/usb_inst/mtools' `./usb_inst/parted' -> `/mnt/usbstick/usb_inst/parted' `./usb_inst/syslinux' -> `/mnt/usbstick/usb_inst/syslinux' `./usb_inst.sh' -> `/mnt/usbstick/usb_inst.sh' `./usbstick.htm' -> `/mnt/usbstick/usbstick.htm' `./version' -> `/mnt/usbstick/version' Files have been successfully copied to /dev/sdc1 syslinux has successfully prepared /dev/sdc1
アンマウント。
% cd % umount /mnt/cdrom
作成したUSBを使って起動。CD 起動以外ダメな場合を除けば USB スティックで事足りる。