I need fdisk
I just used the XP disk management tool to format the partitions on my parents computer, and without thinking I took everything but the windows primary partion off. problem is some one head installed an old version of redhat and thus made Grub the primary bootloader. hence when I now boot up the computer I don't get into XP. Instead Grubs just halts at command prompt. Now I know this is a case of repairing the boot sector, but my parents don't know where their XP cd is and if I can just get hold of fdisk I can execute the /mbr command to, hopefully, fix thing.
I've spent 2 hours searching on the web now to no avail. does anyone know a site that where I can download this under rated tool? or maye some grub command that'll allow me to boot into XP for the time being?
fdisk is part of the linux distro, it should be on the redhat partition. If that doesnt work you could always burn a liveCD of ReactOS, and just reformat from it.
ANY bootdisk on the internet will have fdisk on it. There are DOS bootdisks all over the internet, and they all have fdisk.
Is there a way to tell GRUB to load XP?
Yes, but you need the latest version or it wont be able to handle disks larger than 32GB
Originally Posted by DavidP
Yes. It's what I do. You need to edit the grub config file and add an entry for XP with content like this:
Originally Posted by siavoshkc
The map commands may need adapting. Basically, this is setting the system so that XP is tricked into thinking it's running of the primary hard disk, even when it's not. If XP actually in on the primary disk, no mapping is necessary. If it's somewhere else, you need to change (hd1) to match.
map (hd0) (hd1)
map (hd1) (hd0)
The rootnoverify command tells grup where to look for stuff, but without doing any checks. (Those are for Unixy systems.) Again, if XP is not on the first partition of the second disk, you need to change (hd1,0) accordingly.
I have no idea what the makeactive command does, but it's necessary.
The chainloader command means that grub should forward control to a different bootloader, namely the one on the active or root partition (not sure). This starts the XP bootloader.
Of course, if grub trashed your XP bootloader, that won't work.