LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-26-2004, 01:52 AM   #1
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Grub disappeared?


Hello folks! Very strange events are taking place on my laptop. Since it was given to me by work, I have to have a running version of XP, but I was dual-booting with Debian. I built XP on half the single hard drive first, then installed Debian and grub on the 2nd half of the drive. My /boot/grub/menu.lst had 3 choices; Deb 2.4.25 (normal boot choice, comes up if nothing is pressed during boot), Deb 2.4.25 (recovery mode), and Windows XP. It could boot into both normal Deb and XP with no problems prior to today, and I never needed the recovery mode.

Waking up this morning, I thought I should try and upgrade the kernel. I followed the guide on the debian forum, and installed the 2.6.8.1 kernel. That process went fairly well. Not perfectly, as I couldn't get my network card functioning in the new kernel when it was fine in the old one, but other than that I was ready to call it a successful upgrade. I rebooted, and noticed that Grub came up, but now had 4 choices; 2.6.8.1 (normal), 2.6.8.1 recovery, 2.4.25 normal, and 2.4.25 recovery. Windows had been removed from the /boot/grub/menu.lst file. Not a problem, I booted into the 2.4.25 kernel, added The Windows XP info to the file, and rebooted. I scrolled down to the 5th choice, Windows XP, and it started normally. I logged into Windows, and then proceeded to reboot to go back to work on the 2.6.8.1 issues. I walked away during the reboot, and came back not with 2.6.8.1 Debian as I would have expected, but I came back to Windows XP.

Susbsequent reboots with me paying attention showed no sign of grub at all. As soon as I get the report that all of the RAM is present and functional, it lists the hard drive and DVD, then Windows starts. I didn't do anything in Windows, no software or hardware installs, and didn't doing anything with grub that would turn it off.

It gets stranger still. Windows now hangs on the startup screen. I don't even get as far as my login. It hangs and dies. When I reboot, I am again given no choice of OS, then WIndws starts, reports that it failede to load last time, and asks about safe mode. If I select safe mode, it will boot into it, allow me to sign in and use the safe mode options. I don't see any problems (no reported hardware conflicts, nothing strange in the event log). Trying to reboot into normal windows still hangs on the title screen. Safe mode continues to work and show no problems.

I get the idea that I should use The Deb install CD to repair things. Rebooting with that disk in the drive, it goes to the Debian start screen, then hangs and won't proceed. I have Knoppix 3.4, so I tried that, and it always hangs on finding USB devices.

I know the DVDrom drive works, as that is what I used to Install both XP and Debian. I can't imagine what could simultaneously wipe grub out, and paralyze the DVDrom boot. Even if the hard drive was trashed, I should still get the Deb CD or certainly the Knoppix CD to load and run. Right now the only "functionality" I have on the computer is safe mode of windows XP, which is about the most useless thing I could ever Imagine. Boot disks aren't an option, the laptop supports popping out the DVD and putting a floppy drive in its place, but the drive itself has been lost and not replaced.

Any ideas that people have would be greatly appreciated!

Peace,
JimBass
 
Old 09-27-2004, 11:10 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Original Poster
Rep: Reputation: 49
Problem solved!

Why it wouldn't boot into windows I don't know, but that problem resolved itself. When I booted the box at work Monday morning, it went directly into XP. From there I booted into Knoppix, modified the write permissions on the hard drives, and looked in /boot/grub. Everything looked to be in place and the menu.lst file was fine. I typed "grub" to get a grub prompt, gave the commands:

grub>root (hd0,1)

grub>find /boot/grub/stage 1 (it was found right where it should be, in /boot/grub/)

grub>setup (hd0)

It said it was set, I rebooted without knoppix, and all was good. I still don't know what happened to grub before, but it just needed to be re-initialized.

Peace,
JimBass
 
  


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
/etc disappeared Fonk Linux - Software 7 11-18-2008 06:34 PM
Taskbar disappeared stork Mandriva 1 10-21-2005 03:09 AM
Grub disappeared and no os found message shujja Linux - Newbie 4 09-05-2005 01:59 AM
Partition Disappeared cb8100 Slackware 2 02-20-2004 02:15 PM
Grub.conf disappeared? quintar_51 Linux - General 1 11-14-2003 12:23 PM


All times are GMT -5. The time now is 08:43 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