[syslinux] Replace grub with extlinux

Bjørn Mork bjorn at mork.no
Tue Aug 10 01:42:54 PDT 2010


Face <falazemi at gmail.com> writes:

> Hello all,
>
> I am trying to replace grub with extlinux without any luck. I did
> remove the grub from my root Partition and boot from a LiveCD. I
> install syslinux and did those steps
>
>     Boot Partition:
>         mkdir -pv /mnt/sda1
>         mke2fs -jv /dev/hda1
>         mkfs -t ext3 /dev/hda1
>         mount /dev/hda1 /mnt/sda1
>
>     Root Partition
>         export SDB1=/mnt/sdb1
>         mkdir -pv $SDB1
>         mount -v -t ext3 /dev/hdb1 $SDB1
>
>     SWAP Partition
>         /sbin/swapon -v /dev/hdb5
>
>     Installing extlinux to /dev/sda1
>         dd if=/dev/zero of=/dev/sda bs=446 count=1
>         dd if=/mnt/sdb1/usr/share/syslinux/mbr.bin of=/dev/sda
>         install -d /mnt/sda1/boot
>         /sbin/extlinux --install /mnt/sda1/boot
>
>     Writing extlinux.conf file
>        export  ExtlinuxConf=/mnt/sda1/boot/extlinux.conf
>        echo "DEFAULT AlDimnaOS" > $ExtlinuxConf
>        echo "LABEL AlDimnaOS" >> $ExtlinuxConf
>        echo "	KERNEL /boot/vmlinux-2.6.34-AlDimnaOS-0.0.0.1" >> $ExtlinuxConf
>        echo " 	APPEND initrd=/boot/vmlinux-2.6.34-AlDimnaOS-0.0.0.1
> root=/dev/sdb1 ro quiet splash" >> $ExtlinuxConf
>        echo "	TIMEOUT 100" >> $ExtlinuxConf
>        echo "	PROMPT 1" >> $ExtlinuxConf
>
> Copy vmlinux to boot Partition
>     cp /mnt/sdb1/boot.old/vmlinux-2.6.34 \
> 			/mnt/sda1/boot/vmlinux-2.6.34
>
>
> any help would be greatly appreciated

Did you remember to set the active flag on the /dev/hda1 partition?

If that's not it, then I guess describing defining "without any luck"
would help. Do you see any error messages?  Does it still boot grub?
Exactly what problems do you see?


Bjørn




More information about the Syslinux mailing list