LinuxSir.cn,穿越时空的Linuxsir!

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

谁能帮我解决制作 LiveCD 的问题?

[复制链接]
发表于 2004-1-26 00:05:51 | 显示全部楼层 |阅读模式
按照如下说明,



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@ws_Linux SRPMS]# 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@ws_Linux SRPMS]#
[root@ws_Linux SRPMS]# chroot /tmp/minimal /usr/sbin/pwconv
chroot: /usr/sbin/pwconv: No such file or directory
[root@ws_Linux SRPMS]# chroot /tmp/minimal
chroot: /bin/bash: No such file or directory
[root@ws_Linux SRPMS]# echo 'root' | passwd --stdin root
Changing password for user root.
passwd: all authentication tokens updated successfully.
[root@ws_Linux SRPMS]# mklivecd --rootdir /tmp/minimal minimal.iso
mklivecd, version 0.5.6, http://www.linuxminicd.org/mklivecd/
Copyright (C) 2002-2003, Jaco Greeff <jaco@linuxminicd.org>

* Creating temporary directories...
* Creating initrd structure...
cp: stat‘/usr/bin/busybox’失败: No such file or directory

那位大虾能帮我一下

THX 先。
 楼主| 发表于 2004-1-26 00:14:26 | 显示全部楼层
忘了说了

是用的 http://www.linuxminicd.org
版本是 0.5.6

本机安装的是 打过补丁的 MDK 9.2(捷克  4CD )
 楼主| 发表于 2004-1-27 11:06:29 | 显示全部楼层
怎么?

不知道大家试过没有?
 楼主| 发表于 2004-1-27 14:14:12 | 显示全部楼层
重新安装了相应的软件包后,运行结果成了:

[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 <jaco@linuxminicd.org>

* 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

不知那位大虾能指点一二? 在此不胜感激。:confused:
 楼主| 发表于 2004-1-29 16:11:23 | 显示全部楼层
郁闷
为什么总是自己顶
 楼主| 发表于 2004-1-31 12:38:55 | 显示全部楼层
难道
.
.
.
.
.
难道
.
.
.
.
.
真的没有人试过吗?
 楼主| 发表于 2004-2-6 12:01:17 | 显示全部楼层
为什么大家对自己制作 LiveCD 没有兴趣呢?

我真的很想制作出自己的 MDK LiveCD
发表于 2004-2-13 13:12:37 | 显示全部楼层
朋友你好

有一个制作脚本在 http://www.linux-live.org/

PS:请到这里来聊聊
http://www.linuxeden.com/forum/forumdisplay.php?forumid=75
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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