Subject: some boot problems
To: None <port-pmax@netbsd.org>
From: None <sonnie@ustc.edu>
List: port-pmax
Date: 09/14/2000 11:23:09
Hi,

    I choose OpenBSD-2.7/i386 as tftp/bootp server and nfs server, and want
to netboot decstation 5000/240.

** TFTP BOOT problem **

	# ls -lR /tftpboot
total 2
drwxr-xr-x  2 root  wheel  512 Sep 13 09:52 pmax/

/tftpboot/pmax:
total 6336
-rw-r--r--  1 root  wheel  3232752 Sep 13 09:51 install.ecoff

	# cat /etc/bootptab
.default:\
        :hd=/tftpboot/pmax/:\
        :bf=install.ecoff:\
        :hn:ip=202.38.89.87:\
        :ds=202.38.64.1:\
        :gw=202.38.89.254:\
        :sm=255.255.255.0:\
        :vm=rfc1048:\
        :rp=/export/DEC/:

dec:tc=.default:ht=ethernet:ha=08002b39c52f:ip=202.38.89.113:

    When I run `boot 3/tftp' from the prompt of DEC's console, it says:

	server err : 1 - 'File not found'

** NFS problem **

	# cat /etc/hosts
127.0.0.1 localhost
202.38.89.18 gate.kdlian.com gate
202.38.89.113 dec.fire.ustc.edu.cn dec

	# ls -ld /export
drwxr-xr-x  3 root  wheel  512 Sep 12 09:49 /export
	# ls -ld /export/DEC
drwxr-xr-x  16 root  wheel  512 Oct  8  1999 /export/DEC
	# ls -l /export/DEC
drwxr-xr-x   2 root  wheel       512 Mar  3  2000 altroot
drwxr-xr-x   2 root  wheel       512 Oct  8  1999 bin
-r-xr-xr-x   1 root  wheel     40148 Mar  4  2000 boot
drwxr-xr-x   3 root  wheel      5632 Oct  8  1999 dev
-rw-r--r--   1 root  wheel    610971 Sep 12 10:20 diskimage.tgz
drwxr-xr-x  10 root  wheel      1536 Oct  8  1999 etc
drwxr-xr-x   2 root  wheel       512 Mar  3  2000 home
drwxr-xr-x   2 root  wheel       512 Oct  8  1999 kern
drwxr-xr-x   2 root  wheel       512 Oct  8  1999 mnt
drwxr-xr-x   2 root  wheel       512 Oct  8  1999 mnt2
-rwxr-xr-x   1 root  wheel   2194132 Mar 15  2000 netbsd
drwxr-xr-x   2 root  wheel       512 Sep 12 10:01 root
drwxr-xr-x   2 root  wheel      1536 Oct  8  1999 sbin
drwxr-xr-x   2 root  wheel       512 Mar  3  2000 stand
-rw-r--r--   1 root  wheel  67108864 Sep 12 10:02 swap
-rwxr-xr-x  42 root  wheel   1822996 Oct  8  1999 sysinst
drwxr-xr-x   2 root  wheel       512 Oct  8  1999 tmp
drwxr-xr-x  13 root  wheel       512 Oct  8  1999 usr
drwxr-xr-x  19 root  wheel       512 Mar  3  2000 var

	# cat /etc/exports
/export/DEC            -maproot=root   dec.fire.ustc.edu.cn
/export/DEC/swap       -maproot=root   dec.fire.ustc.edu.cn
/export/DEC/usr                        dec.fire.ustc.edu.cn
/export/DEC/home                       dec.fire.ustc.edu.cn

The blanks in /etc/exports include both TABs and SPACEs.

	# /sbin/nfsd
	# /sbin/mountd

    There are error messages in /var/log/daemon:

Sep 14 11:11:57 apollo mountd[12108]: Can't change attributes for /export/DEC/sw
ap (dec.fire.ustc.edu.cn).
Sep 14 11:11:57 apollo mountd[12108]: Bad exports list entry (dec.fire.ustc.edu.cn) in line /export/DEC/swap    -maproot
Sep 14 11:11:57 apollo mountd[12108]: Can't change attributes for /export/DEC/us
r (dec.fire.ustc.edu.cn).
Sep 14 11:11:57 apollo mountd[12108]: Bad exports list entry (dec.fire.ustc.edu.cn) in line /export/DEC/usr                             dec.fire.ustc.edu.cn
Sep 14 11:11:57 apollo mountd[12108]: Can't change attributes for /export/DEC/home (dec.fire.ustc.edu.cn).
Sep 14 11:11:57 apollo mountd[12108]: Bad exports list entry (dec.fire.ustc.edu.cn) in line /export/DEC/home                    dec.fire.ustc.edu.cn
Sep 14 11:11:57 apollo mountd[12108]: Can't open /var/db/mountdtab: No such file or directory

    It seems that is something wrong with the entries in /etc/exports, but I 
can't handle it. Everything modified was from the homepage of NetBSD/pmax.