Board logo

标题: 请教:syslinux安装方法? [打印本页]

作者: fddds     时间: 2008-2-18 14:01    标题: 请教:syslinux安装方法?

请教版主和各位高手,从http://www.kernel.org/pub/linux/ ... x/syslinux-3.61.zip下载的安装包,如何安装到U盘指定目录下(/boot/syslinux/)?如果仅作为引导器使用时,需要在syslinux目录上放入哪些文件?
作者: barton     时间: 2008-2-18 14:25
syslinux.cfg

memdisk menu.c32(vesamenu.c32)

  Quote:
用 syslinux 來讓usb隨身碟可以多重開機 -update 3.31
【转贴】http://fcuaa.fcu.edu.tw/~d882552 ... ?t=24&view=next

1. 載入dos 6.22的image時不會fail。
2. 可以使用選單程式附加圖片檔(jpg)

使用 syslinux 的程式 讓USB隨身碟可以像光碟一樣有多重開機的功能

1 . 在windows的dos命令模式下用 "syslinux.exe x: " 來讓USB隨身碟有開機的功能。 ( x: USB隨身碟的磁碟代號)

2 . 將 memdisk , vesamenu.c32 和 syslinux.cfg copy 到USB隨身碟裡。

3.用dos或其它系統的開機片來做影像檔,並copy 到USB隨身碟。 ( 可以用winimage 來做影像檔)

4.修改 syslinux.cfg 設定檔。

5. 用USB隨身碟開機時會用syslinux載入開機影像檔。

A: 為開機影像檔的內容
C: USB隨身碟

======================================================================================
syslinux.cfg 設定檔 範例

default vesamenu.c32
prompt 0
timeout 600

MENU BACKGROUND 1.jpg
MENU TITLE Multi Boot Menu Edit by Barry

label 98DOS
MENU LABEL Win98 DOS Simple
kernel memdisk
append initrd=98dos.IMA

label DOS622
MENU LABEL MS-DOS 6.22
kernel memdisk
append initrd=DOS622.IMA

LABEL linux
KERNEL linux24
APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=normal tz=Asia/Taipei initrd=minirt24.gz nomce noapic quiet BOOT_IMAGE=knoppix

=======================================================================================
vesamenu.c32 選單程式

timeout 600 倒數六十秒

MENU BACKGROUND 1.jpg 將 1.jpg設成背景圖片 (JPG 檔一定要是640 x 480 )

label 98DOS 選單標記

MENU LABEL Win98 DOS Simple 選單文字

kernel memdisk 載入的核心(用 memdisk 來模擬 a: 磁碟機)

append initrd=98dos.IMA 載入a: image檔

[ Last edited by barton on 2008-2-18 at 02:33 PM ]
作者: fddds     时间: 2008-2-18 17:37

2 . 將 memdisk , vesamenu.c32 和 syslinux.cfg copy 到USB隨身碟裡。
1、就是说,仅作为引导器时,有这3个文件说够了,这样理解对不?
执行syslinux.exe x:时,根目录里生成的“ldlinux“是否不需要?

2、/boot/syslinux/是否为默认路径?

3、以后升级时,是否只更新上述3个文件就可?还需要再执行“syslinux.exe x:”吗?

[ Last edited by fddds on 2008-2-18 at 05:52 PM ]
作者: fddds     时间: 2008-2-19 12:49
版主!!!!高手!!!来呀!
作者: 429499381     时间: 2008-2-20 00:56
你的问题估计也有很多人想知道, 所以谢谢你完善本板块的大众性。
作者: 1key     时间: 2008-3-1 23:38
引导安装目录可以这样设:
syslinux -d menua\menuxb x:

作者: barton     时间: 2008-3-2 10:39


  Quote:
Originally posted by 1key at 2008-3-1 23:38:
引导安装目录可以这样设:
syslinux -d menua\menuxb x:

-d  是指定LDLINUX.SYS的路径

  Quote:
This will alter the boot sector on the disk and copy a file named
LDLINUX.SYS into its root directory (or a subdirectory, if the -d
option is specified.)

cfg文件存放的位置:

  Quote:
All the configurable defaults in SYSLINUX can be changed by putting a file called "syslinux.cfg" in the root directory of the boot disk.

Starting with version 3.35, the configuration file can also be in either the /boot/syslinux or /syslinux directories (searched in that order.)

[ Last edited by barton on 2008-3-2 at 10:01 PM ]
作者: lcsteel     时间: 2008-5-21 11:22
昨天偶试了下,按下面的格式(取制slax的安装脚本)安装不成功:
syslinux.exe -ma -d \boot\syslinux %DISK%:

改用下面可以正确安装,不懂原理,请高手赐教:
syslinux.exe -sfmar -d \boot\syslinux %DISK%:

去掉 -sfmar 的 r 也可以安装成功,不知这有什么区别?

[ Last edited by lcsteel on 2008-5-21 at 11:23 AM ]
作者: lcsteel     时间: 2008-5-21 12:17
偶按下面的格式,想从硬盘启动,结果还进入了U盘的启动菜单,估计是将U盘认成了硬盘,请请教该如何设置才能从硬盘启动
label boothd0
    MENU LABEL Boot from HD0
    kernel /boot/SYSLINUX/chain.c32
    append hd0