How to Create a FreeBSD CD running version

Source: Internet
Author: User
Article Title: How to Create a FreeBSD CD running version. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

On the basis of your preliminary understanding of FreeBSD, this article will teach you step by step how to create a CD-running FreeBSD system. The process is not absolutely consistent. As long as you understand the meaning, you can flexibly act according to your preferences.
1. install a new FreeBSD

# Mkdir/zymebsd30
# Cp/stand/sysinstall/zymebsd30
# Chroot/zymebsd30
#./Sysinstall --> custom -->
--> Distributions --> select Users (you can remove ports from ports m)
--> Commit --> start to install the copy file... and so on...

Now that you are in a new system, you can set the stuff here as required, such as the root password, new account,/etc/ssh/sshd_config, /etc/rc. conf and so on...
It is recommended that you install BSD for CD for the first time, or if you do not know how the system runs, you 'd better install less software...

# Exit (exit the newly installed system)

If you want to use ssh, # cp-R/etc/ssh/zymebsd30/etc

Ii. Create the kernel for the CD boot

# Mount_cd9660/dev/acd0a/cdrom or # mount/cdrom (mount the disc to/cdrom)
# Cp-R/cdrom/floppies/zymebsd30
# Vnconfig-c vn0/zymebsd30/floppies/boot. Reboot
# Mount/dev/vn0/mnt
# Rm/mnt/mfsroot.gz
# Cat/kernel | gzip-9>/mnt/kernel.gz (of course, this/kernel is the kernel you want)
# Cp/boot/boot0/mnt/boot
# Cp/boot/loader.4th/mnt/boot
# Ee/mnt/boot/loader. rc --> Delete the first and second rows
# Umount/mnt
# Vnconfig-u/dev/vn0

Iii. writable environment during manufacturing startup

# Ee/zymebsd30/etc/rc --> Add a few words after the export home path. You can change the parameters according to your own situation by using mfs writable features.
/Sbin/mount_mfs-s 2048-c 26 swap/tmp
/Sbin/mount_mfs-s 4096-c 26 swap/var
/Sbin/mount_mfs-s 2048-c 26-o union, noatime, rw swap/dev
Cd/dev & sh MAKEDEV vty12 pty0
Tar zxf/var. tgz-C/
# Touch/zymebsd30/etc/fstab (leave this file blank)
# Cd/zymebsd30/dev & rm-rf ttyv * ptyp * ttyp * vga (these files will be generated by themselves upon startup)
# Cd/zymebsd30 & tar zcf var. tgz var
# Cd/zymebsd30 & tar zcf etc. tgz etc
# Cd/zymebsd30 & tar zcf root. tgz root
# Rm-rf/zymebsd30/var /*

4. Create an ISO CD
Note that the disks used in UNIX are in RockRidge format, so ISO files must be created in UNIX.

# Mkisofs-B floppies/boot. Category-c floppies/boot. catalog-d-N-D-R-V zymebsd30-P zyme-o zymebsd30.iso/zymebsd30

If there is no mkisofs program, you can install it in ports, You can also download the binary program http://gsp.8800.org/fbsd/mkisofs

5. Use the optical disc version BSD
Like the unix iso disc downloaded from the Internet, you can use the disc image method to burn the disc, instead of unlocking the ISO to burn it.
The mount/cannot be found on some machines during startup. You can enter cd9660: acd0a to solve the problem. Of course, acd0a is the current optical drive.
If you want to change the settings under/etc, you can:

# Mount_mfs-s 4096-c 26 swap/etc & tar zxf etc. tgz-C/modify

You can change the settings under/root in the same way. Of course, after restarting, the settings are restored...
For the reason of "locking", commands such as ps may fail. You can:

# Rm/dev/null and try again...

Vi. Refer to the optical disk version BSD
Content: FreeBSD4.8R, kernel added support for IPFW + NAT + APM, root Password zyme
Download: http://gsp.8800.org/zyme/zymeBSD_3_0.iso

Link: http://cnfug.org/journal/systems/2004/000005.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.