[syslinux] Replace grub with extlinux

Face falazemi at gmail.com
Tue Aug 10 14:26:22 PDT 2010


On Tue, Aug 10, 2010 at 11:03 PM, Gert Hulselmans <gerth at zytor.com> wrote:
> 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
>
> _______________________________________________
> 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.
>
>

thx for the note i will keep them in mind.however, I am using LFS and

cat /boot/grub/grub.cfg look like this

menuentry "GNU/Linux, with Linux 2.6.34" --class gnu-linux --class gnu
--class os {
      insmod ext2
      set root='(hd0,1)'
      search --no-floppy --fs-uuid --set 0829d529-e526-43ce-a65e-321d7e0a3e03
      echo Loading Linux 2.6.34 ...
      linux /boot/vmlinux-2.6.34 root=/dev/sda1 ro
}


i looked for  initrd  /initrd* line but could not find any


-- 
Sincerely,




More information about the Syslinux mailing list