制作debian live

本文介绍如何使用 Debian Live 工具制作一个可启动的 USB 驱动器,包括设置工作目录、复制必需文件及编辑配置文件的具体步骤。文章还提供了 lb_config 脚本的详细配置说明,以便用户能够自定义安装过程中的各项参数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

$ mkdir -p working/auto

$ cp /usr/share/live/build/examples/auto/* working/auto/
$ cd working

Edit auto/config:

 

代码

   
# !/ bin / sh

lb config noauto \
-- distribution lenny \
- b usb - hdd -- username debian -- apt aptitude \
-- mirror - bootstrap http: // mirror.dlut.edu.cn/debian \
-- mirror - chroot - security http: // mirror.dlut.edu.cn/debian \
-- mirror - binary http: // mirror.dlut.edu.cn/debian \
-- mirror - binary - volatile http: // mirror.dlut.edu.cn/debian-volatile \
-- mirror - chroot - volatile http: // mirror.dlut.edu.cn/debian-volatile \
-- mirror - binary - security http: // mirror.dlut.edu.cn/debian-security \
-- mirror - chroot - security http: // mirror.dlut.edu.cn/debian-security \
-- architecture i386 \
-- linux - flavours 686 \
-- packages - lists " standard " \
" ${@} "

# lb build

$ dd if=binary.img of=${USBSTICK}


-b usb-hdd制作usb的live,其他有iso等。。。

若不指定volatile的镜像的话,可能会出现

Err http://mirror.dlut.edu.cn squeeze/updates/main i386 Packages

> 404 Not Found

其他选项参见Debian Live Manual 和 man lb_config

关于自动配置,即auto目录下的三个脚本,参见Debian Live Manual 6. Managing a configuration(章节内容可能会有变动)

在config/chroot_local-includes目录下,可以添加自定义文件,如创建home/debian/目录,再添加.emacs配置文件。参见Debian Live Manual 9. Customizing contents

转载于:https://www.cnblogs.com/lbsx/archive/2010/12/24/1916329.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值