DæmonNews: News and views for the BSD community

Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

Installing BSD on IBM Netvista S40 - Part 3: DragonFly Installation

By Micho Durdevich <micho@matem.unam.mx>

The procedure to prepare the bootable installation CD is virtually identical to FreeBSD 4.11. To boot the Netvista kernel from CD, exit to the loader prompt and then:

unload
boot kernel.ns40

For the sake of completeness, let us take an overview of a manual installation of DragonFly, which will use the whole hard disk space. More detailed explanations on installing DragonFly can be found in the DragonFly Handbook. We first initialize the MBR for a dedicated disk, and create the BSD slice with the appropriate disk label. As in the case of FreeBSD, we use the custom-prepared bootstraps, without any A20 subroutine.

fdisk -I ad0
disklabel -w -B -b /boot/boot1.ns40 -s /boot/boot2.ns40 ad0s1 auto
disklabel -e ad0s1

Here is a sample partition section of the label data:

    size  offset   fstype         [fsize     bsize     bsp/cpg]
a:  256m    0      4.2BSD           1024      8192        128
b:  512m    *      swap
c: <should be left as-it-is>
d:  256m    *      4.2BSD           1024      8192        128
e: 4096m    *      4.2BSD           2048     16384        128
f:     *    *      4.2BSD           2048     16384        128

Format the created partitions (-U turns the softupdates on):

newfs /dev/ad0s1a
newfs -U /dev/ad0s1d
newfs -U /dev/ad0s1e
newfs -U /dev/ad0s1f

Create the mount points and copy the relevant files from the installation CD:

mount /dev/ad0s1a /mnt
mkdir /mnt/var /mnt/usr /mnt/home

mount /dev/ad0s1d /mnt/var
mount /dev/ad0s1e /mnt/usr

cpdup -vvv / /mnt
cpdup -vvv /etc /mnt/etc
cpdup -vvv /dev /mnt/dev

cpdup -vvv /var /mnt/var
cpdup -vvv /usr /mnt/usr

The -vvv switch is used to display all objects as they are copied. Furthermore, we have to create the appropriate fstab file in /mnt/etc. The one associated to the above mentioned disklabel looks like:

# Device       Mountpoint      Fstype  Options         Dump    Pass#

/dev/ad0s1b      none           swap    sw              0       0
/dev/ad0s1a      /              ufs     rw              1       1
/dev/ad0s1d      /var           ufs     rw              2       2
/dev/ad0s1e      /usr           ufs     rw              2       2
/dev/ad0s1f      /home          ufs     rw              2       2

Finally, let us adjust our kernel so that the Netvista will boot properly by default.

cd /mnt
mv kernel kernel.ORIGINAL
mv kernel.ns40 kernel
rm boot/loader.conf

At this point the Netvista should be ready to happily boot the fresh DragonFly installation.

Google
Web daemonnews.org

More Articles
  • BSDCan 2006 Photos
  • AFS: network filesystem beyond NFS weaknesses
  • Mastering FreeBSD and OpenBSD Security
  • Installing BSD on IBM Netvista S40 - Part 2: FreeBSD Installation
  • Interview with Diego Petteno, Gentoo/*BSD developer
  • Installing BSD on IBM Netvista S40 - Part 1: FreeBSD Installation
  • Interview with Jan Schaumann
  • Interview with Theo de Raadt
  • Book Review: Virtualization with VMware ESX Server
  • Editorial: Not Quite Dead Yet
  • The Design of OpenBGPd
  • Interview with der Mouse
  • Letter to Steve Jobs
  • Interview with Manuel Bouyer on Xen
  • Apple and Open Source

  • Advertisements

    BSD News
  • Interviews with NetBSD developer Mouse and OpenBSD developer David Gwynne
  • Java 1.5 now on OpenBSD/amd64
  • FreeBSD Self-Hosting on 32-processor UltraSparc T1 hardware
  • Submit A News Item
  • CARP ported to NetBSD
  • End of life for the NetBSD 1.6 branch
  • FreeBSD 5.5-RC1 Available
  • May Newsletter
  • Intel PRO/Wireless 3945ABG support in OpenBSD



  • Author maintains all copyrights on this article.
    Images and layout Copyright © 1998-2006 Dæmon News. All Rights Reserved.