[syslinux] booting dos from syslinux/memdisk

Thomas Baumann tom at tiri.li
Wed Jul 2 03:54:59 PDT 2003


Sorry, due to a problem with our email server I did not
receive any response. Maybe the message did not go out.
I hope sb. can help me.

Hello list, I use syslinux-2.04 and did the following:

# creating a 16MB image with structure C/H/S 2/256/63
mkdiskimage disk.img 2 256 63
# creating dos filesystem
mkdosfs disk.img
# mounting image
mount -o loop disk.img /mnt/img
# copying files from PC-DOS 7.1
mcopy a: /mnt/img
dd if=/dev/fd0 of=bootblock.dos7 bs=512 count=1
cp bootblock.dos7 /mnt/img/dos.bss
cat << EOF > /mnt/img/syslinux.cfg
SAY welcome!
PROMPT 1
TIMEOUT 600
DEFAULT 1
LABEL 1
  KERNEL dos.bss
EOF
# ls -al /mnt/img
-rwxr-xr-x   autoexec.bat
-rwxr-xr-x   command.com
-rwxr-xr-x   config.sys
-rwxr-xr-x   ibmbio.com
-rwxr-xr-x   ibmdos.com
-rwxr-xr-x   ldlinux.sys
-rwxr-xr-x   syslinux.cfg
# making bootable
umount /mnt/img
syslinux disk.img

# so far, so good.
# but when booting via PXE (pxelinux.cfg/default)
...
LABEL t
  KERNEL memdisk c=2 h=256 s=63
  APPEND initrd=disk.img

# the following things occur
boot: t
Loading memdisk
Loading disk.img ...................................(16MB).........
Ready.
MEMDISK 2.04 ....
...
command line: initrd=disk.img BOOT_IMAGE=memdisk
MEMDISK: Image seems to have fractional end cylinder           <<<< [A]
Disk is hard disk, 16128K CHS=2/242/50                         <<<< [A]
...
Loading boot sector... booting...

SYSLINUX 2.04
welcome!
boot: 1



More information about the Syslinux mailing list