============================ ==== ==== ==== 河豚板の使用例 ==== ==== ==== ============================ ==== LiveCDの作成 ============================================================== $ ftp http://livecd-mirror.ebug.jp/LiveCD/FuguIta-4.6-201003131.iso.gz Trying 210.229.61.163... Requesting http://livecd-mirror.ebug.jp/LiveCD/FuguIta-4.6-201003131.iso.gz 100% |**************************************************| 256 MB 00:58 Successfully retrieved file. $ gzip -d FuguIta-4.6-201003131.iso.gz $ sudo cdio -v -f /dev/rcd0c tao FuguIta-4.6-201003131.iso We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. Password: track 01 'd' 00330945/00330945 100% Closing session. ==== LiveCDを起動 ============================================================== >> OpenBSD/i386 CDBOOT 2.02 boot> booting cd0a:/bsd-fi.mp: 8360276+1052016 [52+338320+321045]=0x99b014 entry point at 0x200120 [ using 659792 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2009 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 4.6-stable (RDROOT.MP) #5: Wed Feb 3 05:07:52 JST 2010 root@nimbus7.localnet:/opt/fi/4.6/sys/arch/i386/compile/RDROOT.MP cpu0: Intel Pentium II ("GenuineIntel" 686-class) 1.72 GHz cpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,PGE,CMOV,PAT,MMX,FXSR,SSE,SSE2,SSE3 real mem = 267939840 (255MB) avail mem = 248508416 (236MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 02/08/07, BIOS32 rev. 0 @ 0xfa0d0 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown pcibios0 at bios0: rev 2.1 @ 0xf0000/0x0 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfa3c0/128 (6 entries) pcibios0: PCI Interrupt Router at 000:01:0 ("Intel 82371SB ISA" rev 0x00) pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xc0000/0x8a00 cpu0 at mainbus0: (uniprocessor) pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02 pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00 pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility pciide0: channel 0 disabled (no drives) atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: ATAPI 5/cdrom removable cd0(pciide0:1:0): using PIO mode 0 uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: irq 9 piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x00: irq 11 iic0 at piixpm0 iic0: addr 0x18 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000 iic0: addr 0x1a 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000 iic0: addr 0x4c 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000 iic0: addr 0x4e 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000 vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ne3 at pci0 dev 3 function 0 "Realtek 8029" rev 0x00: irq 11, address 52:54:00:12:34:56 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo com0: console pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: density unknown fd1 at fdc0 drive 1: density unknown usb0 at uhci0: USB revision 1.0 uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 biomask ef6d netmask ef6d ttymask ffff nvram: invalid checksum rd0: fixed, 3800 blocks umass0 at uhub0 port 2 configuration 1 interface 0 "QEMU 0.9.1 QEMU USB HARDDRIVE" rev 1.00/0.00 addr 2 umass0: using SCSI over Bulk-Only scsibus1 at umass0: 2 targets, initiator 0 sd0 at scsibus1 targ 1 lun 0: SCSI3 0/direct fixed sd0: 1024MB, 512 bytes/sec, 2097152 sec total root on rd0a swap on rd0b dump on rd0b clock: unknown CMOS layout ============================================== = ______ __ _ = / ____/ | |_| |__ = / /____ ______ __ __| /_ _/_____ = / ___/ / / / __ \/ / / /| | | | / _ | = / / / /_/ / /_/ / /_/ / | | | |_| (_) |__ =/_/ \____/\__ /\____/ |__| \___/____/__/ = __/ / = /___/ = = Welcome to FuguIta - OpenBSD LiveCD! = http://kaw.ath.cx/openbsd/?en/LiveCD ============================================== # 河豚板のシステムが格納されたデバイスを選択 # 先頭に '*' がついているものが河豚板が検出されたデバイス disks: *cd0a fd0 fd1 rd0 sd0 Disk to boot FuguIta? [cd0a] -> # MFSサイズを指定 user memory: 267927552 bytes mfs available: 10MB to 255MB [default: 127MB] -> set mfs size to default: 127MB # ブートモードの選択 Select boot mode; 0: fresh boot (normal) 1: fresh boot (lower memory, faster boot than mode 0) 2: fresh boot (everything on mfs) 3: retrieve user data from USB flash memory 4: retrieve user data from floppy disk 5: interactive shell for debugging ->0 # 標準の初期ブート (モード0) を選択 Running manual setup. Copying system files to /mfs ... done Extracting symlinks from /mfs to /fuguita ... done # キーボードタイプの設定 Keyboard type; be be.swapctrlcaps br cf cf.nodead de de.nodead dk dk.nodead es fr fr.dvorak fr.swapctrlcaps fr.swapctrlcaps.dvorak hu it jp jp.swapctrlcaps la lt lv nl nl.nodead no no.nodead pl pt ru sf sf.nodead sg sg.nodead si sv sv.nodead tr tr.nodead ua uk us us.declk us.dvorak us.iopener us.swapctrlcaps us.swapctrlcaps.dvorak us.swapctrlcaps.iopener -> us kbd: keyboard mapping set to us # ルートパスワードの設定 Please wait ... Changing local password for root. New password: Retype new password: # ネットワークパラメータの設定 host name (without domain) -> fugu-demo IP version(s) to use [n, 4, 6 or 46]-> 4 ==[ifconfig -a]========================= lo0: flags=8008 mtu 33200 priority: 0 groups: lo ne3: flags=8822 mtu 1500 lladdr 52:54:00:12:34:56 priority: 0 media: Ethernet 10baseT full-duplex enc0: flags=0<> mtu 1536 priority: 0 ======================================== Available network interface(s): ne3 network interface to setup [ne3] -> FQDN of this host -> fugu-demo.localnet for DNS servers; * up to three IPv4/IPv6 addresses, separated by spaces * just press ENTER for DHCP * "none" for not using DNS -> # この例では、DHCPを指定 Generation of SSH and isakmpd keys take some time while booting. ======================================== Automatic boot in progress: starting file system checks. setting tty flags kbd: keyboard mapping set to us pf enabled machdep.allowaperture: 0 -> 2 machdep.userldt: 0 -> 1 starting network DHCPDISCOVER on ne3 to 255.255.255.255 port 67 interval 3 DHCPOFFER from 10.0.2.2 (52:54:00:12:35:02) DHCPREQUEST on ne3 to 255.255.255.255 port 67 DHCPACK from 10.0.2.2 (52:54:00:12:35:02) bound to 10.0.2.15 -- renewal in 43200 seconds. starting system logger starting initial daemons:. savecore: can't find device 17/1 checking quotas: done. building ps databases: kvm dev. clearing /tmp starting pre-securelevel daemons:. setting kernel security level: kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. ssh-keygen: generating new DSA host key... done. ssh-keygen: generating new RSA host key... done. ssh-keygen: generating new RSA1 host key... done. openssl: generating new isakmpd RSA key... done. starting network daemons: sendmail inetd sshd. starting local daemons:. standard daemons: cron. Tue Mar 30 22:48:14 JST 2010 OpenBSD/i386 (fugu-demo.localnet) (ttyC0) login: root Password: Last login: Tue Mar 30 22:48:28 on ttyC0 OpenBSD 4.6-stable (RDROOT.MP) #5: Wed Feb 3 05:07:52 JST 2010 Welcome to OpenBSD: The proactively secure Unix-like operating system. Please use the sendbug(1) utility to report bugs in the system. Before reporting a bug, please try to reproduce it with the latest version of the code. With bug reports, please try to ensure that enough information to reproduce the problem is enclosed, and if a known fix for it exists, include that as well. You have mail. # 起動が完了し、rootでのログインも成功 ==== システム管理の例 ========================================================== # NTPデーモンを次回起動時から有効にする # echo ntpd_flags= >> /etc/rc.conf.local # 新たにソフトウェアを導入してみる # pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/4.6/packages/i386/lftp-3.7.14.tgz lftp-3.7.14: complete # 新しいユーザアカウントの作成 # adduser Couldn't find /etc/adduser.conf: creating a new adduser configuration file Reading /etc/shells Enter your default shell: bash csh ksh nologin sh [ksh]: Your default shell is: ksh -> /bin/ksh Default login class: authpf daemon default staff [default]: Enter your default HOME partition: [/home]: Copy dotfiles from: /etc/skel no [/etc/skel]: Send message from file: /etc/adduser.message no [no]: Do not send message Prompt for passwords by default (y/n) [y]: Default encryption method for passwords: auto blowfish des md5 old [auto]: Use option ``-silent'' if you don't want to see all warnings and questions. Reading /etc/shells Check /etc/master.passwd Check /etc/group Ok, let's go. Don't worry about mistakes. There will be a chance later to correct any input. Enter username []: kaw Enter full name []: KAWAMATA Yoshihiro Enter shell bash csh ksh nologin sh [ksh]: Uid [1000]: Login group kaw [kaw]: Login group is ``kaw''. Invite kaw into other groups: guest no [no]: Login class authpf daemon default staff [default]: Enter password []: Enter password again []: Name: kaw Password: **** Fullname: KAWAMATA Yoshihiro Uid: 1000 Gid: 1000 (kaw) Groups: kaw Login Class: default HOME: /home/kaw Shell: /bin/ksh OK? (y/n) [y]: y Added user ``kaw'' Copy files from /etc/skel to /home/kaw Add another user? (y/n) [y]: n Goodbye! ==== USBメモリの管理 =========================================================== # USBメモリの初期化 # /boottmp/usbfadm Welcome to usbfadm. USB flash drive maintenance tool for FuguIta Boot mode: manual Type ? for help. ? : ? --> newdrive Please make sure the device inserted. Then press ENTER -> ==== FYI: sd[0-9] on syslog ================================ 1 sd0 at scsibus1 targ 1 lun 0: 2 sd0: 1024MB, 512 bytes/sec, 2097152 sec total ============================================================ Enter the name of device which FuguIta will be installed --> sd0 Disk: sd0 geometry: 130/255/63 [2097152 Sectors] Offset: 0 Signature: 0x0 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------------- 0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused Do you make this USB flash drive bootable? [y/n] -> n no FuguIta? system in the media, This is only for data store. Enter size for saving User Data in MB (1024MB free). '*' implies all --> * ***THIS IS THE LAST CHANCE*** If you type 'Y' now, all the data on sd0 will be lost. Are you sure to initialize sd0? [y/N] -> y ======================================== = Clearing MBR and BSD disklabel = 1+0 records in 1+0 records out 1048576 bytes transferred in 2.780 secs (377145 bytes/sec) ======================================== = Setting up MBR = Writing MBR at offset 0. ======================================== = Setting up disklabel and FFS partitions = Label editor (enter '?' for help at any prompt) > offset: [63] size: [2088387] FS type: [4.2BSD] > > No label changes. # /dev/rsd0c: type: SCSI disk: SCSI disk label: QEMU HARDDISK flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 130 total sectors: 2097152 # total bytes: 1024.0M rpm: 3600 interleave: 1 boundstart: 63 boundend: 2088450 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] c: 1024.0M 0 unused d: 1019.7M 63 4.2BSD 2048 16384 1 newfs: warning: changing optimization to space because minfree is less than 5% newfs: reduced number of fragments per cylinder group from 20880 to 20856 to enlarge last cylinder group /dev/rsd0d: 1019.7MB in 2088387 sectors of 512 bytes 101 cylinder groups of 10.18MB, 2607 blocks, 10432 inodes each super-block backups (for fsck -b #) at: 32, 20888, 41744, 62600, 83456, 104312, 125168, 146024, 166880, 187736, 208592, 229448, 250304, 271160, 292016, 312872, 333728, 354584, 375440, 396296, 417152, 438008, 458864, 479720, 500576, 521432, 542288, 563144, 584000, 604856, 625712, 646568, 667424, 688280, 709136, 729992, 750848, 771704, 792560, 813416, 834272, 855128, 875984, 896840, 917696, 938552, 959408, 980264, 1001120, 1021976, 1042832, 1063688, 1084544, 1105400, 1126256, 1147112, 1167968, 1188824, 1209680, 1230536, 1251392, 1272248, 1293104, 1313960, 1334816, 1355672, 1376528, 1397384, 1418240, 1439096, 1459952, 1480808, 1501664, 1522520, 1543376, 1564232, 1585088, 1605944, 1626800, 1647656, 1668512, 1689368, 1710224, 1731080, 1751936, 1772792, 1793648, 1814504, 1835360, 1856216, 1877072, 1897928, 1918784, 1939640, 1960496, 1981352, 2002208, 2023064, 2043920, 2064776, 2085632, ======================================== = Preparing partitions for user data = done. ======================================== = Checking filesystem consistency = ** /dev/rsd0d ** File system is already clean ** Last Mounted on /mnt ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 3 files, 3 used, 1822516 free (20 frags, 227812 blocks, 0.0% fragmentation) # 保存先のデバイスを指定 ? : ? --> target Searching USB flash drives Please make sure the device inserted. Then press ENTER -> +sd0d target device --> sd0d # 保存するデータの名称を設定 # 何も指定しないとデフォルト値としてこのホストのFQDNが使われる。 sd0d : ? --> saveas Name of saved data --> fugu-demo.localnet Your data will be saved as ``fugu-demo.localnet''. # データ保存の実行 sd0d : fugu-demo.localnet --> sync Sync current mfs as ``fugu-demo.localnet'' , OK? [y/N] -> y sending incremental file list created directory /mnt/livecd-config/fugu-demo.localnet ./ altroot/ etc/ etc/adduser.conf etc/adduser.message etc/anthy-conf etc/bgpd.conf etc/ccd.conf etc/changelist etc/chio.conf etc/csh.cshrc etc/csh.login etc/csh.logout etc/daily etc/dhclient.conf etc/dhcpd.conf etc/disktab etc/dumpdates etc/dvmrpd.conf etc/exports etc/fbtab --------(中略)-------- var/www/icons/small/sound.png var/www/icons/small/sound2.gif var/www/icons/small/sound2.png var/www/icons/small/tar.gif var/www/icons/small/tar.png var/www/icons/small/text.gif var/www/icons/small/text.png var/www/icons/small/transfer.gif var/www/icons/small/transfer.png var/www/icons/small/unknown.gif var/www/icons/small/unknown.png var/www/icons/small/uu.gif var/www/icons/small/uu.png var/www/logs/ var/www/users/ var/yp/ var/yp/Makefile.main var/yp/Makefile.main.dist var/yp/Makefile.yp var/yp/Makefile.yp.dist var/yp/README sent 17726347 bytes received 180756 bytes 6089.82 bytes/sec total size is 16678596 speedup is 0.93 # データの保存状況をチェック sd0d : fugu-demo.localnet --> info Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/sd0d 890M 25.2M 865M 3% 51539 1002091 5% /mnt scanning... 25.2M fugu-demo.localnet sd0d : fugu-demo.localnet --> bye Bye bye... ==== システムの再起動 ========================================================== # shutdown -r now Shutdown NOW! shutdown: [pid 14264] *** FINAL System shutdown message from root@fugu-demo.localnet *** System going down IMMEDIATELY # System shutdown time has arrived /etc/rc.shutdown in progress... /etc/rc.shutdown complete. # syncing disks... done rebooting... >> OpenBSD/i386 CDBOOT 2.02 boot> booting cd0a:/bsd-fi.mp: 8360276+1052016 [52+338320+321045]=0x99b014 entry point at 0x200120 [ using 659792 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2009 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 4.6-stable (RDROOT.MP) #5: Wed Feb 3 05:07:52 JST 2010 root@nimbus7.localnet:/opt/fi/4.6/sys/arch/i386/compile/RDROOT.MP cpu0: Intel Pentium II ("GenuineIntel" 686-class) 1.72 GHz cpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,PGE,CMOV,PAT,MMX,FXSR,SSE,SSE2,SSE3 real mem = 267939840 (255MB) avail mem = 248508416 (236MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 02/08/07, BIOS32 rev. 0 @ 0xfa0d0 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown pcibios0 at bios0: rev 2.1 @ 0xf0000/0x0 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfa3c0/128 (6 entries) pcibios0: PCI Interrupt Router at 000:01:0 ("Intel 82371SB ISA" rev 0x00) pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xc0000/0x8a00 cpu0 at mainbus0: (uniprocessor) pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02 pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00 pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility pciide0: channel 0 disabled (no drives) atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: ATAPI 5/cdrom removable cd0(pciide0:1:0): using PIO mode 0 uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: irq 9 piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x00: irq 11 iic0 at piixpm0 iic0: addr 0x18 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000 iic0: addr 0x1a 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000 iic0: addr 0x4c 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000 iic0: addr 0x4e 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000 vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ne3 at pci0 dev 3 function 0 "Realtek 8029" rev 0x00: irq 11, address 52:54:00:12:34:56 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo com0: console pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: density unknown fd1 at fdc0 drive 1: density unknown usb0 at uhci0: USB revision 1.0 uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 biomask ef6d netmask ef6d ttymask ffff nvram: invalid checksum rd0: fixed, 3800 blocks umass0 at uhub0 port 2 configuration 1 interface 0 "QEMU 0.9.1 QEMU USB HARDDRIVE" rev 1.00/0.00 addr 2 umass0: using SCSI over Bulk-Only scsibus1 at umass0: 2 targets, initiator 0 sd0 at scsibus1 targ 1 lun 0: SCSI3 0/direct fixed sd0: 1024MB, 512 bytes/sec, 2097152 sec total root on rd0a swap on rd0b dump on rd0b clock: unknown CMOS layout ============================================== = ______ __ _ = / ____/ | |_| |__ = / /____ ______ __ __| /_ _/_____ = / ___/ / / / __ \/ / / /| | | | / _ | = / / / /_/ / /_/ / /_/ / | | | |_| (_) |__ =/_/ \____/\__ /\____/ |__| \___/____/__/ = __/ / = /___/ = = Welcome to FuguIta - OpenBSD LiveCD! = http://kaw.ath.cx/openbsd/?en/LiveCD ============================================== # 先頭に '+' がついているものは河豚板のデータ保存用デバイス disks: *cd0a fd0 fd1 rd0 +sd0d Disk to boot FuguIta? [cd0a] -> user memory: 267927552 bytes mfs available: 10MB to 255MB [default: 127MB] -> set mfs size to default: 127MB to recover previous operations. Select boot mode; 0: fresh boot (normal) 1: fresh boot (lower memory, faster boot than mode 0) 2: fresh boot (everything on mfs) 3: retrieve user data from USB flash memory 4: retrieve user data from floppy disk 5: interactive shell for debugging ->3 # 今回はモード3を指定 # ...保存したデータを読み出して、起動処理を続行 # そのため、設定値の入力は促されない /dev/sd0d : available configs; fugu-demo.localnet config name -> fugu-demo.localnet Copying files from flash to mfs ... pax: /mfs/./var/cron/tabs/.sock skipped. Sockets cannot be copied or extracted pax: /mfs/./var/empty/dev/log skipped. Sockets cannot be copied or extracted pax: /mfs/./var/www/dev/log skipped. Sockets cannot be copied or extracted done ======================================== Automatic boot in progress: starting file system checks. setting tty flags kbd: keyboard mapping set to us pf enabled machdep.allowaperture: 0 -> 2 machdep.userldt: 0 -> 1 starting network DHCPREQUEST on ne3 to 255.255.255.255 port 67 DHCPACK from 10.0.2.2 (52:54:00:12:35:02) bound to 10.0.2.15 -- renewal in 43200 seconds. starting system logger starting initial daemons: ntpd. savecore: can't find device 17/1 checking quotas: done. building ps databases: kvm dev. clearing /tmp starting pre-securelevel daemons:. setting kernel security level: kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sendmail inetd sshd. starting local daemons:. standard daemons: cron. Wed Mar 31 01:01:04 JST 2010 OpenBSD/i386 (fugu-demo.localnet) (ttyC0) login: root Password: Last login: Tue Mar 30 22:49:00 on ttyC0 OpenBSD 4.6-stable (RDROOT.MP) #5: Wed Feb 3 05:07:52 JST 2010 Welcome to OpenBSD: The proactively secure Unix-like operating system. Please use the sendbug(1) utility to report bugs in the system. Before reporting a bug, please try to reproduce it with the latest version of the code. With bug reports, please try to ensure that enough information to reproduce the problem is enclosed, and if a known fix for it exists, include that as well. You have mail. # ps ax PID TT STAT TIME COMMAND 1 ?? Is 0:00.13 /sbin/init 13635 ?? Ss 0:03.28 /fuguita/sbin/mount_mfs -o rw,async -b 4096 -f 512 -i 5983 ?? Is 0:00.01 dhclient: ne3 (dhclient) 29341 ?? Is 0:00.11 syslogd: [priv] (syslogd) 28280 ?? S 0:00.25 syslogd -a /var/www/dev/log -a /var/empty/dev/log 22764 ?? Is 0:00.11 pflogd: [priv] (pflogd) 2985 ?? S 0:00.04 pflogd: [running] -s 116 -i pflog0 -f /var/log/pflog 2383 ?? Is 0:00.02 ntpd: [priv] (ntpd) 30562 ?? S 0:00.22 ntpd: ntp engine (ntpd) 22567 ?? I 0:00.24 ntpd: dns engine (ntpd) 32153 ?? Is 0:00.12 inetd 21184 ?? Is 0:00.12 /usr/sbin/sshd 19523 ?? Ss 0:00.14 sendmail: accepting connections (sendmail) 31625 ?? Is 0:00.20 cron 15524 00- I 0:00.07 dhclient: ne3 [priv] (dhclient) 13421 00 Ss 0:00.81 -ksh (ksh) 18378 00 R+/0 0:00.00 ps -ax 24081 C0 Is+ 0:00.10 /usr/libexec/getty std.9600 ttyC0 16700 C1 Is+ 0:00.11 /usr/libexec/getty std.9600 ttyC1 12801 C2 Is+ 0:00.17 /usr/libexec/getty std.9600 ttyC2 6257 C3 Is+ 0:00.10 /usr/libexec/getty std.9600 ttyC3 25376 C5 Is+ 0:00.10 /usr/libexec/getty std.9600 ttyC5 # 前回設定したため、NTPデーモンが有効となっている # exit OpenBSD/i386 (fugu-demo.localnet) (ttyC0) login: kaw Password: OpenBSD 4.6-stable (RDROOT.MP) #5: Wed Feb 3 05:07:52 JST 2010 Welcome to OpenBSD: The proactively secure Unix-like operating system. Please use the sendbug(1) utility to report bugs in the system. Before reporting a bug, please try to reproduce it with the latest version of the code. With bug reports, please try to ensure that enough information to reproduce the problem is enclosed, and if a known fix for it exists, include that as well. # 前回作成したユーザアカウントも復帰した。 $ lftp ftp://ftp.openbsd.org/ cd ok, cwd=/ lftp ftp.openbsd.org:/> ls total 8 drwxr-xr-x 2 0 0 512 May 4 2009 etc drwxr-xr-x 3 0 0 512 Jul 21 2009 pub lftp ftp.openbsd.org:/> cd pub/OpenBSD/4.6 cd ok, cwd=/pub/OpenBSD/4.6 lftp ftp.openbsd.org:/pub/OpenBSD/4.6> dir total 496240 -rw-r--r-- 1 0 0 25908 Oct 15 09:48 ANNOUNCEMENT drwxr-xr-x 2 0 0 1024 Mar 1 04:05 Changelogs -rw-r--r-- 1 0 0 2279 Jul 28 2009 HARDWARE -rw-r--r-- 1 0 0 3488 Jul 28 2009 PACKAGES -rw-r--r-- 1 0 0 2375 Jul 28 2009 PORTS -rw-r--r-- 1 0 0 6946 Jul 28 2009 README drwxr-xr-x 2 0 0 512 Mar 1 04:05 alpha drwxr-xr-x 2 0 0 512 Mar 1 04:05 amd64 drwxr-xr-x 2 0 0 512 Mar 1 04:05 armish -rw-r--r-- 1 0 0 10608 Jan 1 04:05 ftplist drwxrwxr-x 2 0 0 512 Mar 1 04:05 hp300 drwxr-xr-x 2 0 0 512 Mar 1 04:05 hppa drwxr-xr-x 2 0 0 1024 Mar 1 04:05 i386 drwxr-xr-x 2 0 0 1024 Mar 1 04:05 landisk drwxrwxr-x 3 0 0 512 Mar 1 04:05 mac68k drwxr-xr-x 2 0 0 512 Mar 1 04:05 macppc drwxr-xr-x 2 0 0 512 Mar 1 04:05 mvme68k drwxrwxr-x 2 0 0 512 Mar 1 04:05 mvme88k drwxr-xr-x 13 0 0 512 Mar 1 04:05 packages -rw-r--r-- 1 0 0 16551066 Jul 13 2009 ports.tar.gz -rw-r--r-- 1 0 0 4522 Jul 7 2009 root.mail drwxr-xr-x 2 0 0 512 Mar 1 04:05 sgi drwxr-xr-x 2 0 0 512 Mar 1 04:05 socppc drwxr-xr-x 2 0 0 1024 Mar 1 04:05 sparc drwxr-xr-x 2 0 0 1024 Mar 1 04:05 sparc64 -rw-r--r-- 1 0 0 114693238 Jul 13 2009 src.tar.gz -rw-r--r-- 1 0 0 19694753 Jul 13 2009 sys.tar.gz drwxr-xr-x 3 0 0 512 Mar 1 04:05 tools drwxr-xr-x 2 0 0 512 Mar 1 04:05 vax -rw-r--r-- 1 0 0 102857736 Jul 13 2009 xenocara.tar.gz drwxr-xr-x 2 0 0 512 Mar 1 04:05 zaurus lftp ftp.openbsd.org:/pub/OpenBSD/4.6> bye # 追加インストールした lftp も使用可能 $ exit OpenBSD/i386 (fugu-demo.localnet) (ttyC0) login: root Password: Last login: Wed Mar 31 01:01:39 on ttyC0 OpenBSD 4.6-stable (RDROOT.MP) #5: Wed Feb 3 05:07:52 JST 2010 Welcome to OpenBSD: The proactively secure Unix-like operating system. Please use the sendbug(1) utility to report bugs in the system. Before reporting a bug, please try to reproduce it with the latest version of the code. With bug reports, please try to ensure that enough information to reproduce the problem is enclosed, and if a known fix for it exists, include that as well. You have mail. ==== usbfadmを使用して再度保存を実行 =========================================== # /boottmp/usbfadm Welcome to usbfadm. USB flash drive maintenance tool for FuguIta Boot mode: usbflash Data stored in: /dev/sd0d Data Saved as: fugu-demo.localnet Type ? for help. sd0d : fugu-demo.localnet --> sync Sync current mfs as ``fugu-demo.localnet'' , OK? [y/N] -> y sending incremental file list etc/ etc/fstab etc/resolv.conf etc/resolv.conf.save home/kaw/ home/kaw/.lftp/ home/kaw/.lftp/cwd_history home/kaw/.lftp/rl_history root/.sh_history tmp/ var/cron/log var/cron/tabs/ var/db/dhclient.leases.ne3 var/db/host.random var/empty/dev/ var/log/authlog var/log/daemon var/log/lastlog var/log/maillog var/log/messages var/log/wtmp var/run/ var/run/cron.pid var/run/dev.db var/run/dmesg.boot var/run/inetd.pid var/run/ld.so.hints var/run/pflogd.pid var/run/sendmail.pid var/run/sshd.pid var/run/syslog.pid var/run/utmp var/tmp/ var/www/dev/ sent 3794554 bytes received 4540 bytes 2492.03 bytes/sec total size is 16959620 speedup is 4.46 sd0d : fugu-demo.localnet --> bye Bye bye... # exit OpenBSD/i386 (fugu-demo.localnet) (ttyC0) login: ==== 使用例ここまで ==================================================