[syslinux] Replace grub with extlinux

Gert Hulselmans gerth at zytor.com
Tue Aug 10 13:03:29 PDT 2010


Face wrote:
> On Tue, Aug 10, 2010 at 6:03 PM, Thomas Bächler <thomas at archlinux.org>
> wrote:
>> Am 10.08.2010 16:44, schrieb Face:
>>> i have 7 img files in /boot/grub
>>> ls /boot/grub |grep .img
>>> boot.img
>>> cdboot.img
>>> core.img
>>> diskboot.img
>>> kernel.img
>>> lnxboot.img
>>> pxeboot.img
>>>
>>> which one is the initrd filename ?(my guess is kernel.img )
>>
>> None of them. They are all part of grub.
>>
>>
>> _______________________________________________
>> 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.
>>
>>
>>
>
>
> so where i can find it or how can i create an initrc.img ?
> --
> Sincerely,
>

Read the contents of your grub.cfg file:
$ cat /boot/grub/grub.cfg

Look for similar lines like this:

menuentry "Ubuntu, Linux 2.6.31-22-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,12)
	search --no-floppy --fs-uuid --set 5d0ca1ae-77f5-4fe9-97d0-caf54bd58ce7
	linux	/vmlinuz-2.6.31-22-generic
root=UUID=5d0ca1ae-77f5-4fe9-97d0-caf54bd58ce7 ro   quiet splash
	initrd	/initrd.img-2.6.31-22-generic
}

The first filename after linux keyword, tells you the kernel filename to
use in your extlinux.conf.
The initrd filename after the initrd keyword, tells you the initrd filename.

Quick conversion to Sysliunux syntax (you need menu.c32):
===================================================
UI menu.c32

LABEL 1
MENU LABEL Ubuntu, Linux 2.6.31-22-generic
LINUX /vmlinuz-2.6.31-22-generic
INITRD /initrd.img-2.6.31-22-generic
APPEND root=UUID=5d0ca1ae-77f5-4fe9-97d0-caf54bd58ce7 ro quiet splash
===================================================

Note 1: keywords don't need to be capital characters (LINUX or linux makes
no difference).

Note 2: You can use the 'file' command to get more info about the possible
file type of a file. Initrds are most of the time compressed (gzip, ...)
so for those files you won't get much info, unless you extract them and
run file again on the extracted file).

- Gert Hulselmans




More information about the Syslinux mailing list