+ -
当前位置:首页 → 问答吧 → 关于做livecd的问题的疑惑,请大家帮忙。

关于做livecd的问题的疑惑,请大家帮忙。

时间:2006-04-04

来源:互联网

http://livecd.berlios.de/?Documentat...reate_A_LiveCD
我想上面的链接中的步骤做livecd,但是有两个步骤看不懂,请高手指点
..................................................................................
Step 1
* Install Mandrakelinux 10.0 Official on one / partition, 3 - 5 GB, that depends on your needs. Make sure you have enough RAM and/or SWAP. Example: I am building a ~300 MB iso off a 700 MB big installed system, got 256 MB RAM and a big SWAP partition (but 250 MB SWAP might be enough). Make sure you have the syslinux rpm installed: # urpmi syslinux
Extract the file install_any.pm.gz from your first mdk install cd (/Mandrake/mdkinst/usr/bin/perl-install) to /usr/lib/libDrakX

Step 2
* Make your system as small as possible. You iso is limited to 700 MB, your system should not extend 1,8 GB. Better start with a pretty small installation.

Step 3
* Add contrib (for 10.0) to your urpmi sources.

Step 4
* Install the kernel-tmb-2.6.7-2.tmb.6mdk-1-1mdk.i586.rpm on your system. You can find the rpm on the *contrib 10.1* ftp mirrors.

Step 5
* Install the latest stable mklivecd scripts for 10.0, the version is 0.5.8-1mdk, get them here .
The mklivecd rpm contains the scripts for building your livecd, the livecd-utils rpm is only needed if you want to implement a harddisk installation in your LiveCD. Use urpmi to install the rpms, it will take care of the dependencies, you have added contrib to your urpmi sources, don't you? And you might need CD 4, if you don't have it, just add also the /main ftp tree to your sources!

Step 6
Clickup a console. Get root. Run: mklivecd --help
The command to build your iso is as simple/enhanced as you want.
Examples:
# mklivecd myown.iso
# mklivecd --verbose --kernel 2.6.7-2.tmb.6mdk --resolution 800x600 --fstab=rw,auto --splash=no --keyboard=fr --usbhome rain.iso
The script takes care of compressing the files and building a bootable image, and will cleanup after it is done.

Step 7
Burn your iso. Have fun. - Problems? Read the mailing list.

..................................................................................

3这个步骤有什么用,能省掉吗?是为了以后系统程序方便吗?:ask
4这个步骤是安装内核,因为步骤一已经装好系统,内核肯定已经有了,为什么还要装内核?
ps:我以前装软件,如果是rpm格式的话我都用rpm,没有用过urpmi。今天才开始看urpmi的。
如:关于好使好用之URPMI程序

作者: future_god   发布时间: 2006-04-04

3 是做成的livecd 也能裝軟件
4 是原本的kernel 不提供部份功能, 要另裝kernel

引用:
作者: future_god
3这个步骤有什么用,能省掉吗?是为了以后系统程序方便吗?:ask
4这个步骤是安装内核,因为步骤一已经装好系统,内核肯定已经有了,为什么还要装内核?
ps:我以前装软件,如果是rpm格式的话我都用rpm,没有用过urpmi。今天才开始看urpmi的。
如:关于好使好用之URPMI程序

作者: matthewlam64   发布时间: 2006-04-04

关于第四步, mdk10.0是2.6.3的内核,现在要装2.6.7的内核,但是一个系统启动以后就只能用一个内核吧.2.6.7的内核怎么提供给他不同的功能呢?除非是以新装的2.6.7的内核启动.这样的话我应该可以把这一步省掉,换成我自己新编译好的内核.应该也可以吧?
:ask

作者: future_god   发布时间: 2006-04-04

关于第三步是不是类似这样就可以了
urpmi.addmedia main http://gd.tuwien.ac.at/pub/linux/Man...586/media/main with media_info/synthesis.hdlist.cz
是以root执行.

作者: future_god   发布时间: 2006-04-04

原来MKLIVECD还可以做成安装盘的啊,可以考虑用这个做特殊的版本啊

作者: maramail   发布时间: 2006-04-04

