LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-20-2005, 05:35 PM   #1
bschiett
Member
 
Registered: Feb 2005
Posts: 32

Rep: Reputation: 15
help ! grub stage 2 read error


Hi all,

I have a linux system set up (arch linux) and I was trying to tar-gz a Maildir folder, when I suddenly got 'cannot stat', 'read only filesystem', and my shell was no longer responding to my keyboard ( i was logged in through SSH).

so I went to the machine and did a reset using the reset button, thinking it would come up just fine. but it didn't. GRUB is saying Loading Stage 2.. Read error, and that's where the system hangs now...

how do I get my system back alive? what is broken and how do i fix it?

thanks!
Bert
 
Old 09-20-2005, 05:45 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
Old 09-20-2005, 06:47 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I could rant and rave about the no-nos, but I won't. Apparently, you've broken the grub setup, and it can't find stage 2 now.

My suggestion: if you have Knoppix, Gnoppix, or some other rescue disk, use it. If not, try the installation cd/dvd for your distro (which you don't name, but would be nice to know for anyone trying to help you), and try to boot from installation media, rather than harddisk.

Once you have booted into a running version of Linux, edit the running /etc/fstab to add an entry for the partition wherein resides the /boot/grub directory.

Then create a mount point for that partition in the running version (don't worry, it won't be there when you re-boot. You just need a place to mount the partition so that you can read the file). Something like: mkdir /mnt/tmp would work, as well as any other name.

With those two edits done, open a term window and enter the command: mount /mnt/tmp (or whatever you named it).

Look for grub.conf or menu.lst in /boot/grub (it varies among distros). Check the 'kernel' entry to see if it points to the wrong partition for grub stage 2 (the /boot directory of your installation). On one of my distros, that line begins with:
kernel (hd0,5)/vmlinuz root=/dev/hda8, where 'kernel (hd0,5)/vmlinuz points to the location of the compressed kernel image, and root=/dev/hda8 points to the location of the root of the filesystem (/).

The fact that grub gives you an error message says that grub is still active in the MBR. Something else has changed, and it can't find the rest of itself (an idenity crisis?).
 
Old 09-20-2005, 09:03 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,133

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
The Arch disk won't be much good for this - it's basically an installer.
I like to always keep a Knoppix around - much more generally useful for recovery.

If grub can't find stage2, somebody has moved it (or it's partition) - or overwritten it.
Get Knoppix up and see if it can mount your partitions, and see if you can browse them. At least that will indicate if the partition table and file systems are o.k.

Hopefully they are - after that I'd go back to the Arch disk, and see if you can get into the menu.lst (under System Configuration), and check it looks o.k., then re-install grub from there, just like the initial install.

Last edited by syg00; 09-20-2005 at 09:04 PM.
 
Old 09-21-2005, 01:27 AM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
grub just gets messed up. You reinstall and away it goes.

/sbin/grub-install /dev/sda
 
  


Reply



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
help ! grub stage 2 read error bschiett Linux - General 1 09-20-2005 05:45 PM
HD Grub Stage 2 Read Error jmw83 Linux - Newbie 13 06-07-2004 06:51 PM
GRUB error when trying to install stage 1 Leenuks Linux - Newbie 5 02-16-2004 05:15 AM
URGENT Help with Grub Install stage 1 error arundeep78 Linux - Software 2 02-14-2004 07:34 AM
GRUB Loading stage 1.5 ...... Error 25 sean21 Linux - Newbie 2 11-08-2003 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:36 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
Open Source Consulting | Domain Registration