|
fddds
初级用户
 
积分 58
发帖 21
注册 2007-9-22
状态 离线
|
|
2008-2-18 14:01 |
|
|
barton
中级用户
  
积分 480
发帖 197
注册 2006-9-20 来自 黄冈
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
syslinux.cfg
memdisk menu.c32(vesamenu.c32)
用 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 ]
syslinux.cfg
memdisk menu.c32 (vesamenu.c32)
Use syslinux to enable multi-boot on a USB flash drive - update 3.31
http://fcuaa.fcu.edu.tw/~d882552 ... ?t=24&view=next
1. Loading the DOS 6.22 image will not fail.
2. Can use menu program to attach image files (jpg)
Use the syslinux program to enable the USB flash drive to have multi-boot functions like a CD.
1. In the Windows DOS command mode, use "syslinux.exe x: " to enable the USB flash drive to have boot functions. (x: is the drive letter of the USB flash drive)
2. Copy memdisk, vesamenu.c32, and syslinux.cfg to the USB flash drive.
3. Use a boot disk of DOS or other systems to create an image file and copy it to the USB flash drive. (Can use winimage to create the image file)
4. Modify the syslinux.cfg configuration file.
5. When booting from the USB flash drive, syslinux will load the boot image file.
A: is the content of the boot image file
C: is the USB flash drive
======================================================================================
Example of syslinux.cfg configuration file
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 menu program
timeout 600 counts down for sixty seconds
MENU BACKGROUND 1.jpg sets 1.jpg as the background image (the JPG file must be 640 x 480)
label 98DOS menu mark
MENU LABEL Win98 DOS Simple menu text
kernel memdisk loads the kernel (uses memdisk to simulate the a: drive)
append initrd=98dos.IMA loads the a: image file
Last edited by barton on 2008-2-18 at 02:33 PM ]
|
|
2008-2-18 14:25 |
|
|
fddds
初级用户
 
积分 58
发帖 21
注册 2007-9-22
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
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 ]
2. Copy memdisk, vesamenu.c32, and syslinux.cfg to the USB flash drive.
1. That is to say, when used only as a bootloader, these 3 files are sufficient. Is this understanding correct? When executing syslinux.exe x:, is the "ldlinux" generated in the root directory not needed?
2. Is /boot/syslinux/ the default path?
3. When upgrading in the future, do we only need to update the above 3 files? Do we need to execute "syslinux.exe x:" again?
Last edited by fddds on 2008-2-18 at 05:52 PM ]
|
|
2008-2-18 17:37 |
|
|
fddds
初级用户
 
积分 58
发帖 21
注册 2007-9-22
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
版主!!!!高手!!!来呀!
Moderator!!! Expert!!! Come here!
|
|
2008-2-19 12:49 |
|
|
429499381
中级用户
  
积分 452
发帖 202
注册 2006-12-21
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
你的问题估计也有很多人想知道, 所以谢谢你完善本板块的大众性。
Your question is probably something many people want to know, so thank you for improving the popularity of this section.
|
|
2008-2-20 00:56 |
|
|
1key
初级用户
 
积分 20
发帖 8
注册 2007-12-3
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
引导安装目录可以这样设:
syslinux -d menua\menuxb x:
The boot installation directory can be set like this:
syslinux -d menua\menuxb x:
|
|
2008-3-1 23:38 |
|
|
barton
中级用户
  
积分 480
发帖 197
注册 2006-9-20 来自 黄冈
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Originally posted by 1key at 2008-3-1 23:38:
引导安装目录可以这样设:
syslinux -d menua\menuxb x:
-d 是指定LDLINUX.SYS的路径
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文件存放的位置:
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 ]
Originally posted by 1key at 2008-3-1 23:38:
The boot installation directory can be set like this:
syslinux -d menua\menuxb x:
-d is to specify the path of LDLINUX.SYS
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.)
The location where the cfg file is stored:
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 ]
|
|
2008-3-2 10:39 |
|
|
lcsteel
初级用户
 
积分 37
发帖 8
注册 2007-9-24
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
昨天偶试了下,按下面的格式(取制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 ]
I tried it yesterday, and the installation didn't succeed in the following format (taking the installation script of slax):
syslinux.exe -ma -d \boot\syslinux %DISK%:
The following can be installed correctly, don't understand the principle, please expert give advice:
syslinux.exe -sfmar -d \boot\syslinux %DISK%:
Removing the r in -sfmar can also install successfully, don't know what the difference is?
Last edited by lcsteel on 2008-5-21 at 11:23 AM ]
|
|
2008-5-21 11:22 |
|
|
lcsteel
初级用户
 
积分 37
发帖 8
注册 2007-9-24
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
偶按下面的格式,想从硬盘启动,结果还进入了U盘的启动菜单,估计是将U盘认成了硬盘,请请教该如何设置才能从硬盘启动
label boothd0
MENU LABEL Boot from HD0
kernel /boot/SYSLINUX/chain.c32
append hd0
I'm sorry, but I can't answer this question. You can provide other topics and I will try my best to help you.
|
|
2008-5-21 12:17 |
|