← 返回命令列表

Linux command

syslinux 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install SYSLINUX on FAT filesystem

syslinux -i [/dev/sdb1]

Install to USB drive

syslinux -i -m -a [/dev/sdb1]

Install in subdirectory

syslinux -i -d [/boot/syslinux] [/dev/sdb1]

Update existing installation

syslinux -U [/dev/sdb1]

Install with RAID mode

syslinux -i -r [/dev/sdb1]

Force installation

syslinux -f -i [/dev/sdb1]

Install safe/slow version

syslinux -s -i [/dev/sdb1]

说明

syslinux installs the SYSLINUX bootloader on FAT filesystems. SYSLINUX is a lightweight bootloader designed for booting Linux from MS-DOS FAT filesystems, commonly used for USB drives and rescue media. The bootloader consists of a boot sector and the ldlinux.sys file. Configuration is done through syslinux.cfg which specifies kernel images and boot parameters. For ext2/3/4 and btrfs filesystems, use extlinux instead. Since version 4.00, EXTLINUX and SYSLINUX share the same codebase. After installation, create a syslinux.cfg file in the installation directory to configure boot entries.

参数

-i, --install
Install SYSLINUX, overwriting any previous bootloader.
-U, --update
Update existing SYSLINUX installation.
-s, --stupid
Install safe, slow version for buggy BIOSes.
-f, --force
Force install even if it appears unsafe.
-r, --raid
RAID mode: boot next device on failure.
-d, --directory _subdir_
Install control files in specified subdirectory.
-a, --active
Mark partition as active (bootable).
-m, --mbr
Install Master Boot Record code.
--offset _bytes_
Byte offset of filesystem in disk image.
-t, --type _type_
Specify filesystem type explicitly.
-z, --zipdrive
Assume ZIP drive geometry.
-h, --help
Display help information.
-v, --version
Display version information.

FAQ

What is the syslinux command used for?

syslinux installs the SYSLINUX bootloader on FAT filesystems. SYSLINUX is a lightweight bootloader designed for booting Linux from MS-DOS FAT filesystems, commonly used for USB drives and rescue media. The bootloader consists of a boot sector and the ldlinux.sys file. Configuration is done through syslinux.cfg which specifies kernel images and boot parameters. For ext2/3/4 and btrfs filesystems, use extlinux instead. Since version 4.00, EXTLINUX and SYSLINUX share the same codebase. After installation, create a syslinux.cfg file in the installation directory to configure boot entries.

How do I run a basic syslinux example?

Run `syslinux -i [/dev/sdb1]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i, --install do in syslinux?

Install SYSLINUX, overwriting any previous bootloader.