Re: How to create a FreeBSD 8.0 boot CD without boot.flp?
On 10/02/2010 11:10 μ.μ., Pierre-Luc Drouin wrote: Hi, I would like to create a boot CD using FreeBSD 8.0 but I just noticed that there is no existing boot.flp file for 8.0. What is the alternative to get a boot image to create my CD image? Thanks! You just use the boot/cdboot file from the official CD/DVD, like this (to write to a DVD) growisofs -Z /dev/cd0 -speed 16 -J -R -no-emul-boot -b boot/cdboot -iso-level 3 path-to-your-files or use mkisofs with similar options to write an iso image, i.e. mkisofs -J -R -no-emul-boot -b boot/cdboot -iso-level 3 -o /path/to/your.iso path-to-your-files ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to create a FreeBSD 8.0 boot CD without boot.flp?
Great Thanks! So when I create a boot CD using the boot image, are the kernel files contained in /boot/kernel read at all during boot? Manolis Kiagias wrote: On 10/02/2010 11:10 μ.μ., Pierre-Luc Drouin wrote: Hi, I would like to create a boot CD using FreeBSD 8.0 but I just noticed that there is no existing boot.flp file for 8.0. What is the alternative to get a boot image to create my CD image? Thanks! You just use the boot/cdboot file from the official CD/DVD, like this (to write to a DVD) growisofs -Z /dev/cd0 -speed 16 -J -R -no-emul-boot -b boot/cdboot -iso-level 3 path-to-your-files or use mkisofs with similar options to write an iso image, i.e. mkisofs -J -R -no-emul-boot -b boot/cdboot -iso-level 3 -o /path/to/your.iso path-to-your-files ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to create a FreeBSD 8.0 boot CD without boot.flp?
On Wed, 10 Feb 2010 23:35:17 +0200, Manolis Kiagias son...@otenet.gr wrote: On 10/02/2010 11:10 μ.μ., Pierre-Luc Drouin wrote: I would like to create a boot CD using FreeBSD 8.0 but I just noticed that there is no existing boot.flp file for 8.0. What is the alternative to get a boot image to create my CD image? You just use the boot/cdboot file from the official CD/DVD, like this (to write to a DVD) FWIW, cdboot is also available at /boot of an already installed system and it's built as part of the buildworld process, so you don't really need to download a CD or DVD image to get it: % ls -l /boot/cd* -r--r--r-- 1 root wheel 1201 Feb 6 01:33 /boot/cdboot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to create a FreeBSD 8.0 boot CD without boot.flp?
I just realized that cdboot does not contain the kernel as boot.flp used to, so I guess /boot/kernel has to be there... So it does not seem to work with mkisofs. I did mkisofs -J -R -no-emul-boot -b ./cdboot -iso-level 3 -V FreeBSD_Custom -o custom_FreeBSD_8_0_i386_cd.iso custom_FreeBSD_8_0_i386_cd and it throws: mkisofs: Uh oh, I cant find the boot image './cdboot' I tried with the absolute path for cdboot and it does not help either. From the mkisofs man page it says that -no-emul-boot has to be added if the size of the image file is not 1200, 1440, or 2880 kB. I noticed that the cdboot file is only 1.2 kB, so I guess -no-emul-boot is required... Do you have an idea what could be wrong? Thanks! Pierre-Luc Drouin wrote: Great Thanks! So when I create a boot CD using the boot image, are the kernel files contained in /boot/kernel read at all during boot? Manolis Kiagias wrote: On 10/02/2010 11:10 μ.μ., Pierre-Luc Drouin wrote: Hi, I would like to create a boot CD using FreeBSD 8.0 but I just noticed that there is no existing boot.flp file for 8.0. What is the alternative to get a boot image to create my CD image? Thanks! You just use the boot/cdboot file from the official CD/DVD, like this (to write to a DVD) growisofs -Z /dev/cd0 -speed 16 -J -R -no-emul-boot -b boot/cdboot -iso-level 3 path-to-your-files or use mkisofs with similar options to write an iso image, i.e. mkisofs -J -R -no-emul-boot -b boot/cdboot -iso-level 3 -o /path/to/your.iso path-to-your-files ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to create a FreeBSD 8.0 boot CD without boot.flp?
On 10/02/2010 11:39 μ.μ., Pierre-Luc Drouin wrote: Great Thanks! So when I create a boot CD using the boot image, are the kernel files contained in /boot/kernel read at all during boot? How exactly are you creating your image? The basic directories in a FreeBSD install iso are 'boot' (containing the kernel that will be used for the CD boot) and a directory with the name of the release e.g. 7.2-RELEASE. If you wish to include packages they should be in a 'packages' directory on the root of the CD. If live functionality is required (FreeBSD livefs CD) there are more directories, essentially resembling the structure of an installed base system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to create a FreeBSD 8.0 boot CD without boot.flp?
On 10/02/2010 11:56 μ.μ., Pierre-Luc Drouin wrote: I just realized that cdboot does not contain the kernel as boot.flp used to, so I guess /boot/kernel has to be there... So it does not seem to work with mkisofs. I did mkisofs -J -R -no-emul-boot -b ./cdboot -iso-level 3 -V FreeBSD_Custom -o custom_FreeBSD_8_0_i386_cd.iso custom_FreeBSD_8_0_i386_cd and it throws: mkisofs: Uh oh, I cant find the boot image './cdboot' I tried with the absolute path for cdboot and it does not help either. From the mkisofs man page it says that -no-emul-boot has to be added if the size of the image file is not 1200, 1440, or 2880 kB. I noticed that the cdboot file is only 1.2 kB, so I guess -no-emul-boot is required... Do you have an idea what could be wrong? Thanks! No need to specify an absolute path - the path you are using for the files is used. Here is another example: Assuming your files are in my_cd_files (and there is a boot/cdboot directory structure in there): mkisofs -J -R -no-emul-boot -b boot/cdboot -iso-level 3 -V FreeBSD_Custom -o custom-freebsd.iso my_cd_files or you could even do: cd my_cd_files mkisofs -J -R -no-emul-boot -b boot/cdboot -iso-level 3 -V FreeBSD_Custom -o ../custom-freebsd.iso . (note the dot at the end) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to create a FreeBSD 8.0 boot CD without boot.flp?
What I am trying to do is basically to install FreeBSD 8.0 on a CD. I followed these instructions to install FreeBSD on a USB stick: http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb-stick-episode-2 minus the fdisk/bsdlabel/newfs part . I just set up rc.conf to configure the ethernet interface with DHCP and load sshd then I am now creating an iso image with the boot image. So at the root of the CD I will have the boot directory containing the kernel subdirectory. I figured out about the boot image error from mkisofs. I had to copy cdboot into the actual boot directory for the image and the path specified by the -b option is relative to the root directory of the CD... So should this work according to you? Thanks! Manolis Kiagias wrote: On 10/02/2010 11:39 μ.μ., Pierre-Luc Drouin wrote: Great Thanks! So when I create a boot CD using the boot image, are the kernel files contained in /boot/kernel read at all during boot? How exactly are you creating your image? The basic directories in a FreeBSD install iso are 'boot' (containing the kernel that will be used for the CD boot) and a directory with the name of the release e.g. 7.2-RELEASE. If you wish to include packages they should be in a 'packages' directory on the root of the CD. If live functionality is required (FreeBSD livefs CD) there are more directories, essentially resembling the structure of an installed base system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to create a FreeBSD 8.0 boot CD without boot.flp?
On 11/02/2010 12:08 π.μ., Pierre-Luc Drouin wrote: What I am trying to do is basically to install FreeBSD 8.0 on a CD. I followed these instructions to install FreeBSD on a USB stick: http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb-stick-episode-2 minus the fdisk/bsdlabel/newfs part . I just set up rc.conf to configure the ethernet interface with DHCP and load sshd then I am now creating an iso image with the boot image. So at the root of the CD I will have the boot directory containing the kernel subdirectory. I figured out about the boot image error from mkisofs. I had to copy cdboot into the actual boot directory for the image and the path specified by the -b option is relative to the root directory of the CD... So should this work according to you? Thanks! It is going to be an interesting experiment. The official install CD/DVDs boot from boot/kernel on the CD but the root filesystem used is actually in an mfs (memory disk). Also it executes sysinstall instead of init at the end of the boot sequence. I suppose you can mount the root filesystem from CD as read-only but you will have to handle things like /var and /usr and you will probably need some writing capability. I am sure this can be done in more than a few ways though I've never researched this myself. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to create a FreeBSD 8.0 boot CD without boot.flp?
Manolis Kiagias wrote: On 11/02/2010 12:08 π.μ., Pierre-Luc Drouin wrote: What I am trying to do is basically to install FreeBSD 8.0 on a CD. I followed these instructions to install FreeBSD on a USB stick: http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb-stick-episode-2 minus the fdisk/bsdlabel/newfs part . I just set up rc.conf to configure the ethernet interface with DHCP and load sshd then I am now creating an iso image with the boot image. So at the root of the CD I will have the boot directory containing the kernel subdirectory. I figured out about the boot image error from mkisofs. I had to copy cdboot into the actual boot directory for the image and the path specified by the -b option is relative to the root directory of the CD... So should this work according to you? Thanks! It is going to be an interesting experiment. The official install CD/DVDs boot from boot/kernel on the CD but the root filesystem used is actually in an mfs (memory disk). Also it executes sysinstall instead of init at the end of the boot sequence. I suppose you can mount the root filesystem from CD as read-only but you will have to handle things like /var and /usr and you will probably need some writing capability. I am sure this can be done in more than a few ways though I've never researched this myself. yes I did some checks and it seems that sysinstall is loaded via the mfsroot instruction in loader.conf that somehow loads /stand/boot_crunch in the mfsroot image. If I change the content of loader.conf I think it should behave like a regular installation (?). I have also written a special fstab: # DeviceMountpoint FStype Options Dump Pass# /dev/iso9660/FreeBSD_Custom / cd9660 ro,noatime 0 0 md /etc_tmpmfs rw,-s4M,nosuid,noatime 0 0 /etc_tmp/etcnullfs rw 0 0 md /tmpmfs rw,-s16M,nosuid,noatime 0 0 md /var/runmfs rw,-s4M,nosuid,noatime 0 0 md /var/logmfs rw,-s16M,nosuid,noatime 0 0 /proc /proc procfs rw,noauto 0 0 /tmp/var/tmpnullfs rw 0 0 As you can see I do not have any hardcoded device name. I use the CD label, which is used by geom_label to create a device file in /dev/iso9660/. So in order to have geom_label loaded as early as possible I have added geom_label_load=YES in loader.conf. I hope this will work... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How to create a FreeBSD 8.0 boot CD without boot.flp?
So I just tested the CD and it works perfectly. It boots, automatically configure the interface and launches the SSH daemon. For me this is the perfect tool to perform remote installations/fixing of FreeBSD. I just send the compressed 100 MB ISO image to someone, have him to boot the machine using the CD and then I log on the machine with SSH and do whatever I want. The only thing I had to do in addition to what I mentioned in my previous emails is to create a script in rc.d that runs just after root and that does the following: mount /etc_tmp #Mount memory disk to /etc_tmp cd /etc_tmp tar -cp -C /etc -f - ./ | tar -xpf - #Copy content of /etc to /etc_tmp mount /etc #nullfs mount /etc_tmp over /etc Obviously I have also changed the root password and created a user that is a member of the wheel group. Manolis Kiagias wrote: On 11/02/2010 12:08 π.μ., Pierre-Luc Drouin wrote: What I am trying to do is basically to install FreeBSD 8.0 on a CD. I followed these instructions to install FreeBSD on a USB stick: http://typo.submonkey.net/articles/2006/04/13/installing-freebsd-on-usb-stick-episode-2 minus the fdisk/bsdlabel/newfs part . I just set up rc.conf to configure the ethernet interface with DHCP and load sshd then I am now creating an iso image with the boot image. So at the root of the CD I will have the boot directory containing the kernel subdirectory. I figured out about the boot image error from mkisofs. I had to copy cdboot into the actual boot directory for the image and the path specified by the -b option is relative to the root directory of the CD... So should this work according to you? Thanks! It is going to be an interesting experiment. The official install CD/DVDs boot from boot/kernel on the CD but the root filesystem used is actually in an mfs (memory disk). Also it executes sysinstall instead of init at the end of the boot sequence. I suppose you can mount the root filesystem from CD as read-only but you will have to handle things like /var and /usr and you will probably need some writing capability. I am sure this can be done in more than a few ways though I've never researched this myself. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org