How to Create FreeBSD 7 DVD From CDs

Ok. I’am going to start this tutorial from scratch.
I’ll present this tute as a workshop in front of you
so that you don’t have to suffer in confusions.

Here I go :

1. login as root. Create a folder under root and name
it freebsd (eg./freebsd). create a folder under freebsd
and name it mnt (eg./freebsd/mnt)

2. Copy all 4 bsd disc images from digit dvd
(or download from http://www.freebsd.org) to /freebsd folder.

3. open terminal window & type
cd /freebsd & press enter.

4. Now type
mount -o loop -t iso9660 7.0-RELEASE-i386-disc1.iso /freebsd/mnt
& press enter.

5. Now go to the /freebsd/mnt folder & copy paste the
cdrom.inf file on desktop.

6. in terminal window type :
tar -C /freebsd/mnt -cf - . | tar -xf -
& press enter.

7. Then issue this command :
umount /freebsd/mnt
& press enter.

8. Now on the terminal repeat this step
for all remaining three images. eg.

[root@localhost freebsd]# mount -o loop -t iso9660 7.0-RELEASE-i386-disc2.iso /freebsd/mnt
[root@localhost freebsd]# tar -C /freebsd/mnt -cf - . | tar -xf -
[root@localhost freebsd]# umount /freebsd/mnt

[root@localhost freebsd]# mount -o loop -t iso9660 7.0-RELEASE-i386-disc3.iso /freebsd/mnt
[root@localhost freebsd]# tar -C /freebsd/mnt -cf - . | tar -xf -
[root@localhost freebsd]# umount /freebsd/mnt

[root@localhost freebsd]# mount -o loop -t iso9660 7.0-RELEASE-i386-docs.iso /freebsd/mnt
[root@localhost freebsd]# tar -C /freebsd/mnt -cf - . | tar -xf -
[root@localhost freebsd]# umount /freebsd/mnt

9. Now go to the /freebsd folder and delete
the mnt & rr_moved folder. Also delete the four iso images.

10. Now copy the cdrom.inf file from desktop
& paste it into the /freebsd folder.

11. In terminal window type :
cd /freebsd/packages
& press enter.

12. Type in : for eg:
[root@localhost packages]# sed -ie ’s/|2/|1/g’ INDEX
[root@localhost packages]# sed -ie ’s/|3/|1/g’ INDEX

13. Go to /freebsd/packages folder & delet a file called INDEXe

14. On the terminal issue this command to get a bootable dvd iso image of freebsd:
mkisofs -V FreeBSD-7-dvd -J -R -b boot/cdboot -no-emul-boot -o /FreeBSD-7.0-RELEASE-i386-dvd.iso /freebsd

This will create FreeBSD-7.0-RELEASE-i386-dvd.iso under /.

15.  Issue this command to burn the created iso file :
growisofs -dvd-compat -Z /dev/cdrw=/FreeBSD-7.0-RELEASE-i386-dvd.iso

or Burn this with your your desired burning app like k3b, brasero etc. :D

Note : You need a linux box to create this dvd. I’ve used fc8.
Also login as root to avoid stay hassle free :D

Tags: , , , ,

3 Responses to “How to Create FreeBSD 7 DVD From CDs”

  1. Ragaavendra Says:

    Thanks for the steps. It has helped me create DVD ISO from CD ISO’s. Googling took me to many places which had mdconfig, which I didn’t have. Finaaly your post helped.

  2. topgeartopspeed Says:

    Nice to hear that my tutorial helped you out.

  3. redworm Says:

    Hi, i been trying to make my own dvd following this steps but at load could not found kernel.

Leave a Reply