-
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
-
Senior Member
registered user
Re: Knoppix as Rescue - Fixing the MBR

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.
-
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
-
By ibrewale in forum Networking
Replies: 3
Last Post: 08-16-2005, 02:29 AM
-
By Markus in forum Tips and Tricks
Replies: 0
Last Post: 11-07-2004, 10:36 AM
-
By popcorn in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 06-06-2004, 11:08 AM
-
By todsr1 in forum General Support
Replies: 1
Last Post: 10-12-2003, 09:26 AM
-
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
-
Forum Rules

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

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

Windows 11 Pro Install/Recovery/Repair USB Flash Drive
$35.00

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

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q
$169.00

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

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

MTC8C1084S1SC56BD1 Micron 16GB DDR5 1Rx8 PC5-5600B 5600Mhz SO-DIMM Memory
$149.99

Memory Card Reader Mini 26-IN-1 USB 2.0 High Speed For CF xD SD MS SDHC
$4.95

Microsoft Office 2021 Pro Plus USB for 1PC Windows 10 & 11
$62.55