[syslinux] Replace grub with extlinux

Face falazemi at gmail.com
Fri Aug 13 14:48:31 PDT 2010


On Sat, Aug 14, 2010 at 12:37 AM, H. Peter Anvin <hpa at zytor.com> wrote:
> On 08/13/2010 02:14 PM, Face wrote:
>>        dd if=/dev/zero of=/dev/sdb bs=446 count=1
>
> This should have been 440, not 446; actually it's an unnecessary
> operation entirely.  Unfortunately you just wiped out the disk serial
> number in bytes 440-443.  Fortunately Linux doesn't really use it.
>
>>        dd if=/usr/share/syslinux/mbr.bin of=/dev/sdb
>>        install -d /mnt/sdb1/boot
>>        /sbin/extlinux --install /mnt/sdb1/boot
>>
>> - Writing extlinux.conf file
>>               ExtlinuxConf=/mnt/sdb1/boot/extlinux.conf
>>               echo "DEFAULT test" > $ExtlinuxConf
>>               echo "LABEL test" >> $ExtlinuxConf
>>               echo "  KERNEL /boot/vmlinux-2.6.34" >> $ExtlinuxConf
>>               echo "  APPEND rw root=/dev/sda1 ro quiet splash" >> $ExtlinuxConf
>>               echo "  TIMEOUT 100" >> $ExtlinuxConf
>>               echo "  PROMPT 1" >> $ExtlinuxConf
>>
>> - Copy vmlinux to boot Partition
>>          cp /boot.old/vmlinux-2.6.34 \
>>                        /mnt/sdb1/boot/vmlinux-2.6.34
>>
>> my fstab look like this
>>          /dev/sda1      /                  ext3          defaults
>>            1        1
>>          /dev/sdb1      /boot            ext3         defaults
>>          0        1
>>          /dev/sda5      swap            swap        pri=1
>>         0        0
>>          proc              /proc            proc         defaults
>>              0        0
>>          sysfs             /sys             sys          defaults
>>               0      0
>>          devpts           /dev/pts        devpts     gid=4,mode=620
>>    0      0
>>          tmpfs            /dev/shm       tmpfs      defaults
>>          0      0
>>
>>
>>
>> and when i reboot my box, it did not show any error just a "Booting
>> from hard disk " or something like that  and it freeze
>>
>> i am not sure what i am missing here?
>
> Hm... is your new boot (/dev/sdb1) parition marked Active?
>
> Also, since your boot partition is on the second drive, you need to
> change the boot order in your BIOS so that the /boot drive is booted first.
>
>        -hpa
>
> _______________________________________________
> 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.
>
>


> Hm... is your new boot (/dev/sdb1) parition marked Active?

yes


> Also, since your boot partition is on the second drive, you need to
> change the boot order in your BIOS so that the /boot drive is booted first.

I will try and see what will happen ! however, do i need to make any
changes to the /etc/fstab or /etc/mtab ?




-- 
Sincerely,




More information about the Syslinux mailing list