|
按照如下说明,
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 先。 |
|