LinuxQuestions.org
Review your favorite Linux distribution.
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 01-03-2008, 02:28 PM   #1
marco.hahn
LQ Newbie
 
Registered: Jan 2007
Distribution: Ubuntu 14.04
Posts: 23

Rep: Reputation: 0
Grub Error 21 yet again


I have a system with IDE-DVD, one SATA HD, on which an openSUSE 10.3 is installed. This worked fine. I have multiple partitions, but most of them are not used:

Code:
# fdisk -l

Platte /dev/sda: 500.1 GByte, 500107862016 Byte
255 Köpfe, 63 Sektoren/Spuren, 60801 Zylinder
Einheiten = Zylinder von 16065 * 512 = 8225280 Bytes

     Gerät boot.  Anfang      Ende    Blöcke   Id  Dateisystemtyp
/dev/sda1             1      2611  20972826    7  HPFS/NTFS
/dev/sda2          2612     60801 467411175    f  Win95 Erw. (LBA)
/dev/sda5          2612      2742   1052226   82  Linux Swap
/dev/sda6   *      2743      7964  41945683+  83  Linux
/dev/sda7          7965      9270  10490413+  83  Linux
/dev/sda8          9271     60001 407496726   83  Linux
sda1 -- unused, prepared for later use
sda5 -- used as Swap
sda6 -- my root filesystem
sda7 -- a kind of transfer partition, mounted
sda8 -- a separate data partition, mounted


Then I tried to install another copy of openSUSE 10.3 on a memory stick (to have a running Linux in case of trouble ...)

Since the point when I was told the system will reboot after copying all packages, I get:

Code:
Grub loading stage 1.5.

Grub loading, please wait ...
Error 21
No matter whether I have a memory stick inserted or not, no matter whether I go via openSUSE install CD or not. (Now I have trouble and no running Linux ;-/)


/boot/vmlinuz-2.6.22.5-31-default and /boot/initrd-2.6.22.5-31-default are readable from a live CD.

Further info:

Code:
# cat device.map
(hd0)   /dev/sda
Code:
# cat menu.lst
# Modified by YaST2. Last modification on Sa Okt 20 12:41:02 UTC 2007
default 0
timeout 8
gfxmenu (hd0,5)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 10.3
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJ1DP835850-part6 vga=0x31a    resume=/dev/sda5 splash=silent showopts
    initrd /boot/initrd-2.6.22.5-31-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 10.3
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_HD501LJS0MUJ1DP835850-part6 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
    initrd /boot/initrd-2.6.22.5-31-default
Any ideas? Thanks!

Marco
 
Old 01-03-2008, 03:12 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,999

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
Doesn't sound like you have USB boot. Regardless you should have installed grub to the key, not the internal disk MBR.
Boot a rescue disk and try this (as root)
Code:
root (hd0,5)
setup (hd0)
Reboot.

Mmmm - just re-read your post.
Quote:
No matter whether I have a memory stick inserted or not, no matter whether I go via openSUSE install CD or not. (Now I have trouble and no running Linux ;-/)
Does this mean you can't boot a CD at all ??? Have you checked the BIOS boot order ???.
 
Old 01-04-2008, 03:06 PM   #3
marco.hahn
LQ Newbie
 
Registered: Jan 2007
Distribution: Ubuntu 14.04
Posts: 23

Original Poster
Rep: Reputation: 0
Smile

Thanks syg00. Regarding your second quote: I can boot a rescue system, but if I try to go via "Install" on the install CD to repair the system, the process aborts with a reset after a while.

I tried your hint: rescue system, log in as root, enter "grub" and the two commands you gave. The next boot succeeded.

Thanks a lot!
 
  


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
Sofware RAID 1 + Fedora Core 3 + Boot Error L1 + GRUB 21 ERROR najeebsyed2 Linux - Hardware 0 10-25-2007 02:20 PM
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 11:29 AM
Error Grub stage2 loading error (using FC6) on seperate hdd Anifield Linux - Newbie 7 03-20-2007 02:14 PM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 09:33 AM

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

All times are GMT -5. The time now is 03:05 PM.

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