#contents
----
OpenBSD has a tool for burning CD-R/CD-RW, ''cdio'' utility.
OpenBSD has the utility for burning CD-R/CD-RW, called ''cdio''.

And FuguIta has a tool which whole FuguIta system into another USB frashdrive.

So, if you wish to have a USB frashdrive version of FuguIta,
So, if you wish to get a USB frashdrive version of FuguIta,
-First, create a FuguIta LiveCD.
-Next, boot that LiveCD, then create another USB version of Fuguita, using usbfadm utility on the LiveCD version FuguIta.

*Creating FuguIta LiveCD [#h0d93246]
-Download the ISO image of FuguIta from the site descripted above.
 ftp http://livecd-mirror.ebug.jp/LiveCD/FuguIta-4.X-20YYMMDDN.iso.gz
Note that the part ''YYMMDDN'' must be replaced with the version string of real ISO image.
-After decompression completed, burn that image into CD-R or CD-RW.
 gzip -d FuguIta-4.X-20YYMMDDN.iso.gz
 cdio -f /dev/cd0c blank   (blanking media, needed only for CD-RW)
 cdio -f /dev/cd0c tao FuguIta-4.X-20YYMMDDN.iso

*Creating FuguIta LiveUSB [#h1779af1]
//There are two ways to do it.
///
//''a: Using the provided image for USB flash drive'' ~
//By this procedure, fixed size of partitions (650MB for FuguIta's system, about //300MB for saving user's data) are set up.
//>
//-Download the image for USB flash drive
// ftp http://livecd-mirror.ebug.jp/LiveCD/FuguIta-4.X-20YYMMDDN.usbimg.gz
//-Decompressing that image, and write it into USB storage device.
// gzip -dc FuguIta-4.X-20YYMMDDN.usbimg.gz | dd of=/dev/rsd?c bs=16384k
///
//''b: Generate LiveUSB from LiveCD'' (after version FuguIta-4.6-201001232) ~
//By this procedure, the data partition will be automatically allocated. ~
//Also, you can specify its size.
//>
-First, create FuguIta LiveCD according above description, then run it.
-Login as root, then execute ''newdrive'' subcommand on the USB management tool ''usbfadm''.
 # usbfadm
 
 Welcome to usbfadm.
 USB flash drive maintenance tool for FuguIta
 
      Boot mode: manual
 
 Type ? for help.
 
 ? : ? --> newdrive
Scanning USB devices after pressing ENTER.
 Please make sure the device inserted.
 Then press ENTER --> 
Enter the device name of USB flash drive. ~
Contents of system log entries are displayed for your information;
 ==== FYI: sd[0-9] on syslog ================================
      1  sd0 at scsibus1 targ 1 lun 0: <TOSHIBA, TransMemory, PMAP>
      2  sd0: 961MB, 512 bytes/sec, 1968128 sec total
      3  sd1 at scsibus2 targ 1 lun 0: <Generic, USB CF Reader, 0.00>
      4  sd1: drive offline
      5  sd2 at scsibus2 targ 1 lun 1: <Generic, USB SD Reader, 0.00>
      6  sd2: drive offline
      7  sd3 at scsibus2 targ 1 lun 2: <Generic, Mini SD Reader, 0.00>
      8  sd3: drive offline
      9  sd4 at scsibus2 targ 1 lun 3: <Generic, USB MS Reader, 0.00>
     10  sd4: drive offline
     11  sd5 at scsibus2 targ 1 lun 4: <Generic, USB SM Reader, 0.00>
     12  sd5: 62MB, 512 bytes/sec, 128000 sec total
 ============================================================
 Enter name of device which FuguIta will be installed --> sd0
Enter ''y'' to set up FuguIta-bootable USB flash drive ((In case of enter ''n'', System of FuguIta will not be transferred to the drive, and only partition for saving user data will be set up)).
 Do you make this USB flash drive bootable? [y/n] -> y
After transferring the system, by specifying '*', the rest will be allocated as the partition which user will save his data.
 Enter size for saving User Data in MB (311MB free).
 '*' implies all --> *
Otherwise the numeric value should be entered as the size of saving data (MB) ~
Room not used as OpenBSD's area will be formatted as FAT. ~
For example;
 Enter size for saving User Data in MB (311MB free).
 '*' implies all --> 250
in case of this, 250MB is for saving data of FuguIta user.
and 61MB becomes FAT.
~
Finally, you'll be asked whether the device is that you really intend.
 ***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 BSD disklabel
 =
 1+0 records in
 1+0 records out
 1048576 bytes transferred in 0.099 secs (10562763 bytes/sec)
 
 ========================================
 = Setting up MBR
 =
 Writing MBR at offset 0.
 ...... continues ......
After this, formatting filesystems and copying system files are done.
Then FuguIta LiveUSB is completed.
*Booting FuguIta [#rba5c27f]
After booting from CD/USB,
some user inputs will be prompted;
 disks: *cd0a fd0 fd1 rd0 sd0
 Disk to boot FuguIta? [cd0a] ->
'*' means the device which stores FuguIta system
   user memory: 267927552 bytes
 mfs available: 10MB to 255MB
 [default: 127MB] -> 
Only entering "ENTER", half amount of attached memory is specified by default.
 set mfs size to default: 127MB
Choose the way of boot
 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 normal fresh boot mode|Like booting just after fresh install. Some parameters are needed to be entered manually. This is the standard fresh boot method.
:1 fresh boot with faster and less memory|Same as above. ~
But under /usr, all files and directories are ''read only''.
:2 ''everything on mfs'' mode (i.e. diskless mode)|Same as mode 0. ~
All files and directories will have copied on mfs. This mode requires about more than 650--700MB RAM.
:3 Restoring user data from USB flashdrive|After CD/USB boot, extract files which were stored in USB flash. (to be more described)
:4 Restoring user data from floppy disk|Same as above, but extracting from floppy disk. (to be more described)
:5 Interactive shell mode|After CD/USB boot, single user shell invoked. This is intended for system debug.

At first, you should enter mode 0 (recommended) or mode 1.
 Running manual setup.
 Copying system files to /mfs ... done
 Extracting symlinks from /mfs to /fuguita ... done
Choose keyboard type
 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
Enter root password twice
 Please wait.....
 Changing local password for root.
 New password:
 Retype new password:
Setting network parameters.
 host name (without domain) -> nimbus5
 
 IP version(s) to use [n, 4, 6 or 46]-> 46
 
 ==[ifconfig -a]=========================
 lo0: flags=8008<LOOPBACK,MULTICAST> mtu 33200
         priority: 0
         groups: lo
 ne3: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> 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 -> nimbus5.localnet
 
 for DNS servers;
  * up to three IPv4/IPv6 addresses, separated by spaces
  * just press ENTER for DHCP
  * "none" for not using DNS
 -> 192.168.18.254
 
 IPv4 addr of this host -> 192.168.18.25
 netmask                -> 255.255.255.0
 default route          -> 192.168.18.254
In above case;
-IPv4 was configured manually.
-IPv6 was set up as end node by automatic stateless configuration.

...then you will see a login prompt.
 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
....snip....
 starting network daemons: sshd rtsold sendmail inetd.
 starting local daemons:.
 standard daemons: cron.
 Sat May 29 06:19:13 JST 2010
 
 OpenBSD/i386 (nimbus5.localnet) (tty00)
 
 login: 
----
#topicpath


Front page   New Page list Search Recent changes   Help   RSS of recent changes