LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 10-26-2006, 10:53 AM   #1
igreenhalgh
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Rep: Reputation: 0
Server rebooted unexpectedly, no boot of OS due to GRUB error 22


Hi folks

I have setup a debian 3.1 server running Apache and Plone CMS. Server has been running perfectly for three weeks. Today the server unexpectedly rebooted itself and when I noticed this, the screen simply said:

GRUB
Error 22

Looking up this error, it appears that the partition table has been corrupted. I think there was a power interruption caused by someone accidentally pulling on the power cord which caused the power to drop for a split second and the server to reboot.

Can someone please tell me how to fix this problem with GRUB and get the server booting again?
 
Old 10-27-2006, 09:47 AM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
As you correctly mentioned this is probably due to a corrupted partition table
Quote:
22 : No such partition
This error is returned if a partition is requested in the device
part of a device- or full file name which isn't on the selected
disk.
In order to rebuild the partition table (the table, not the partitions!) use a tool like fdisk or cfdisk
 
Old 10-31-2006, 11:59 AM   #3
igreenhalgh
LQ Newbie
 
Registered: Oct 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Well, I downloaded and booted the Super GRUB disk and used the auto repair option. It didn;t work, I don't get any errors, after the SCSI BIOS screen when it should start booting and showing kernel info, it just gives me nopthing, a white cursor and nothing else. GRUB disk and Debian install disk won't boot either now. I used a ubuntu disk to boot and that worked fine, it will run ubuntu live from the CD fine. I tried the boot from first hard disk option of the ubunto boot disk menu and it successfully booted from the hard disk into my debian install, and it all worked fine, so the data on the disks is fine, just an issue with GRUB it would seem.

So, I can boot into debian using the ubuntu boot disk. How do I repair the GRUB boot problem from within Debian after booting using a boto disk?
 
Old 11-06-2006, 03:09 AM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
From what you say I understand that you can now access the debian share(s). Try this: open a shell and as root type (or do sudo...)
Quote:
chroot /path/to/debian/root-directory
Just oin case you have a separate /boot partition do
Quote:
unmount /boot
mount /boot
to make sure the right /boot partition is mounted.
Then reinstall grub with the command
Quote:
grub-install /dev/hda
provided you want to install it to the MBR of your first HDD
Now try to boot normally. Hope that solves it!
 
  


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
grub fails on ubuntu 5.10 dual boot xp due to sda webhideout Ubuntu 2 10-08-2005 04:55 PM
Error USB-HUC on booting due in mdk10 due to mx700 Boudewijn Mandriva 4 10-09-2004 08:36 AM
Who rebooted my server ? and why ? itselango Linux - Security 5 09-23-2004 01:01 AM
GRUB show me command line after rebooted darkranger Linux - General 10 09-08-2004 04:13 AM
Can't boot MDK 9.2 due to fetal filesystem error. mir_sheely Linux - Software 0 09-01-2004 01:22 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration