Hu Jia Yi
2008-Aug-22 02:26 UTC
[syslinux] failed when boot the kernel image on the harddisk from syslinux on a floppy
Thanks for responses. I use GRUB as my bootloader in my hard disk now. I have a Windows in sda1, Ubuntu in sda3. If I want to install extlinux to boot Ubuntu, should I follow the steps below? 1. in Ubuntu, go to extlinux folder, run command ./extlinux --install /boot 2. create an extlinux.conf in/boot 3. cd ../mbr 4. cat mbr.bin > /dev/sda (or use dd if=mbr.bin of=/dev/sda bs=404 count=1) 5. restart PC. The extlinux.txt says I need make the syslinux partition active. I know Windows partition needs activation. Is it necessary to turn an ext2/ext3 partition to active, too? If it is, how? Best regards, Hu Jia Yi Ext: 20430 Tel: 65-67510430 -----Original Message----- ------------------------------ Message: 5 Date: Thu, 21 Aug 2008 13:03:00 +0300 From: "Sergii Kolisnyk" <kolkmail at gmail.com> Subject: Re: [syslinux] failed when boot the kernel image on the hard disk from syslinux on a floppy To: "For discussion of SYSLINUX and tftp-hpa" <syslinux at zytor.com> Message-ID: <1783038b0808210303j3c69e310pb6892b5f681b5190 at mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Hi, SYSLINUX isn't designed to work that way. It can boot kernel only from same filesystem from which it's loaded. You need GRUB or GRUB4DOS for your task. SYSLINUX can be used to chainload GRUB. Best regards, Sergii Kolisnyk 2008/8/21 Hu Jia Yi <jyhu at asmpt.com>:> After formatting a floppy to MSDOS format and using syslinux/dev/fd0,> I successfully installed ldlinux.sys to the root directory of the > floppy. > > Then I created a syslinux.cfg under the root directtory of thisfloppy> to load the linux kernel in my first hard disk, 3rd partition, boot > folder. The file system > > of this partition is ext3. The floppy has a FAT file system. Thisconfig> file is listed below. > > > > When I restarted PC and booted from this floppy , it failed with a > message > > "Could not find kernel image: /boot/vmlinuz-2.6.22-14-generic" > > > > Did I make a wrong configuration? I am sure the names of linux kernel > and initrd are correct. > > > > PROMPT 0 > > TIMEOUT 30 > > DEFAULT linux > > LABEL linux > > SAY Now booting the kernel from SYSLINUX... > > KERNEL /boot/vmlinuz-2.6.22-14-generic > > APPEND root=/dev/sda3 initrd=/boot/initrd.img-2.6.22-14-generic > > > > > > Best regards, > > Hu Jia Yi > > Ext: 20430 > > Tel: 65-67510430 > > > > _______________________________________________ > SYSLINUX mailing list > Submissions to SYSLINUX at zytor.com > Unsubscribe or set options at: > http://www.zytor.com/mailman/listinfo/syslinux > Please do not send private replies to mailing list traffic. > >------------------------------ Message: 7 Date: Thu, 21 Aug 2008 09:28:32 -0700 From: "H. Peter Anvin" <hpa at zytor.com> Subject: Re: [syslinux] failed when boot the kernel image on the hard disk from syslinux on a floppy To: For discussion of SYSLINUX and tftp-hpa <syslinux at zytor.com> Message-ID: <48AD97B0.9020609 at zytor.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sergii Kolisnyk wrote:> Hi, > > SYSLINUX isn't designed to work that way. > It can boot kernel only from same filesystem from which it's loaded. > You need GRUB or GRUB4DOS for your task. > SYSLINUX can be used to chainload GRUB. >Or just put the kernel and initrd on the syslinux partition and mount it as /boot. Now, if you do that, you don't want to put the /boot prefix in the syslinux configuration file, since syslinux will see the root *of the filesystem* as /. -hpa ------------------------------ Message: 8 Date: Thu, 21 Aug 2008 09:29:11 -0700 From: "H. Peter Anvin" <hpa at zytor.com> Subject: Re: [syslinux] failed when boot the kernel image on the hard disk from syslinux on a floppy To: For discussion of SYSLINUX and tftp-hpa <syslinux at zytor.com> Message-ID: <48AD97D7.5030206 at zytor.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hu Jia Yi wrote:> After formatting a floppy to MSDOS format and using syslinux/dev/fd0,> I successfully installed ldlinux.sys to the root directory of the > floppy. > > Then I created a syslinux.cfg under the root directtory of thisfloppy> to load the linux kernel in my first hard disk, 3rd partition, boot > folder. The file system > > of this partition is ext3. The floppy has a FAT file system. Thisconfig> file is listed below. >Oh yes, it might be that the easiest option for you is to use extlinux, and drop the FAT partition, too. -hpa
H. Peter Anvin
2008-Aug-22 04:44 UTC
[syslinux] failed when boot the kernel image on the harddisk from syslinux on a floppy
Hu Jia Yi wrote:> Thanks for responses. > > I use GRUB as my bootloader in my hard disk now. I have a Windows in > sda1, Ubuntu in sda3. > If I want to install extlinux to boot Ubuntu, should I follow the steps > below?They sound right to me.> 1. in Ubuntu, go to extlinux folder, run command > ./extlinux --install /boot > 2. create an extlinux.conf in/boot > 3. cd ../mbr > 4. cat mbr.bin > /dev/sda (or use dd if=mbr.bin of=/dev/sda bs=404 > count=1) > 5. restart PC. > > The extlinux.txt says I need make the syslinux partition active. I know > Windows partition needs activation. Is it necessary to turn an ext2/ext3 > partition to active, too? If it is, how?Yes it is. You can use fdisk, sfdisk or parted to do that. -hpa
Maybe Matching Threads
- failed when boot the kernel image on the hard disk from syslinux on a floppy
- RE: A question on vmx loader in xen - how and when rombiosis loaded into memory
- Embedding com32 modules and ldlinux.sys into one file
- Embedding com32 modules and ldlinux.sys into one file
- A question on vmx loader in xen - how and when rombios is loaded into memory