我现在就是在研究这个用法,有兴趣的话可以一起讨论啊.
更需要大家的帮助.

作者: future_god   发布时间: 2006-04-04

我现在就是在研究这个用法,有兴趣的话可以一起讨论啊.
更需要大家的帮助.

作者: future_god   发布时间: 2006-04-04

呵呵,你说出了我的原意.
但是有一些不不大明白.
还请各位指教!
谢谢!

作者: future_god   发布时间: 2006-04-04

LE2005 及 2006 版的 Perl 有問題, 是不能作安裝用的

引用:
作者: maramail
原来MKLIVECD还可以做成安装盘的啊,可以考虑用这个做特殊的版本啊

作者: matthewlam64   发布时间: 2006-04-04

能不能说具体些?
我用的是mandrake linux 10.0
应该可以吧.

作者: future_god   发布时间: 2006-04-05

10.0 是沒有問題的
LE2005及 2006 因為改動太多, 而mklivcd的boot script/cheat code未能跟上, livecd-utils的installer因LE2005/2006的新版perl而未能正常及installer多bug ...

引用:
作者: future_god
能不能说具体些?
我用的是mandrake linux 10.0
应该可以吧.

作者: matthewlam64   发布时间: 2006-04-05

你看看搜索一下我以前的帖子,2006完全可以用livecd制作单系统光盘,上个学期我做了一个作为操作系统课程的试验用光盘,制作没有问题,使用上有一点小问题,但是影响有限。

作者: superlj   发布时间: 2006-04-05

11楼说的意思是MKLIVECD和安装有冲突.问题是不知道最近有没有更新

作者: maramail   发布时间: 2006-04-05

新的 mklivecdMDV2006.tar.gz :
沒有談及livecd installer有關的改正, 另新的mcnlive mcnlive-winnipeg-pre2.iso 移除了http/ftp installer

CVS checkout 2006-02-22. Changes to CVS:
- fixes for MDV 2006 (modules fix, USBLive mode added (livecd fromusb option), skipsata option (separated from noscsi), bootsplash verbose default, hotplug fix, removed the bootfrom eperimental stuff, changed isolinux append
- memtest and mediacheck disabled in my version (edit mklivecd to re-enable it)
- some more changes to cvs

* Tested with MDV 2006, Kernel 2.6.12-12mdk-i686-up-4GB (UnionFS module added by me).
The default is with unionfs enabled when you build the iso. If you don't use a unionfs kernel build the iso with: --bootopt unionfs=no
* You need to compile the UnionFS module for your kernel. Download the sources, unpack, read the readme, install the kernel-sources ... etc
The -mm kernel from /contrib comes already with UnionFS, but does not work on my hardware. Could not test it.
* For unionfs, you need to edit (on your target MDV 2006 system) /etc/rc.d/rc.sysinit, line 458-462 to:
#if [ -z "$fastboot" -a "X$ROOTFSTYPE" != "Xnfs" ]; then
#
# gprintf "Checking root filesystem\n"
# Fsck -T -a $fsckoptions /
#fi

* The KDM login manager has a logout bug (on a LiveCD). If you use KDE with KDM, comment the line:
Loginmanager = Lilo in /etc/kde/kdm/kdmrc

* To prepare/setup a bootable USB Flash Drive/pen/stick ... (only for vfat/fat16/fat32 filesystems on the flash drive)
- just build a normal LiveCD iso. No special build code required.
- add script(s) on the LiveCD which copies the necessary files to the stick, installs syslinux, copies a special syslinux.cfg file (with the cheatcode livecd fromusb) ...
- you can find the last versions of my scripts on MCNLive-winnipeg-pre2.iso in /usr/local/bin

* I don't use MDV 2006 as my main daily system. It is still randomly freezing on my hardware, and there are so many broken applications. I happily use MDV 2005 LE. So, please don't ask me if you have troubles with a LiveCD based on 2006.

* Happy building :-)

--chris


引用:
作者: maramail
11楼说的意思是MKLIVECD和安装有冲突.问题是不知道最近有没有更新

作者: matthewlam64   发布时间: 2006-04-05