LinuxSir.cn,穿越时空的Linuxsir!

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

Debian USB盘安装时,如何得到vmlinz,之类的文件

[复制链接]
发表于 2007-3-15 09:18:23 | 显示全部楼层 |阅读模式
Mount the partition (mount /dev/sda1 /mnt) and copy the following files from the Debian archives to the stick:

vmlinuz (kernel binary)

initrd.gz (initial ramdisk image)

syslinux.cfg (SYSLINUX configuration file)
可以在那儿找啊?
附原文:
http://www.debian.org/releases/s ... n#usb-copy-flexible

4.4.2. Copying the files — the flexible way
If you like more flexibility or just want to know what's going on, you should use the following method to put the files on your stick.

4.4.2.1. USB stick partitioning on Intel x86
We will show how to setup the memory stick to use the first partition, instead of the entire device.

Note
Since most USB sticks come pre-configured with a single FAT16 partition, you probably won't have to repartition or reformat the stick. If you have to do that anyway, use cfdisk or any other partitioning tool for creating a FAT16 partition and then create the filesystem using:

# mkdosfs /dev/sda1

Take care that you use the correct device name for your USB stick. The mkdosfs command is contained in the dosfstools Debian package.

In order to start the kernel after booting from the USB stick, we will put a boot loader on the stick. Although any boot loader (e.g. LILO) should work, it's convenient to use SYSLINUX, since it uses a FAT16 partition and can be reconfigured by just editing a text file. Any operating system which supports the FAT file system can be used to make changes to the configuration of the boot loader.

To put SYSLINUX on the FAT16 partition on your USB stick, install the syslinux and mtools packages on your system, and do:

# syslinux /dev/sda1

Again, take care that you use the correct device name. The partition must not be mounted when starting SYSLINUX. This procedure writes a boot sector to the partition and creates the file ldlinux.sys which contains the boot loader code.

Mount the partition (mount /dev/sda1 /mnt) and copy the following files from the Debian archives to the stick:

vmlinuz (kernel binary)

initrd.gz (initial ramdisk image)

syslinux.cfg (SYSLINUX configuration file)

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

本版积分规则

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