玄箱でNetBSDを動かす Trial-Pack > en

NetBSD trial-pack for KURO-BOX/LinkStation/TeraStation

(The status is "experimental". If you feel something wrong, please notify me. Thank you.)

Feature

  • It based on NetBSD 3.0.1.
  • It uses MDROOT (aka RAMDISK root filesystem).
    • You will not need to modify the partitions of your box.
    • Also you will not need to purchase an USB-memory.
  • The Serial-Console is not necessary.
    • It will get the IP-Address from DHCP.
    • Also it can use the IP-Address 192.168.200.200/24, or 192.168.200.210/24 statically.
      • *.200 is for LS1/KURO. *.210 is for LS-HG/KUROHG/TeraStation.
    • It can login with serial-console or telnet. The user is "root" and no password.
    • The ftpd is working.
      • It only can use with password, so you must set the password with "passwd" command.
    • There is many commands available. (See below)
      • "tcsh", "wget" is also available.
    • It can use installation of NetBSD onto your box.
    • It also can repair your NetBSD'ed box.

Download


Boot

  • On Linux, "insmod nbloader_v3.o kernel=netbsd.bin"
    • It is recommended that use of my boot selector. It can boot more safely than above.

Login

  • After booting up, you may access the box with serial-console or telnet.
    • The IP-Address is take from DHCP server of your network.
    • If you have not DHCP server, you must set your PC's address as (for example) 192.168.200.100/255.255.255.0, and telnet at 192.168.200.200 or 192.168.200.210.

How to shutdown/reboot

  • It may power-off with "shutdown -h now".
  • It also may reboot with "shutdown -r now".
  • Of course, it can use the "power button".

How to use ftpd.

  • Instantly, add password to "root" (take "passwd root").
  • Then you may login ftp with "root".

How to install NetBSD/sandpoint 3.1 onto your box with the "trial-pack"

(*CAUTION*) Backup your hard drive's entity before take these steps.
  • Boot with "trial-pack" kernel.
  • Create the NetBSD slice with "fdisk" command.
  • Create the NetBSD partitions with "disklabel" command.
  • Format partitions with "newfs" command.
  • Mount the partitions at "/mnt" with "mount" command.
    • It must keep the tree-structure. For example, "/mnt", "/mnt/var", "/mnt/usr", ...
  • Extract NetBSD/sandpoint 3.1 tarballs at "/mnt". At least, "base.tgz" and "etc.tgz" are needed.
    • To keep permissions/owners, it is needed that "tar" with "p" option ("tar zxvpf base.tgz").
  • Extract kuro_annex31.20061029.tar.bz2 at /mnt.
    • It must also use "p" option to tar command.
  • "cd /mnt/etc" and "sh MAKEDEV all".
  • Edit /mnt/etc/fstab to fit your partitions.
  • Edit /mnt/etc/rc.conf to fit your environments.

  • On Linux, take *normal* kernel from here and extract it.
  • It may boot with "insmod nbloader_v3.o kernel=netbsd.GENERIC3_1.20061029.bin cmdline=bootdev=wd0a".

  • If something wrong, take "trial-pack" kernel and solve the problem. Good luck!

Entity commands

# ls bin/
[          csh        ed         mkdir      rcmd       stty
cat        date       expr       mt         rcp        sync
chio       dd         hostname   mv         rm         systrace
chmod      df         kill       pax        rmdir      tar
cp         domainname ln         ps         sh         tcsh
cpio       echo       ls         pwd        sleep      test
# ls sbin/
atactl          fsck_ffs        mount_fdesc     newfs           routed
badsect         fsck_lfs        mount_ffs       newfs_lfs       rrestore
brconfig        fsck_msdos      mount_filecore  newfs_msdos     rtsol
ccdconfig       fsdb            mount_kernfs    nologin         savecore
cgdconfig       fsirand         mount_lfs       pfctl           scsictl
clri            halt            mount_mfs       pflogd          setkey
dhclient        ifconfig        mount_msdos     ping            shutdown
dhclient-script init            mount_nfs       ping6           slattach
disklabel       ipf             mount_ntfs      poweroff        swapctl
dkctl           ipppctl         mount_null      pppoectl        swapon
dmesg           lmcctl          mount_overlay   raidctl         sysctl
drvctl          mbrlabel        mount_portal    rcorder         tbrconfig
dump            mknod           mount_procfs    rdump           ttyflags
dump_lfs        modload         mount_ptyfs     rdump_lfs       tunefs
fastboot        modunload       mount_smbfs     reboot          umount
fasthalt        mount           mount_ufs       resize_lfs      veriexecctl
fdisk           mount_ados      mount_umap      restore         vinum
fsck            mount_cd9660    mount_union     rndctl          wdogctl
fsck_ext2fs     mount_ext2fs    newbtconf       route           wsconsctl
# ls usr/bin/
awk     chgrp   file    gunzip  kdump   less    passwd  vi
bunzip2 cmp     find    gzcat   ktrace  login   sed     wall
bzcat   du      ftp     gzip    ktruss  more    tr      wget
bzip2   env     grep    install ldd     page    tset    zcat
# ls usr/sbin/
chgrp        group        groupinfo    installboot  useradd      usermod
chroot       groupadd     groupmod     pwd_mkdb     userdel      vipw
dev_mkdb     groupdel     inetd        user         userinfo     vnconfig

Free size of the RAM disk

# df -ki /
Filesystem  1K-blocks      Used     Avail Capacity  iused    ifree  %iused  Mounted on
/dev/md0a       13999     13637       362    97%     2053      377    84%   /

Special thanks

  • Mr. Nijino-san
  • Guru of NetBSD/landisk


29936