Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-14-2007, 04:02 PM   #1
LQ Newbie
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
repair grub loader over network is it possible?

i have a laptop with no cdrom drive and no floppy drive just usb ports (which if i understand correctly can not be booted from). i accedently deleted my swap partition along with the linux drive with my partition magic, last night after a few to many drinks. so now i am at work tying to use my laptop and when i turn on my laptop it just comes up with:


GNU GRUB version 0.97 (638K lower / 1439680K upper memory)

[Minimal BASH- like editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename.]


is there anyway to fix this over my network? i had a dual boot system with windows xp and fedora 5 or 6 i dont remember. we installed it all over the network when i was going to school. but that was a long time ago and i have no idea how to do it now. but is there anyway i can fix this boot up with out lossing all of my stuff? please help
Old 02-14-2007, 05:32 PM   #2
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Yes you can, assuming your machine has a network connection from which it can boot. If so, put Knoppix into a nearby machine and tell the running instance of knoppix to let other machines netboot it (I don't know how this is done, but google might). Boot up your laptop into knoppix. Either run gpart (a part of knoppix) or download, compile and run testdisk; testdisk should be able to recover your partitions if you haven't scrambled them too much (I've had positive experience with this, and no experience with gpart). That's what I'd do.
Old 02-14-2007, 06:39 PM   #3
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,289

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You can also just enter GRUB commands directly at the prompt. Chances are you've managed to re-order your partitions so GRUB can't find its configuration file. You can type in the kernel and initrd commands by hand and then tell GRUB to boot them (it helps if you have another identical system to compare to so you get the correct kernel image and initrd). Then you can redo grub-install from within the OS to fix it up.

Also, some newer computers can boot from USB -- check your BIOS (if your laptop is more than a couple year old, though, forget it). I've booted a CentOS rescue image off of a USB thumb drive.
Old 02-14-2007, 10:32 PM   #4
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
From your description it sounds like you didn't remove your WinXP partition(s). Chances are WinXP is installed on (hd0,0). You can boot into windows using the following commands at the grub prompt.

rootnoverify (hd0,0)
chainloader +1

If you want to get Fedora Core installed again that will take a bit of searching and reading. Booting from a network is more complicated and you will need a server that has been configured to do this. The Fedora core site mentions Booting from the Network using PXE, but they don't go into much detail.

If your goal is just to get WinXP running you'll need to uninstall the grub boot loader. Typical way of doing this is using the WinXP CD in rescue mode and giving the command FIXMBR at the console. I don't know how to accomplish that without a floppy or CD. Guess the best place to start looking for that would be the Microsoft site. Sorry I couldn't be more specific with my answer.


Last edited by wmakowski; 02-14-2007 at 10:34 PM.
Old 02-15-2007, 10:32 AM   #5
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
Just found this article on Installing FC and thought it may be of some help.


Last edited by wmakowski; 02-15-2007 at 10:34 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can you repair grub over network? kissthis66 Linux - Laptop and Netbook 1 02-14-2007 04:24 PM
how to repair grub without bootable floppy UFC Linux - General 4 07-03-2006 06:10 PM
How to repair Boot Loader ariestruong Linux - Newbie 6 03-23-2006 01:20 AM
Repair grub? nyroc Linux - Newbie 1 01-09-2003 07:50 PM
Grub repair Snake007uk Linux - General 13 05-10-2002 08:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration