Creating Your Own FreeBSD 7.0 DVD
时间:2008-03-08
来源:互联网
Dru(SysAdmin, Technical Writer, Technical Trainer) Posted 2/28/2008
Comments (19) | Trackbacks (0)
If you're in the FreeBSD world, you've probably already downloaded or csup'd FreeBSD 7.0 or are in the process of doing so now. As yes, after what seemed like waiting forever, the announcement of 7.0 went out last night.
I spent this morning making a DVD ISO of FreeBSD 7.0 to be included in the upcoming BSD magazine. Creating a DVD is easy and my instructions follow.
Start by downloading the following four files from your closest FreeBSD mirror; you'll find these files in the ISO-IMAGES-i386/7.0/ directory:
7.0-RELEASE-i386-disc1.iso
7.0-RELEASE-i386-disc2.iso
7.0-RELEASE-i386-disc3.iso
7.0-RELEASE-i386-docs.iso
Note: all of the mirrors are extremely busy today so you may have to try a few before you find one close to you that has some connections left. I saved mine to the download subdirectory of my home directory. I created a staging area, became the superuser and ran the following commands to mount and untar the contents of the 4 files:
cd ~dru/downloads/dvd-freebsd7/
mdconfig -a -t vnode -f ../7.0-RELEASE-i386-disc1.iso -u 0
mount -t cd9660 /dev/md0 /mnt
tar -C /mnt -cf - . | tar -xf -
umount /mnt
mdconfig -a -t vnode -f ../7.0-RELEASE-i386-disc2.iso -u 1
mount -t cd9660 /dev/md1 /mnt
tar -C /mnt -cf - . | tar -xf -
umount /mnt
mdconfig -a -t vnode -f ../7.0-RELEASE-i386-disc3.iso -u 2
mount -t cd9660 /dev/md2 /mnt
tar -C /mnt -cf - . | tar -xf -
umount /mnt
mdconfig -a -t vnode -f ../7.0-RELEASE-i386-docs.iso -u 3
mount -t cd9660 /dev/md3 /mnt
tar -C /mnt -cf - . | tar -xf -
umount /mnt
Next, use sed or the replace function of your favourite text editor to remove all incidences of ||1 and ||2 and ||3 from the file packages/INDEX.
Add these lines to cdrom.inf:
CD_VOLUME = 0
CD_VOLUME = 1
CD_VOLUME = 2
CD_VOLUME = 3
Then, remove this directory:
rm -Rf rr_moved
or you will get this error when you try to create your DVD:
mkisofs: Error: './rr_moved' and '(NULL POINTER)' have the same Rock Ridge name 'rr_moved'.
mki/usr/home/dlavigne6/sofs: Unable to sort directory
:-( write failed: Input/output error
This command (type all on one line) will burn your DVD on the fly; note that it will NOT save a copy of the ISO to your hard disc:
growisofs -Z /dev/cd0 -J -R -no-emul-boot -b boot/cdboot -iso-level 3 .
To instead create an ISO which you can then burn at your leisure, use this command (typed all on one line):
mkisofs -V FreeBSD7 -J -R -b boot/cdboot -no-emul-boot -o freebsd7.iso .
and to burn the ISO:
growisofs -dvd-compat -Z /dev/cd0=freebsd7.iso
That's it. Have fun!
http://blogs.ittoolbox.com/unix/bsd/...d-70-dvd-22791
作者: matrowang 发布时间: 2008-03-08
lsstarboy 发表于chinaunix http://home.sdcangyuan.com/FreeBSD7_Release.iso MD5 (FreeBSD7_Release.iso) = 83c16edb4afd086a8bd978ad86c73933 文件大小1.7G,下载不限速,因为是家里自己的机器,还是piii800的CPU,所以请不要用太多的线程。如果有可能,大家还可以报一下速度,就当作给我的机器作了测试。 顺便BS一下有些无聊的人,就我这样一个页面的小站,也还用三、四台机器的DDOS,进行着没完没了的,没有白天、也没有黑夜的攻击,我就怀疑,你不累吗?有空看会儿电影也比做这些事强!!!! 制作步骤:(windows下) 1、安装daemontool,重启,然后右击系统托盘上的“闪电”图标,设置虚拟的光驱个数为3个。注意,至少要设置成2个,如果是想把docs的盘一块做进去,那么就要设为3个。(原因嘛,就因为是完整的FB系统4个盘)。 2、安装winiso或ultraiso,再装个ultraedit32,做好盗版工作。 3、用winiso打开第一个光盘,然后把其中的packages中的INDEX文件复制出来,并去掉只读属性。 4、用UltraEdit32打开INDEX,替换规则:把|2^n替换为|1^n,把|3^n替换为|1^n。 5、把修改完的INDEX放回原位置。 6、用虚拟光驱,把另外三张盘挂上,把其中的内容全部添加到winiso中相应的地方。注意,千万别放错地方。 6、存盘,可以刻盘了。 说明: (1)、原理:在UltraEdit32中,^n代表回车换行,查找|2^n就代表最后两个字符是|2,其实直接用2^n也可以。每行的最后数字,代表该软件所在的盘号,盘号在光盘根目录下的cd-rom文件里面。 (2)、不要直接把|2和|3替换为|1,那样的话会有两个软件不能用。) (3)、这张DVD可以安装完桌面,但是中文化还需要几个packages,如果是KDE的话,需要的packages是kde和koffice的i18n,文泉驿字体,还有fcitx等输入法。 (4)、可以把官方ftp服务器中的那个INDEX中相应的条目加到光盘的INDEX中,然后在每行的最后面的数字前加上两个|号。但是这个做法只是猜测,没有理论根据,用CD-RW试过几个小软件,没做大型的测试,有条件的同学可以做个测试。 |
7.0 Release i386 DVD iso 下载 制作步骤:(windows下) 1、安装daemontool,重启,然后右击系统托盘上的“闪电”图标,设置虚拟的光驱个数为3个。注意,至少要设置成2个,如果是想把docs的盘一块做进去,那么就要设为3个。(原因嘛,就因为是完整的FB系统4个盘)。 2、安装winiso或ultraiso,再装个ultraedit32,做好盗版工作。 3、用winiso打开第一个光盘,然后把其中的packages中的INDEX文件复制出来,并去掉只读属性。 4、用UltraEdit32打开INDEX,替换规则:把|2^n替换为|1^n,把|3^n替换为|1^n。 5、把修改完的INDEX放回原位置。 6、用虚拟光驱,把另外三张盘挂上,把其中的内容全部添加到winiso中相应的地方。注意,千万别放错地方。 6、存盘,可以刻盘了。 说明: (1)、原理:在UltraEdit32中,^n代表回车换行,查找|2^n就代表最后两个字符是|2,其实直接用2^n也可以。每行的最后数字,代表该软件所在的盘号,盘号在光盘根目录下的cd-rom文件里面。 (2)、不要直接把|2和|3替换为|1,那样的话会有两个软件不能用。) (3)、这张DVD可以安装完桌面,但是中文化还需要几个packages,如果是KDE的话,需要的packages是kde和koffice的i18n,文泉驿字体,还有fcitx等输入法。 来自chinaunix的lsstarboy,我提供个下载地方分流下,点击下载。 |
作者: xiaohao98 发布时间: 2008-03-29
作者: gebo 发布时间: 2008-05-19
速度稳定在70k左右
作者: attention 发布时间: 2008-05-26
作者: fish_happy 发布时间: 2008-08-06
作者: qq43142691 发布时间: 2008-10-04
作者: ericzb 发布时间: 2008-10-21
packages/INDEX
chrom.inf
有标准吗?
我总把是 ||1 和 ||2 以及 ||3 替换成 |
再把 cdrom.inf 只保留第一行,如 CD_VERSION = 7.0-RELEASE
也没碰到过问题
作者: ch_fb 发布时间: 2008-10-21
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28