-
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
![Quote](images/misc/quote_icon.png)
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
![ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield picture](/store/img/FhQAAOSwzL9iDqc3/s-l225//ASUS-H110M-R-Motherboard-Intel-6th-7th-Gen-LGA1151.jpg)
ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield
$42.00
![Gigabyte GA-Q170M-D3H-GSM LGA1151 DDR4 Desktop Motherboard w/ I/O Plate picture](/store/img/lIMAAOSwF5BmkHwt/s-l225//Gigabyte-GA-Q170M-D3H-GSM-LGA1151-DDR4-Desktop-Mot.jpg)
Gigabyte GA-Q170M-D3H-GSM LGA1151 DDR4 Desktop Motherboard w/ I/O Plate
$39.99
![Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard picture](/store/img/jXkAAOSw6wxml2Cm/s-l225//Asus-Prime-H310M-A-R2-0-Intel-LGA-1151-DDR4-Deskto.jpg)
Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard
$54.99
![GIGABYTE B450M DS3H WIFI (AMD Ryzen AM4/M.2/HMDI/DVI/USB 3.1/DDR4 Motherboard picture](/store/img/oaoAAOSwl2RkUzG5/s-l225//GIGABYTE-B450M-DS3H-WIFI-AMD-Ryzen-AM4-M-2-HMDI-DV.jpg)
GIGABYTE B450M DS3H WIFI (AMD Ryzen AM4/M.2/HMDI/DVI/USB 3.1/DDR4 Motherboard
$64.99
![ASUS PRIME B360M-C LGA1151 DDR4 mATX Motherboard w/Intel i3-8100 CPU & IO Shield picture](/store/img/OegAAOSwLrZmb1lr/s-l225//ASUS-PRIME-B360M-C-LGA1151-DDR4-mATX-Motherboard-w.jpg)
ASUS PRIME B360M-C LGA1151 DDR4 mATX Motherboard w/Intel i3-8100 CPU & IO Shield
$57.00
![Asus Prime A320M-K mATX AM4 Motherboard (Ryzen 1000-5000 Ready) picture](/store/img/v2sAAOSwFuxlhzOj/s-l225//Asus-Prime-A320M-K-mATX-AM4-Motherboard-Ryzen-1000.jpg)
Asus Prime A320M-K mATX AM4 Motherboard (Ryzen 1000-5000 Ready)
$49.99
![GIGABYTE GA-X99-UD4P MOTHERBOARD, M.2 SATA3, LGA2011-3, DDR4, & I/O Shield picture](/store/img/ZI0AAOSwKLBmV33e/s-l225//GIGABYTE-GA-X99-UD4P-MOTHERBOARD-M-2-SATA3-LGA2011.jpg)
GIGABYTE GA-X99-UD4P MOTHERBOARD, M.2 SATA3, LGA2011-3, DDR4, & I/O Shield
$69.99
![Asus Prime H570-PLUS LGA1200 ATX Motherboard | Fast Ship, US Seller picture](/store/img/sUsAAOSw2~dloH2z/s-l225//Asus-Prime-H570-PLUS-LGA1200-ATX-Motherboard-Fast-.jpg)
Asus Prime H570-PLUS LGA1200 ATX Motherboard | Fast Ship, US Seller
$64.97
![Gigabyte M-ATX motherboard with Intel Core i3 8100 CPU and 8GB DDR4 RAM picture](/store/img/CCsAAOSw9mtkQuoe/s-l225//Gigabyte-M-ATX-motherboard-with-Intel-Core-i3-8100.jpg)
Gigabyte M-ATX motherboard with Intel Core i3 8100 CPU and 8GB DDR4 RAM
$84.00
![ASUS B85M-E Motherboard Intel B85 (4th Gen) LGA1150 DDR3 microATX picture](/store/img/sjQAAOSw8blmdbCX/s-l225//ASUS-B85M-E-Motherboard-Intel-B85-4th-Gen-LGA1150-.jpg)
ASUS B85M-E Motherboard Intel B85 (4th Gen) LGA1150 DDR3 microATX
$39.99