neocytrix Posted September 12, 2006 Report Share Posted September 12, 2006 Hello All, I am running both Windows XP pro and Debian on the computer I am currently on. I recently formatted the Windows partition and since then, its booted right into Windows. Is there a way to only re-install the bootloader without having to do the whole OS? Thanks Neocytrix Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted September 12, 2006 Report Share Posted September 12, 2006 Yes, but you'll need to boot a livecd or the debian cd in rescue mode to be able to recover the bootloader. By default debian uses grub, so you should just need to ensure you know the partition where debian is to then reinstall grub. You can do it simply with: grub-install from the prompt, and if that doesn't work, you'll have to do it manually using grub, but you need to know the partition it's on. For example, if /dev/hda2 or /dev/sda2 then: grub root (hd0,1) setup (hd0) will do it. As an example: hd0,1 = /dev/hda2 or /dev/sda2 hd1,1 = /dev/hdb2 or /dev/sdb2 the sequence always starts from o, so hd0,0 is /dev/hda1 or /dev/sda1 depending on ide/sata/scsi disks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.