Results 1 to 3 of 3

Thread: Knoppix as Rescue - Fixing the MBR

  1. #1

    Knoppix as Rescue - Fixing the MBR

    Hello all, I recently got myself into a scrape with a debian installation. Suffice it to say, I cannot boot into either winxp or debian anymore due to the WinXP rescue console's FIXMBR command. So I've loaded up knoppix...

    Recently a similar thing happened to a friend and he used some varient of fdisk /mbr (THAT command does not work) in knoppix under root term to fix the MBR so that he could boot back into windows.

    I would REALLY appreciate it if anyone could tell me the command to fix/write a new MBR. Thanks

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: Knoppix as Rescue - Fixing the MBR

    Quote Originally Posted by ChivalricRonin
    Hello all, I recently got myself into a scrape with a debian installation. Suffice it to say, I cannot boot into either winxp or debian anymore due to the WinXP rescue console's FIXMBR command. So I've loaded up knoppix...

    Recently a similar thing happened to a friend and he used some varient of fdisk /mbr (THAT command does not work) in knoppix under root term to fix the MBR so that he could boot back into windows.

    I would REALLY appreciate it if anyone could tell me the command to fix/write a new MBR. Thanks
    Boot with the Knoppix CD using knoppix 2 then.
    Code:
     
    mount /dev/hd?? /mnt/hd??
    chroot /mnt/hd??/ /sbin/lilo -v
    shutdown -r now
    Replace the ?? with the partition number and drive letter of the / partition. When you chroot (change root) and write lilo to the disk it will use the same configuration that was working before if you want to make any changes you should do so before the chroot command.

  3. #3
    I was using Grub before as a bootloader, not Lilo. Will that impact anything? Also, I managed to get into windows by semi-reinstalling debian and editing the menu.lst of grub, but after deleting the partition I just get error 22 from Grub.

    To recap...

    I now have one partition that is NTFS, and a whole bunch of freespace. A Broken GRUB is in my MBR. Is there a method that I could like write a clean MBR of all zeros or something, so that I could boot to my WinXP recovery disk, and have it FIXMBR and write a new bootloader? At this point I'm not interested in reinstalling linux. Thanks!

    EDIT: GOT IT! It turns out FIXMBR will work, but only if any linux partitions have been completely deleted.

Similar Threads

  1. eth0 not working after 'fixing' loopback
    By ibrewale in forum Networking
    Replies: 3
    Last Post: 08-16-2005, 02:29 AM
  2. Fixing the keyboard in kdm
    By Markus in forum Tips and Tricks
    Replies: 0
    Last Post: 11-07-2004, 10:36 AM
  3. fixing initrd boot screen?
    By popcorn in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 06-06-2004, 11:08 AM
  4. Fixing up /etc/fstab
    By todsr1 in forum General Support
    Replies: 1
    Last Post: 10-12-2003, 09:26 AM
  5. Fixing wine in 2003-09-05
    By Fabianx in forum Tips and Tricks
    Replies: 1
    Last Post: 09-21-2003, 03:38 PM

Posting Permissions

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


Corsair Vengeance LPX 16GB (2x8GB) CMK16GX4M2B3000C15 DDR4 Memory picture

Corsair Vengeance LPX 16GB (2x8GB) CMK16GX4M2B3000C15 DDR4 Memory

$69.99



DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix picture

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix

$66.00



32GB Kit (2x16GB) - 16GB 1Rx8 DDR-4 3200AA MHz SO-DIMM Hynix HMAA2GS6CJR8N-XN picture

32GB Kit (2x16GB) - 16GB 1Rx8 DDR-4 3200AA MHz SO-DIMM Hynix HMAA2GS6CJR8N-XN

$139.00



RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED picture

RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED

$445.00



Crucial DDR3L 16GB 2 x 8GB 1600 MHz PC3L-12800 Laptop RAM Sodimm Memory 1.35V picture

Crucial DDR3L 16GB 2 x 8GB 1600 MHz PC3L-12800 Laptop RAM Sodimm Memory 1.35V

$41.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



Samsung 8GB (1x8GB) 2400MHz 260-pin SODIMM GDDR4 RAM Memory (M471A1K43CB1-CRC) picture

Samsung 8GB (1x8GB) 2400MHz 260-pin SODIMM GDDR4 RAM Memory (M471A1K43CB1-CRC)

$250.00



Intel Optane NMA1XXD128GPS DDR4 2666 4Rx4 ECC 128GB Server Ram picture

Intel Optane NMA1XXD128GPS DDR4 2666 4Rx4 ECC 128GB Server Ram

$80.00



Corsair Vengeance LPX 32GB (4x8GB) DDR4-2400 PC4-19200 DIMM CMK64GX4M4A2400C14 picture

Corsair Vengeance LPX 32GB (4x8GB) DDR4-2400 PC4-19200 DIMM CMK64GX4M4A2400C14

$150.00



A-Tech Desktop DDR4 2400 MHz DIMM 288-Pin DDR4 64GB/4X16GB RAM No Return picture

A-Tech Desktop DDR4 2400 MHz DIMM 288-Pin DDR4 64GB/4X16GB RAM No Return

$290.00