LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-22-2005, 03:22 PM   #1
tumana
Member
 
Registered: Mar 2004
Location: Belgium
Posts: 102

Rep: Reputation: 15
Grub won't boot properly


My computer is dual booted between Windows XP and Fedora Core 3. There is only one physical disk. Windows is on the first partition and Fedora Core is on the second partition (all of the Linux file system is on the same partition).

I'm using GRUB for the bootloader which defaults to Windows (long story).

My co-worker (ya. this is my work computer) just discovered you can remotely shutdown a Windows computer from another Windows computer with the following command:
Code:
shutdown -s -m \\windowscomputername -t 01 -f
-s: shutdown
-m \\computername: machine name
-t xx: time in seconds
-f: force running applications to close

There I was, peacefully typing away when I see the shutdown message. His first attempt didn't have a time so I just typed
Code:
shutdown -a
in the command prompt (abort the system shutdown). So his second try used the time limit of one second which left me no time to stop it.

OK. So I waited for my computer to shutdown.

The problem was when it started up again. GRUB didn't show me the normal screen; instead, it had a command line prompt. I tried using a few Unix commands like ls, cd, shutdown, ...

It only worked when I looked up a couple of commands on the internet. Namely,
Code:
chainloader +1
rootnoverify (hd0,0)
boot
Then it booted into Windows. Good! But when I restarted, it still booted into the GRUB command line.

It boots... but I want to fix it so it worked like it did before. What do I do? How do I boot into the second partition? (hd0,1) didn't work.

thanks in advance,
ian
 
Old 03-22-2005, 03:43 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Boot up with the Mandrake cdrom1 and type: rescue or linux rescue
There should be an option to repair the boot loader.

Then I would let the co-worker know that crashing the machines will stop or management will know about it.
 
Old 03-22-2005, 11:53 PM   #3
tumana
Member
 
Registered: Mar 2004
Location: Belgium
Posts: 102

Original Poster
Rep: Reputation: 15
Quote:
Boot up with the Mandrake cdrom1 and type: rescue or linux rescue
There should be an option to repair the boot loader.
Ok. I think I have a Mandrake CD somewhere.

Quote:
Then I would let the co-worker know that crashing the machines will stop or management will know about it.
lol. At first I was quiet because I felt like punching his face in, but when I saw it was still bootable I just gave him the guilt trip. <grins />
He felt really bad, although next time he might loose his network privileges.
 
Old 03-23-2005, 06:58 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Quote:
My computer is dual booted between Windows XP and Fedora Core 3
Rats, I was looking at the info on the side when I said to use the Mandrake cd.
tumana
Distribution: Mandrake

If you do have FC3 installed, use the Fedora cdrom1 and type: linux rescue
Allow it to detect and mount the Fedora system as /mnt/sysimage.
Then
type: chroot /mnt/sysimage
type: grub-install /dev/hda
type: reboot
 
Old 03-24-2005, 07:45 AM   #5
tumana
Member
 
Registered: Mar 2004
Location: Belgium
Posts: 102

Original Poster
Rep: Reputation: 15
Quote:
Rats, I was looking at the info on the side when I said to use the Mandrake cd.
haha... I haven't updated that in a while. That's cool.

I think I found the problem! I used KNOPPIX and it only detected my Windows partition (hda1)! hda2 is no where to be found! GRUB can't find its configuration file so of course it won't boot correctly. I've never seen this, but my buddy's little shutdown prank completely unallocated any partition other than the Windows one (hda1).

All in all, I think I'm going to install another distro and hopefully the installation will overwrite the present bootloader. It's about time I test another Linux distro.

Thanks. Let me find my Gentoo CD. It's been a while I've used it.
 
Old 03-24-2005, 08:41 AM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
You must be a good natured person as you are taking the whole thing with a smile.
I'd be so mad that I couldn't see straight for a month. Maybe...

But then, I have backup images so it wouldn't be any real issue.
 
Old 03-24-2005, 01:12 PM   #7
tumana
Member
 
Registered: Mar 2004
Location: Belgium
Posts: 102

Original Poster
Rep: Reputation: 15
I didn't loose any data. If he had wiped out my server at home he would have been picking up pieces of his computer on the highway. Plus, this is strike one. lol

Thanks for the help.
 
  


Reply


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
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 04:13 AM
GRUB doesn't load properly n0va Linux - General 1 08-07-2005 09:07 PM
System won't boot properly knoppix doesn't initialize properly rodewan Linux - Software 0 01-23-2005 04:35 PM
Suse 9, RH9 wont install properly. Mandrake 9 wont boot properly? Help. l2ich84 Linux - Newbie 1 01-31-2004 12:02 PM
gentoo -- how do i properly config grub for a dual boot system Laptop2250 Linux - Distributions 3 01-02-2004 09:19 PM


All times are GMT -5. The time now is 08:45 AM.

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