neocytrix Posted September 12, 2006 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 Link to comment Share on other sites More sharing options...
ianw1974 Posted September 12, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now