Re: Booting Sun3/50 Diskless from Serving PC

David Johnson <[email protected]> Sat, 28 Feb 2009 15:56:21 -0600
Newsgroups gmane.os.netbsd.ports.sun3
Message-ID <[email protected]>
David,

I very much appreciate the help you have provided.  I'm beating the 
horse some more.  It now boots the kernel but is unable to nfs_mount the 
file systems.  My server, g21, is running netbsd3.1.  I'm working with 
Sun3 v 1.6.  This pre-built kernel seems to fit my meager 4MB RAM 
space.  I can no longer find this revision on the ftp sites.  The 
document "finishing up your installation, diskless NetBSD HOWTO suggests 
that NetBSD bootloader can load a netbsd.gz (zipped kernel) among a long 
list of possible file names.  This doesn't seem to work but the unzipped 
kernel with name netbsd works reliably.

I think my remaining problems are in my /etc/exports file and with 
mountd on the server and inability of the client to remote nfs mount the 
necessary file systems.

My /etc/exports file looks like this in accordance with the diskless 
HOWTO for netBSD and generates some errors:
//export/sun350/root   -maproot=root:wheel   sun350.grid.net
/export/sun350/swap -maproot=root:wheel    sun350.grid.net/
 -- Sun3/50 reports g21:/export/sun350/swap on /swap   no such file or 
directory then of course swapctl can turn swapping on

//export/sun350/usr  -maproot=nobody:nobody    sun350.grid.net/
-- server / mountd complains "line 4 can't change attributes for 
/export/sun350/usr to sun350"  operation not permitted
-- Sun/350 reports mount_nfs: can't access 'export/sun350/usr  
permission denied

//export/sun350/home -maproot=nobody:nobody    sun350.grid.net/
 -- server / mountd complains "line 4 can't change attributes for 
/export/sun350/home to sun350" operation not permitted
 -- Sun/350 reports mount_nfs: can't access 'export/sun350/home  
permission denied

I tried the -alldirs option but mountd complains about illegal flag option

//export/sun350/ -alldirs sun350.grid.net/         <-- mountd on server 
complains about illegal options, the docs don't show example

Do you have an example of an exports file that is of proper form?  Or 
alternately, what is wrong with my line here?  Why is the operation not 
permitted by mountd.  It stands to reason if it cant be mounted then the 
client won't be able to access it.

/export/sun350/usr  -maproot=nobody:nobody    sun350.grid.net

If anyone has some suggestions about how to clean up these problems, I 
think I will shortly be able to fully boot the old Sun3/50 with netbsd1.6.
Any further work with that box will depend on paring down one of the 
more recent releases for Sun3.

Thanks,
David
Birmingham, AL


David Brownlee wrote:
> On Fri, 27 Feb 2009, David Johnson wrote:
>
>> I think I'm almost there but still having a few problems:
>> [1] Server prints the following whenever I do a mount:
>> mountd[252]
>> export/sun350/usr -maproot, line 4 can't change attributes for 
>> /export/sun350/usr to sun350: operation not permitted
>> export/sun350/home -maproot, line 4 can't change attributes for 
>> /export/sun350/home to sun350: operation not permitted
>
>     You need a single line for the base mountpoint on the server, eg
>     '/' or '/export', with the option -alldirs
>
>> [2] Booting the Sun350 produces the following on the Sun 3/50 console:
>> b le(0,0,0)
>> boot: le(0,0,0)
>> using IP Address 192.168.2.100=C0A80264
>> booting from tftp server at 192.168.2.21=C0A80215
>> downloaded 23828 bytes from tftp server.
>>
>>>> NetBSD/Sun3 Netboot [1.12]
>> using IP Address 192.168.2.100=C0A80264
>> netboot trying netbsd                                
>> <<---------------- this is the netbsd-DISKLESS3X kernel gunzipped and 
>> renamed
>> 633160+129072 [64304+44051]=0xD4A80
>> starting program at 0x4000
>>
>> Exception 2C at 0004018                           <<----- All the 
>> action stops here
>
>     Aha - progress :)
>     netbsd-DISKLESS3X is for the sun3x architecture - sun3/80
>     You want the kernel without the 'X' :)
electronsciences.vcf (text/x-vcard, 184 B)
begin:vcard
fn:David W. Johnson
n:Johnson;David W.
email;internet:[email protected]
tel;work:205-602-4999
tel;cell:205-602-4999
x-mozilla-html:TRUE
version:2.1
end:vcard