I need fdisk

This is a discussion on I need fdisk within the Tech Board forums, part of the Community Boards category; I just used the XP disk management tool to format the partitions on my parents computer, and without thinking I ...

  1. #1
    WDT
    WDT is offline
    Tha 1 Sick RAT
    Join Date
    Dec 2003
    Posts
    271

    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?
    Thanks
    A hundred Elephants can knock down the walls of a fortress... One diseased rat can kill everyone inside

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    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.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  3. #3
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    ANY bootdisk on the internet will have fdisk on it. There are DOS bootdisks all over the internet, and they all have fdisk.

    http://www.bootdisk.com/
    My Website

    "Circular logic is good because it is."

  4. #4
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,231
    Is there a way to tell GRUB to load XP?
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  5. #5
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    Quote Originally Posted by DavidP View Post
    ANY bootdisk on the internet will have fdisk on it. There are DOS bootdisks all over the internet, and they all have fdisk.

    http://www.bootdisk.com/
    Yes, but you need the latest version or it wont be able to handle disks larger than 32GB
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  6. #6
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    GParted FTW.

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Quote Originally Posted by siavoshkc View Post
    Is there a way to tell GRUB to load XP?
    Yes. It's what I do. You need to edit the grub config file and add an entry for XP with content like this:

    Code:
    title=Windows XP
    map (hd0) (hd1)
    map (hd1) (hd0)
    rootnoverify (hd1,0)
    makeactive
    chainloader +1
    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.
    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.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Do I really need to recompile ORBit2?
    By Jesdisciple in forum C Programming
    Replies: 42
    Last Post: 05-18-2009, 12:23 AM
  2. Fdisk
    By MethodMan in forum Tech Board
    Replies: 4
    Last Post: 11-18-2003, 02:00 PM
  3. Strange hard disk
    By GanglyLamb in forum Tech Board
    Replies: 20
    Last Post: 03-01-2003, 03:05 AM
  4. Linux installation instructions
    By Leeman_s in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 01-22-2003, 06:33 PM
  5. Fdisk on a bootable CD?
    By Brian in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 03-06-2002, 12:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21