[syslinux] Replace grub with extlinux

Face falazemi at gmail.com
Tue Aug 10 14:46:21 PDT 2010


On Wed, Aug 11, 2010 at 12:34 AM, Gert Hulselmans <gerth at zytor.com> wrote:
> Face wrote:
>> On Tue, Aug 10, 2010 at 11:03 PM, Gert Hulselmans <gerth at zytor.com> wrote:
>>>
>>> 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,
>>
>
> If it doesn't use an initrd, you won't need to find it.
>
> ===================================================
> UI menu.c32
>
> LABEL 1
> MENU LABEL GNU/Linux, with Linux 2.6.34
> LINUX /boot/vmlinux-2.6.34
> APPEND root=/dev/sda1 ro
> ===================================================
>
> - 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.
>
>

so,Do i need UI menu.c32? b/c i did try to boot with out the initrd
but it did boot .


-- 
Sincerely,




More information about the Syslinux mailing list