[syslinux] how to remove extlinux?
H. Peter Anvin
hpa at zytor.com
Fri Jul 10 13:47:04 PDT 2009
Paolo Casaschi wrote:
> hello,
>
> quick question about extlinux: I accidentally installed extlinux on
> the wrong partition (I run extlinux -i somewhere beofre mounting my
> usb key to somewhere). Now extlinux seems to be stuck in my main hd
> partition... how do I remove extlinux from the hard drive?
> I mean both the extlinux.sys file and the bits in the partition
> table... Could not find any info how to doit.
>
chattr -i extlinux.sys
rm -f extlinux.sys
There isn't a huge point to removing the boot sector, but it can be done
with:
dd if=/dev/zero bs=512 count=1 of=/dev/sdXX
... where /dev/sdXX is the right partition. CAREFUL! This command can
destroy non-ext2/3/4 filesystems.
-hpa
More information about the Syslinux
mailing list