2013年6月21日金曜日

openbsd on usl-5p (initial Installation)

(1) Follow the installation instruction
Refer to ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/landisk/INSTALL.landisk

Here is the installation log

Notes:
(a) I was installing from version 4.6.
(b) dd the miniroot4.6.ff to the same CF that you will later install into.

(2) create user account and disable root ssh
Refer to http://www.openbsd101.com/tipstricks.html


# useradd -c "nobita kun" -s /bin/ksh -g users -d /home/nobita -m nobita
# usermod -G wheel nobita


(3) Backup OS using dump and ssh


root@:~# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/wd0a 2.9G 444M 2.4G 15% /
/dev/wd0e 281M 2.4M 265M 1% /var

root@:~# dump -0auf - /dev/wd0e | ssh xxx@192.168.1.109 "cat > /virtualbox/usl5p_var.dump"
DUMP: Date of this level 0 dump: Sun Jul 12 16:13:29 2009
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rwd0e (/var) to standard output
Password: DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 2512 tape blocks.
DUMP: Volume 1 started at: Sun Jul 12 16:13:32 2009
DUMP: dumping (Pass III) [directories]

DUMP: dumping (Pass IV) [regular files]
DUMP: 2779 tape blocks
DUMP: Date of this level 0 dump: Sun Jul 12 16:13:29 2009
DUMP: Volume 1 completed at: Sun Jul 12 16:13:41 2009
DUMP: Volume 1 took 0:00:09
DUMP: Volume 1 transfer rate: 308 KB/s
DUMP: Date this dump completed: Sun Jul 12 16:13:41 2009
DUMP: Average transfer rate: 308 KB/s
DUMP: level 0 dump on Sun Jul 12 16:13:29 2009
DUMP: DUMP IS DONE
root@:~# dump -0auf - /dev/wd0a | ssh xxx@192.168.1.109 "cat > /virtualbox/usl5p_root.dump"
DUMP: Date of this level 0 dump: Sun Jul 12 16:14:35 2009
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rwd0a (/) to standard output
DUMP: mapping (Pass I) [regular files]
Password:
DUMP: mapping (Pass II) [directories]
DUMP: estimated 456273 tape blocks.
DUMP: Volume 1 started at: Sun Jul 12 16:14:50 2009
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: 57.15% done, finished in 0:03
DUMP: 464373 tape blocks
DUMP: Date of this level 0 dump: Sun Jul 12 16:14:35 2009
DUMP: Volume 1 completed at: Sun Jul 12 16:23:45 2009
DUMP: Volume 1 took 0:08:55
DUMP: Volume 1 transfer rate: 867 KB/s
DUMP: Date this dump completed: Sun Jul 12 16:23:45 2009
DUMP: Average transfer rate: 867 KB/s
DUMP: level 0 dump on Sun Jul 12 16:14:35 2009
DUMP: DUMP IS DONE



Refer to Restore on how to restore from above backup

(4) mounting USB storage
Refer to http://www.openbsd101.com/tipstricks.html

End


;-)

0 件のコメント:

コメントを投稿