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. Thanks. Paolo
On Monday, June 29, 2009, 1:42:38, Paolo Casaschi wrote:> 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.Delete extlinux.sys, and that's about it. If you had another bootloader installed there, reinstall it - that's the only practical way to get rid of extlinux's boot sector. -- < Jernej Simon?i? ><><><><>< http://eternallybored.org/ >
Good day Paolo, In regards to your question concerning removing EXTLINUX: - What sort of boot-sector used to boot from that partition before you installed EXTLINUX? - Just for clarity: You do mean that the partition's boot sector (first sector or the partition) was overwritten only, and you do not have to change your MBR also, correct? - If you didn't have any boot code (like GRUB) on the partition before, that would suggest that your active partition is set incorrectly, or that the MBR is booting that partition for some other reason - If you did boot from that partition previously, simply re-install that previous boot-loader using its documented means Good luck! - Shao Miller
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
Miller, Shao wrote:> Good day Dag, > > Sounds like the ADV might be a good spot to store a backup boot sector! > Did you really mean MBR, though, or first sector (boot sector) of the > EXT2/3 partition? Maybe both should be backed-up, just in case! Cool > idea. >The ADV is way too small for that. Saving a backup boot sector in a file is doable, of course, and should be possible to implement with fairly minor work. Patch would be accepted. -hpa