Results 1 to 5 of 5

Thread: Orphaned GRUB on the MBR

  1. #1
    Member registered user
    Join Date
    Sep 2005
    Posts
    40

    Orphaned GRUB on the MBR

    Hi, I have Windows XP installed on the first partition, then i installed Mandrake 10.1 and instructed it to put the GRUB bootloader onto the MBR. then, I installed Knoppix last by using the "tohd=" cheatcode and added the grub entry for knoppix from mandrake. then, i changed my mind and from mandrake, i deleted the knoppix partition, fixed the grub entry. after a day, i decided to reinstall mandrake, but this time, i didn't put grub on the MBR, i put it on the mandrake partition. after restarting from the installation, i only see the word "GRUB" on my screen. the hard part here is that of all the rescue CDs i have (BART PE and linux live cds), none have fdisk on it that i can use to fix the mbr.

    QUESTION: does anybody have an idea to fix the mbr using KNOPPIX? i know i can do it with a dos boot disk, but i haven't got the boot disk nor a working floppy drive to insert a boot disk. I have to be less dependent of M$ windows now and so i'm looking for a linux alternative. I know you'd think that i'm such a **** to let that happen, but it happened already and i need your help. Thanks!

    ---

    It seems that i'm not alone with my problem... i browsed a blog at http://www.davidpashley.com/cgi/pyblosxom.cgi/debian and on his blog entry on Sun, 27 Jun 2004, he encountered the problem almost exactly as mine. i just would want to avoid having to reinstall XP... silly me... if only i could turn back time... any other ideas, guys?

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    Thank you for providing lots of background info but I need to know but I am unable to figure out what you want or how you want your system to behave.

    Do you want to remove grub and use the Windows XP bootloader only?
    Do you want grub to boot normally from the MBR so that you can access both Windows & Mandrake?
    Or do you want something different?

  3. #3
    Senior Member registered user
    Join Date
    Dec 2004
    Location
    Dublin, OH
    Posts
    342

    Fix MBR?

    Like Underscore, I'm not sure what you want after all those installs.

    Looks like you need your MBR fixed for one thing. I can't tell if you can't boot XP anymore or not.

    If you can't boot XP anymore, you need to use your XP install CD and get into the command console. There is a "Fix MBR" command in it you can use.

    sakiZ

  4. #4
    Senior Member registered user
    Join Date
    Aug 2004
    Location
    Sydney/Australia
    Posts
    311
    The problem is that you didn't bother to uninstall grub first. I would think that grub would have that facillity. No one reads their docs/man pages

    >>
    It seems that i'm not alone with my problem.
    >>

    Yes, you are one of many (grin)

    But ...

    Have you got anything in your boot directory that looks like it might be a mbr backup ?

    I can't say much on grub ... but if it was lilo you would have a 512 byte file called boot.0300 in your /boot directory which would be a copy of the whole mbr including the table as it was for the original install.

    In lilo, to replace it it would just be "lilo -u" wahlah !

    I would be very surprised if grub didn't do something similar, read through the man pages/docs with that in mind !.

    If you find something that could be a candidate, it should have a date that corresponds to the original mdk install date.

    Have a look at it in "hexedit" or an equivalent hexeditor. Look for the last two bytes in the file, they should be "55AA". The actual boot code will vary depending on the windows version that originally installed it. But it should contain a text string along the lines of
    " Invalid partition table. Error loading operating system. Missing operating system........"

    If so ... you have found it, from there just do ... as "root"

    ]# dd if=<found-file> of=/dev/hda bs=446 count=1

    Only copy the first 446 bytes back or you will screw up your existing partition table.

    Don't reinstall XP straight away though, try the suggestion in the other post above, ie; use the recovery facility of your windows install cd. Mount it and look see what it has available. Go to a computer shop in town and ask someone if they have a spare startup disk with fdisk for windows on it. Offer to pay for the floppy. Best to go for a small struggling shop though, rather than a large trendy one. The smaller ones are more likely to understand, or have the time to

    Can you mount your windows from a LiveCD ???

    If so, can you navigate to the C:/windows/command directory or its equiv ??? there should be a "fdisk" there. But then you need to get it on a bootable dos startup floppy ?

    Good Luck.


    jm

  5. #5
    Member registered user
    Join Date
    Sep 2005
    Posts
    40
    well, what i did was just to use the good ole w*n XP CD and use fixmbr and use diskpart to delete the offending partition/s. also, i have to activate the partition of wind*ws so it boots fine. thanks for the info about lilo uninstall thing. it's great to have a caring community here at knoppix.net!
    *peace*

Similar Threads

  1. Grub and MBR
    By grandad in forum Hardware & Booting
    Replies: 6
    Last Post: 02-27-2009, 09:03 PM
  2. Grub
    By tenlientl in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 05-02-2005, 08:23 PM
  3. How to use Grub
    By Neil Young &amp; Crazy Ho in forum General Support
    Replies: 1
    Last Post: 05-14-2004, 07:05 AM
  4. GRUB ... then nothing
    By dantay in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 03-16-2004, 02:06 PM
  5. Getting rid of Grub
    By fingers99 in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 08-10-2003, 04:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



SK HYNIX 32GB 2RX4 PC4 2666V ECC SERVER RAM picture

SK HYNIX 32GB 2RX4 PC4 2666V ECC SERVER RAM

$199.00



TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot picture

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot

$573.98



5 in 1 Memory Card Reader USB 3.0 OTG Adapter SD Card Reader For iPhone/iPad LOT picture

5 in 1 Memory Card Reader USB 3.0 OTG Adapter SD Card Reader For iPhone/iPad LOT

$9.99



Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot picture

USB 3.0 Micro SD SDHC TF Card Reader Memory Adapter for PC Laptop Camera lot

$3.75



M386A8K40DM2-CVF SAMSUNG 64GB (1X64GB) 4DRX4 PC4-2933Y SERVER MEMORY picture

M386A8K40DM2-CVF SAMSUNG 64GB (1X64GB) 4DRX4 PC4-2933Y SERVER MEMORY

$1400.00



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$21.68



1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot picture

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot

$202.50



Micron MTA36ASF4G72PZ-2G6D1SG 2RX4 32GB DDR4 PC4-2666V ECC Server Memory picture

Micron MTA36ASF4G72PZ-2G6D1SG 2RX4 32GB DDR4 PC4-2666V ECC Server Memory

$199.95