LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4928|回复: 7

Creating Your Own FreeBSD 7.0 DVD

[复制链接]
发表于 2008-3-8 15:56:43 | 显示全部楼层 |阅读模式
Creating Your Own FreeBSD 7.0 DVD
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/ ... reebsd-70-dvd-22791
发表于 2008-3-29 11:31:22 | 显示全部楼层

顺便贴两个Freebsd 7 i386 DVD的iso下载地址给大家

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,我提供个下载地方分流下,点击下载


频繁的换碟很难受呀,下个DVD挺好的
回复 支持 反对

使用道具 举报

发表于 2008-5-18 20:07:12 | 显示全部楼层
好快啊,200k
回复 支持 反对

使用道具 举报

发表于 2008-5-25 23:05:31 | 显示全部楼层
恩 不错

速度稳定在70k左右
回复 支持 反对

使用道具 举报

发表于 2008-8-6 14:37:12 | 显示全部楼层
在INDEX文件中找不到2^n与|3^n ,各位是怎么找到的!
回复 支持 反对

使用道具 举报

发表于 2008-10-4 07:38:41 | 显示全部楼层
2.6M/S 速度还可以嘛
回复 支持 反对

使用道具 举报

发表于 2008-10-20 20:41:07 | 显示全部楼层
好惨,只有900k
回复 支持 反对

使用道具 举报

发表于 2008-10-21 13:14:01 | 显示全部楼层
关于
packages/INDEX
chrom.inf
有标准吗?
我总把是 ||1 和 ||2 以及 ||3 替换成 |
再把 cdrom.inf 只保留第一行,如 CD_VERSION = 7.0-RELEASE
也没碰到过问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表