I would like to boot FreeDOS ISO image from USB memory stick using syslinux. I have done following: 1) I created a partition to my 2GB memory stick: root at debian64:~# fdisk -lu /dev/sdb Disk /dev/sdb: 2013 MB, 2013265920 bytes 62 heads, 62 sectors/track, 1022 cylinders, total 3932160 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xf672aa0a Device Boot Start End Blocks Id System /dev/sdb1 * 62 3928567 1964253 6 FAT16 root at debian64:~# 2) Downloaded latest syslinux: root at debian64:~# /home/martin/syslinux-4.05/linux/syslinux -v /home/martin/syslinux-4.05/linux/syslinux 4.05 Copyright 1994-2011 H. Peter Anvin et al root at debian64:~# 3) Installed boot code to MBR: root at debian64:~# dd if=/home/martin/syslinux-4.05/mbr/mbr.bin of=/dev/sdb bs=1 count=440 conv=notrunc 440+0 records in 440+0 records out 440 bytes (440 B) copied, 0,00719145 s, 61,2 kB/s root at debian64:~# 4) created FAT16 file system to /dev/sdb1: root at debian64:~# mkdosfs -v -F 16 /dev/sdb1 mkdosfs 3.0.9 (31 Jan 2010) /dev/sdb1 has 62 heads and 62 sectors per track, logical sector size is 512, using 0xf8 media descriptor, with 3928506 sectors; file system has 2 16-bit FATs and 64 sectors per cluster. FAT size is 256 sectors, and provides 61372 clusters. There are 64 reserved sectors. Root directory contains 1024 slots and uses 64 sectors. Volume ID is 37f2a26f, no volume label. root at debian64:~# 5) installed syslinux to /dev/sdb1: root at debian64:~# /home/martin/syslinux-4.05/linux/syslinux -i /dev/sdb1 root at debian64:~# 6) mounted /dev/sdb1 to /media/usb and copied iso image(http://www.freedos.org/download/download/fd11src.iso), memdisk image and created syslinux.cfg: root at debian64:~# cp freedos.iso /home/martin/syslinux-4.05/memdisk/memdisk /media/usb root at debian64:~# printf 'LABEL FreeDOS\nLINUX memdisk\nINITRD freedos.iso\nAPPEND iso\n' > /media/usb/syslinux.cfg root at debian64:~# cat /media/usb/syslinux.cfg LABEL FreeDOS LINUX memdisk INITRD freedos.iso APPEND iso root at debian64:~# ls -l /media/usb/ total 80960 -rwxr-xr-x 1 root root 82804736 juuli 1 20:10 freedos.iso -rwxr-xr-x 1 root root 32256 juuli 1 20:06 ldlinux.sys -rwxr-xr-x 1 root root 26140 juuli 1 20:10 memdisk -rwxr-xr-x 1 root root 58 juuli 1 20:11 syslinux.cfg root at debian64:~# 7) unmounted /dev/sdb1 root at debian64:~# umount /media/usb root at debian64:~# Now if I boot my machine from USB memory stick, then for some reason syslinux.cfg file is not handled properly and I need to manually specify boot command: http://i.imgur.com/jFAFg.jpg However, the main problem is that booting hangs during the memdisk boot: http://i.imgur.com/sMGA7.jpg Even Ctrl+Alt+Delete key combination does not reset the machine and I need to use the reset button on the motherboard. Am I doing something wrong? Or any ideas why memdisk loading hangs? If any additional information is needed, then feel free to ask! regards, martin
On Sun, Jul 1, 2012 at 10:22 AM, Martin T <m4rtntns at gmail.com> wrote:> I would like to boot FreeDOS ISO image from USB memory stick using > syslinux. I have done following:> root at debian64:~# /home/martin/syslinux-4.05/linux/syslinux -v > /home/martin/syslinux-4.05/linux/syslinux 4.05 ?Copyright 1994-2011 H. > Peter Anvin et al> > 5) installed syslinux to /dev/sdb1: > > root at debian64:~# /home/martin/syslinux-4.05/linux/syslinux -i /dev/sdb1 > root at debian64:~# > > 6) mounted /dev/sdb1 to /media/usb and copied iso > image(http://www.freedos.org/download/download/fd11src.iso), memdisk > image and created syslinux.cfg: > > root at debian64:~# cp freedos.iso > /home/martin/syslinux-4.05/memdisk/memdisk /media/usb > root at debian64:~# printf 'LABEL FreeDOS\nLINUX memdisk\nINITRD > freedos.iso\nAPPEND iso\n' > /media/usb/syslinux.cfg > root at debian64:~# cat /media/usb/syslinux.cfg > LABEL FreeDOS > LINUX memdisk > INITRD freedos.iso > APPEND isoWhere's your DEFAULT or UI directive?> Now if I boot my machine from USB memory stick, then for some reason > syslinux.cfg file is not handled properly and I need to manually > specify boot command: > > http://i.imgur.com/jFAFg.jpgAdd 'DEFAULT FreeDOS' (minus the quotes; I prefer at the top) like below. DEFAULT freedos LABEL freedos MENU LABEL FreeDOS LINUX memdisk INITRD freedos.iso APPEND iso -OR- DEFAULT freedos LABEL freedos MENU LABEL FreeDOS LINUX memdisk APPEND iso initrd=freedos.iso> However, the main problem is that booting hangs during the memdisk boot: > > http://i.imgur.com/sMGA7.jpgWithout the ISO parameter, this likely to fail.> Even Ctrl+Alt+Delete key combination does not reset the machine and I > need to use the reset button on the motherboard. > > Am I doing something wrong? Or any ideas why memdisk loading hangs? If > any additional information is needed, then feel free to ask!See above.> regards, > martinHope this helps. -- -Gene
> Date: Sun, 1 Jul 2012 17:22:13 +0300 > From: m4rtntns at gmail.com > To: syslinux at zytor.com > Subject: [syslinux] booting FreeDOS ISO image using syslinux hangs > > > 1) I created a partition to my 2GB memory stick: > > Disk /dev/sdb: 2013 MB, 2013265920 bytes > 62 heads, 62 sectors/track, 1022 cylinders, total 3932160 sectorsTake note of those values: c=1022 h=62 s=62> > Device Boot Start End Blocks Id System > /dev/sdb1 * 62 3928567 1964253 6 FAT16Your ID is for FAT16 with partition size of about 2GB (too big for normal use).> 2) Downloaded latest syslinux: > 3) Installed boot code to MBR: > 4) created FAT16 file system to /dev/sdb1:I would suggest FAT32 for a partition of 2GB, not FAT16.> 5) installed syslinux to /dev/sdb1: > 6) mounted /dev/sdb1 to /media/usb and copied iso > 7) unmounted /dev/sdb1 > > Am I doing something wrong? Or any ideas why memdisk loading hangs? If > any additional information is needed, then feel free to ask! >Suggestions: 1_ Format with FAT32 (and set the ID to FAT32 for consistency). 2_ Change syslinux.cfg to: _____________ syslinux.cfg: _____________ DEFAULT freedos LABEL freedos MENU LABEL FreeDOS LINUX memdisk initrd=freedos.iso APPEND iso raw ___________________ end of syslinux.cfg ___________________ Don't forget the "raw". 3_ I would use at least s=64 instead of s=62 for the partition and format, but that's another matter. HTH.