freebsd pxeboot problem

2004-07-21 Thread Liam Hudson
Hi all,

  Am having trouble with pxeboot on freebsd 5.1. Am following procedure
at http://www.tnpi.biz/computing/freebsd/pxe-netboot.shtml (relevant bit
pasted at bottom). This procedure states to create an empty 25Mb file using
dd, make a fs out of it (disklabel/newfs/mdconfig), then rsync the contents
of mfsroot to this fs. This is then used as the rootfs on the pxeboot
client (set vfs.root.mountfrom=ufs:/dev/md0c). When I try this, the client
hangs forever on boot in loader.rc.

However, if I simply create a fs using mdconfig and use this on the client,
it boots to sysinstall ok (ie gunzip mfsroot.gz; mdconfig -a -t vnode -f
mfsroot -u0). I can even mount this fs before I pxeboot and put an
install.cfg file there. However, when the client reads it, it hangs when
trying to mount server:/usr/local/export/freebsd to install the
distribution (Mounting x.x.x.x:/usr/local/export/freebsd over NFS on
/dist).

I tried exporting the /usr without -ro but no difference. Suspect there is
no room on the mfsroot fs more mounting nfs (since I haven't got a 25Mb
file). Has anybody set this up before. I have seen somebody else had this
problem on freebsd list, but no response.

Any help would be appreciated. (Do I summarise back to this list?). Thanks


===


   cd /usr/local/export/pxe 
   dd if=/dev/zero of=mfsroot bs=1k count=25000 
   mdconfig -a -t vnode -f mfsroot -u0  
   disklabel -r -w md0 auto 
   newfs /dev/md0c  
   mkdir -p /mnt/mfs
   mount /dev/md0 /mnt/mfs  


 There, now we've got 25 megs of space mounted on /mnt to play with. The
 basic rule of thumb here to keep in mind is that you are building a root   
 file system for FreeBSD. Everything the kernel, sysinstall, and your   
 install programs needs from the root file system is what you need to have  
 in your /mnt directory. To get started we'll copy the contents of the  
 distribution mfsroot.flp to our new mfsroot:   


   mkdir /mnt/floppy
   mdconfig -a -t vnode -u 1 -f 
   /usr/local/export/freebsd5.1/floppies/mfsroot.flp
   mount /dev/md1 /mnt/floppy   
   cp /mnt/floppy/mfsroot.gz /tmp   
   umount /mnt/floppy   
   mdconfig -d -u 1 
   gunzip /tmp/mfsroot.gz   
   mdconfig -a -t vnode -u 1 -f /tmp/mfsroot
   mount /dev/md1 /mnt/floppy   
   rsync -avzH /mnt/floppy/ /mnt/mfs
   umount /mnt/floppy   
   mdconfig -d -u 1 









  

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


upgrading freebsd 4.5 to 4.7 with adaptec 2100s raid controller

2002-12-03 Thread Liam Hudson
Has anyone got a 2100s raid controller installed on a freebsd system. I
have got it working fine on freebsd 4.5 but when I try to upgrade to 4.7
the os no longer recognises it as a boot device and I have to boot off
/kernel.old.

My upgrade procedure is as follows, but it dies on the init 6. Any help
would really be appreciated:

  # cd /usr/src
  # cvsup supfile
  # make buildworld  make buildkernel KERNCONF=X330-SMP
  # make installkernel KERNCONF=X330-SMP
  # init 6
  # init 1
  # mount -u /  # make the root filesystem updatable
  # mount -a# mount the other filesystems
  # cd /usr/src
  # make installworld
  # mergemaster




  



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message