Hi, I'm trying to install FreeBSD 6.0 to a sub-notebook without floppy or optical unit. First I tried to install FreeBSD to a USB memory stick, boot notebook from there and do sysinstall on a local drive. It didn't work. I was able to partition the drive but couldn't write any data. Sysinstall installed everything back to the memory stick no matter what. Now I'm doing it with PXE, but the problem is basically the same. I'm missing something but don't know what. There are some PXE tutorials but they're based on extracting files from 4.0 floppy images (kern.flp and mfsroot.flp). I tried to follow the spirit and did a PXE boot from the installation CD (6.0-RELEASE-i386-bootonly.iso) files. It started well, displayed the FreeBSD boot menu, listed devices, mounted NFS share and finally crashed with: Lookup of /dev for devfs, error 2 init:not found in path ... panic: no init Please give me a hand, I'm playing with this for whole week. -- Regards, Karel Miklav
Karel, Have you been to http://people.freebsd.org/~alfred/pxe/en_US.ISO8859-1/articles/pxe/article.html ? Last I messed with PXE some years back, this was the deal. :) Also, I recently read that the newest Dragonfly CD booted into a live filesystem, and could set up a PXE boot server. Sounds awfully nice to me, and even if you're not looking for Dragonfly, that CD might give you a good example on how to set up PXE boot on a FreeBSD-like system. Cheers, -danny -- http://dannyman.toldme.com/
On 1/19/06, Karel Miklav <karel.miklav@siol.net> wrote:> Hi, > > I'm trying to install FreeBSD 6.0 to a sub-notebook without > floppy or optical unit. First I tried to install FreeBSD to > a USB memory stick, boot notebook from there and do sysinstall > on a local drive. It didn't work. I was able to partition > the drive but couldn't write any data. Sysinstall installed > everything back to the memory stick no matter what. > > Now I'm doing it with PXE,If you can boot from the usb drive, why not do a bit of a brutish install: dd if=/dev/zero of=/dev/ad0 bs=1024k count=10 bsdlabel -Bw ad0 (or whatever your internal disk is) bsdlabel -e ad0 (edit partition entries here) newfs -U -O2 /dev/ad0a (and others) swapon /dev/ad0b mount /dev/ad0a /mnt mount /dev/ad0d /mnt/var (and so on) pax -r -w -p e -X /* /mnt (might want to man pax) ditto for subdirs if they're not all on the same device edit your fstab to reflect changes and reboot? Did I miss a bunch of stuff?
* Karel Miklav <karel.miklav@siol.net> [20060120 03:34]:> I tried to follow the spirit and did a PXE boot from the installation > CD (6.0-RELEASE-i386-bootonly.iso) files. It started well, displayed > the FreeBSD boot menu, listed devices, mounted NFS share and finally > crashed with: > > Lookup of /dev for devfs, error 2 > init:not found in path ... > panic: no init > > Please give me a hand, I'm playing with this for whole week.I've succesfully installed PXE booting from the release discs. You need to setup a TFTP server (which you probably already have), a DHCP server and an NFS server. Details of my setup are: #in dhcpd.conf subnet 192.168.124.0 netmask 255.255.255.0 { filename "/boot/pxeboot"; option root-path "192.168.124.1:/tftpboot"; next-server 192.168.124.1; range 192.168.124.64 192.168.124.127; } 515,p1,0$ grep ^tftp /etc/inetd.conf tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot 506,p1,0$ ls -l /tftpboot lrwxr-xr-x 1 root wheel 4 Oct 29 14:20 /tftpboot -> /mnt 507,p1,0$ mount |grep mnt /dev/vn0 on /mnt (cd9660, NFS exported, local, read-only) 513,p1,0$ grep mnt /etc/exports /mnt -alldirs -ro -network 192.168.124.0 -mask 255.255.255.0 192.168.124.1 With this setup I boot into the live CD, and from there I use the install.sh scripts to copy the distribution. qvb -- pica
On Fri, 2006-01-20 at 03:36 +0100, Karel Miklav wrote:> Hi, > > I'm trying to install FreeBSD 6.0 to a sub-notebook without > floppy or optical unit.> Please give me a hand, I'm playing with this for whole week. >nice game aint it? sure of your friends is tcpdump :) steps to follow (more below), create: 1 pxeboot 2 exports a nfs bootdir 3 populate bootdir 4 config dhcpd.conf 5 add hosts to dns or /etc/hosts 6 proper config for the bootdir 1. pxe mkdir /tftboot cp /boot/pxeboot /tftboot/ change in /etc/inetd.conf (remove #) #tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot to tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot /etc/rc.d/inetd restart 2. exports a nfs bootdir add this line to /etc/exports /usr/ -maproot=0 -alldirs add to /etc/rc.conf: rpcbind_enable="yes" nfs_server_enable="yes" reboot (or restart this services nfsd mountd) 3. populate bootdir cd /usr/src make buildworld make buildkernel make installworld DESTDIR=/usr/bootdir make distribution DESTDIR=/usr/bootdir make installkernel DESTDIR=/usr/bootdir 4. add someting like this to your /usr/local/etc/dhcpd.conf host workstation { hardware ethernet 00:13:d4:22:69:0c; fixed-address 192.168.1.6; filename "pxeboot"; option root-path "192.168.1.2:/usr/workstation"; option domain-name "martenvijn.nl"; option domain-name-servers 192.168.1.2; } change the ipnumbers for your ipspace, macaddress and local config sh /usr/local/etc/rc.d/isc-dhcpd.sh restart 5. in the hostfiles in /etc/hosts and /bootdir/etc/hosts 192.168.1.6 bert 192.168.1.2 ernie I use dns for this. 6. in /usr/bootdir/etc/rc.conf hostname="workstation.martenvijn.nl" rpcbind_enable="yes" nfs_client_enable="yes" populate_var="yes" in /usr/bootdir/etc/fstab 192.168.1.2:/usr/bootdir / nfs rw,soft,lockd 0 0 md /var mfs rw,-s64m,-M 2 0 md /tmp mfs rw,-s64m,-M 2 0 This should be it. boot laptop and run sysinstall. Note: This not a very secure setup, cheers Marten> -- > > Regards, > Karel Miklav > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
On Fri, 2006-01-20 at 03:36 +0100, Karel Miklav wrote:> Hi, > > I'm trying to install FreeBSD 6.0 to a sub-notebook without > floppy or optical unit. > <cut> > > Please give me a hand, I'm playing with this for whole week. >nice game aint it? sure of your friends is tcpdump :) steps to follow (more below), create: 1 pxeboot 2 exports a nfs bootdir 3 populate bootdir 4 config dhcpd.conf 5 add hosts to dns or /etc/hosts 6 proper config for the bootdir 1. pxe mkdir /tftboot cp /boot/pxeboot /tftboot/ change in /etc/inetd.conf (remove #) #tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot to tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot /etc/rc.d/inetd restart 2. exports a nfs bootdir add this line to /etc/exports /usr/ -maproot=0 -alldirs add to /etc/rc.conf: rpcbind_enable="yes" nfs_server_enable="yes" reboot (or restart this services nfsd mountd) 3. populate bootdir cd /usr/src make buildworld make buildkernel make installworld DESTDIR=/usr/bootdir make distribution DESTDIR=/usr/bootdir make installkernel DESTDIR=/usr/bootdir 4. add someting like this to your /usr/local/etc/dhcpd.conf host workstation { hardware ethernet 00:13:d4:22:69:0c; fixed-address 192.168.1.6; filename "pxeboot"; option root-path "192.168.1.2:/usr/workstation"; option domain-name "martenvijn.nl"; option domain-name-servers 192.168.1.2; } change the ipnumbers for your ipspace, macaddress and local config sh /usr/local/etc/rc.d/isc-dhcpd.sh restart 5. in the hostfiles in /etc/hosts and /bootdir/etc/hosts 192.168.1.6 bert 192.168.1.2 ernie I use dns for this. 6. in /usr/bootdir/etc/rc.conf hostname="workstation.martenvijn.nl" rpcbind_enable="yes" nfs_client_enable="yes" populate_var="yes" in /usr/bootdir/etc/fstab 192.168.1.2:/usr/bootdir / nfs rw,soft,lockd 0 0 md /var mfs rw,-s64m,-M 2 0 md /tmp mfs rw,-s64m,-M 2 0 This should be it. boot laptop and run sysinstall. Note: This not a very secure setup, cheers Marten
> On Fri, 2006-01-20 at 03:36 +0100, Karel Miklav wrote: > > Hi, > > > > I'm trying to install FreeBSD 6.0 to a sub-notebook without > > floppy or optical unit. > > > Please give me a hand, I'm playing with this for whole week. > > > nice game aint it? sure of your friends is tcpdump :) > > > steps to follow (more below), create: > > 1 pxeboot > 2 exports a nfs bootdir > 3 populate bootdir > 4 config dhcpd.conf > 5 add hosts to dns or /etc/hosts > 6 proper config for the bootdir > > 1. pxe > > mkdir /tftboot > cp /boot/pxeboot /tftboot/ > change in /etc/inetd.conf (remove #) > > #tftp dgram udp wait root /usr/libexec/tftpd > tftpd -l -s /tftpboot > to > tftp dgram udp wait root /usr/libexec/tftpd > tftpd -l -s /tftpboot > > /etc/rc.d/inetd restart > > 2. exports a nfs bootdir > > add this line to /etc/exports > > /usr/ -maproot=0 -alldirs >this should be more secure: /usr -ro -maproot=root -alldirs ... danny