LinuxSir.cn,穿越时空的Linuxsir!

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

debian livecd 怎么用?

[复制链接]
发表于 2010-1-27 16:43:50 | 显示全部楼层 |阅读模式
http://debian.osuosl.org/debian-cdimage/5.0.3-live/amd64/web/
到这里下载了
initrd.img
vmlinuz      
debian-live-503-amd64-gnome-desktop.squashfs
三个文件
那么我在menu.lst里面应该怎么写呢?
 楼主| 发表于 2010-1-27 16:49:42 | 显示全部楼层
找到答案了

5.3.2.4. Booting a Debian Live USB/HDD system from a USB stick
with Grub

Suppose you've built your Debian Live USB/HDD image, but want to
install it on an already used USB stick with ext2/3 partition
and Grub bootloader:

First, copy live components in a directory on your key: the
Linux kernel (vmlinuz*), its Initial RAM disk (initrd*) and the
system (filesystem.squashfs):

# mkdir /media/myUsb/boot/live/
# cp binary/vmlinuz1 binary/initrd1.img binary/live/filesystem.squashfs /media/myUsb/boot/live/

Then, add a stanza in Grub's menu definition to boot up this
system:

echo >>/media/myUsb/boot/grub/menu.lst  <<EOF

title           my Debian Live
root            (hd0,1)    # my Ext2 partition is the second on this stick
kernel          /boot/live/vmlinuz1 boot=live vga=791 persistent union=aufs live-media-path=boot/live
initrd          /boot/live/initrd1.img

EOF

The important kernel command line option to add here is
<variablename>live-media-path</variablename>, which tells to
Live initrd's script in which subdirectory to look for the
SquashFS image.

Next, umount your USB stick and reboot on it. That's all!
回复 支持 反对

使用道具 举报

发表于 2010-1-27 18:03:20 | 显示全部楼层
好久没玩Debian的liveCD了, 记得很久之前, 玩过DFS, 是Debian的livecd
回复 支持 反对

使用道具 举报

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

本版积分规则

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