QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 495|回复: 0

那位大侠能帮我解决制作 LiveCD 的问题?

[复制链接]
发表于 2004-1-31 23:45:13 | 显示全部楼层 |阅读模式
是用的 http://www.linuxminicd.org
版本是 0.5.6

本机安装的是 打过补丁的 MDK 9.2(捷克 4CD )

按照如下说明,



Q: How do I create a tiny (truly minimal) bootable Mandrake
LiveCD?
A: Here is a step by step process of creating your own Mandrake
installation and creating a LiveCD image from it. (You can
customise the process by adding additional packages, but the
underlying concepts should stay the same)

1. Login as root, using "su -c"
2. Create a base directory to hold the minimal installation:
"mkdir -p /tmp/minimal"
3. Install the Mandrake base system:
"urpmi basesystem devfsd harddrake --root /tmp/minimal"
4. Enable shadow passwords in the image by issuing:
"chroot /tmp/minimal /usr/sbin/pwconv"
5. Set your root password ('root') within the image:
"chroot /tmp/minimal"
"echo 'root' | passwd --stdin root"
"exit"
6. Create a LiveCD image from the minimal installation:
"mklivecd --rootdir /tmp/minimal minimal.iso"
7. Burn the resulting minimal.iso to CD-R and enjoy


结果是从第二步起就开始出错:

[root@Linux root]# urpmi basesystem devfsd harddrake --root /tmp/minimal
无法打开 rpmdb
error: cannot open lock file /tmp/minimal/var/lib/rpm/RPMLOCK in shared mode
error: cannot open Packages database in /tmp/minimal/var/lib/rpm
[root@Linux root]# chroot /tmp/minimal /usr/sbin/pwconv
chroot: /usr/sbin/pwconv: No such file or directory
[root@Linux root]# chroot /tmp/minimal
chroot: /bin/bash: No such file or directory
[root@Linux root]# echo 'root' | passwd --stdin root
Changing password for user root.
passwd: all authentication tokens updated successfully.
[root@Linux root]# mklivecd --rootdir /tmp/minimal minimal.iso
mklivecd, version 0.5.6, http://www.linuxminicd.org/mklivecd/
Copyright (C) 2002-2003, Jaco Greeff <[email protected]>

* Creating temporary directories...
* Creating initrd structure...
* Copying initrd kernel modules...
/usr/sbin/mklivecd: line 1: cd: /tmp/minimal/lib/modules/2.4.22-21mdkenterprise: No such file or directory
/usr/sbin/mklivecd: line 1: cd: /tmp/minimal/lib/modules/2.4.22-21mdkenterprise: No such file or directory
ERROR: unable to find kernel module cloop.o
[root@Linux root]#


看来,关键问题是 第二项
urpmi basesystem devfsd harddrake --root /tmp/minima

不知那位大虾能指点一二? 在此不胜感激。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-18 00:02 , Processed in 0.060616 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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