Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Error Collection [Part 7] [POST GRUB QUESTIONS HERE!]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 24, 25, 26  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
vputz
Guru
Guru


Joined: 16 Mar 2005
Posts: 310
Location: Oxford, England

PostPosted: Sun Jun 03, 2007 1:28 am    Post subject: Hooray, "Error 2" Reply with quote

Moving some things around on an old server, and I can't seem to get grub to work.

There are two drives in the system; they show up as hde and hdg. I can boot with the liveCD...

Code:

livecd ~ # mount /dev/hde1 /boot
livecd ~ # dir /boot/grub
e2fs_stage1_5  grub.conf         jfs_stage1_5    reiserfs_stage1_5  stage2           vstafs_stage1_5
fat_stage1_5   grub.conf.sample  menu.lst        splash.xpm.gz      stage2_eltorito  xfs_stage1_5
ffs_stage1_5   iso9660_stage1_5  minix_stage1_5  stage1             ufs2_stage1_5
livecd ~ # cat /boot/grub/menu.lst
#
# Sample boot menu configuration file
#

# Boot automatically after 30 secs.
timeout 30

# By default, boot the first entry.
default 0

# Fallback to the second entry.
# For booting GNU/Linux
#
#
title Gentoo 2.6.20-initial
root (hd0,0)
kernel /kernel-genkernel-x86-2.6.20-gentoo-r8 root=/dev/ram0 real_root=/dev/evms/root init=/linuxrc udev doevms
2
initrd /initramfs-genkernel-x86-2.6.20-gentoo-r8

title Gentoo 2.6.14-initial
root (hd0,0)
kernel /kernel-2.6.14-initial root=/dev/sda3

title Gentoo 2.6.12-initial
root (hd0,0)
kernel /kernel-2.6.12-initial root=/dev/sda3

title Gentoo 2.6.10-tape
root (hd0,0)
kernel /kernel-2.6.10-tape root=/dev/sda3

title  Gentoo 2.6.10-initial
root (hd0,0)
kernel /kernel-2.6.10-initial root=/dev/sda3
livecd ~ #


Okay, so hde1 is my chosen boot partition, it's formatted with ext3, mounts okay (outside EVMS; root partition is under EVMS, but that should be no problem; I've got evms working on a different system just fine).

Let's try installing grub:

Code:

grub> find /grub/stage1
 (hd0,0)

grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd0)"...  15 sectors are embedded.
succeeded
 Running "install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/menu.lst"... succeeded
Done.



Hey, that looks pretty good too!

But alas, it is not to be. Booting gets me as far as stage 1.5, then it's "Grub loading, please wait..." and immediately "Error 2"

Now, there are no symlinks that I can see in hde1. Hde1 is indeed ext2fs (grub even agrees!). And yet... error 2.

I'm totally mystified. The only thing I can think of is that somehow the mapping isn't working. I mean, after booting the liveCD, grub clearly sees stage1 on (hd0,0), and there are only two hard drives in the system (hde, hdg), and hdg doesn't have an appropriate partition that would have stage1. So I'm lost.

It should be noted that the two drives are on a promise fasttrak (I think) raid controller which thinks they may be raided--but I've used the system for years under linux (with a different boot drive) and it's always treated them as two separate drives.

Any suggestions?
Back to top
View user's profile Send private message
vputz
Guru
Guru


Joined: 16 Mar 2005
Posts: 310
Location: Oxford, England

PostPosted: Sun Jun 03, 2007 2:12 am    Post subject: Reply with quote

Answered my own question (as often happens). Yep, it was the Fasttrak card. I pulled it out and connected the drives directly to the motherboard and it booted right out of the gate.

Sigh...
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sun Jun 03, 2007 4:26 am    Post subject: Reply with quote

vputz wrote:
Answered my own question (as often happens). Yep, it was the Fasttrak card. I pulled it out and connected the drives directly to the motherboard and it booted right out of the gate.

Sigh...

I'm not sure, but I think the solution to this issue is to remove the stage1_5 files and install GRUB in the MBR again. IIRC, cyrillic and NeddySeagoon have talked about that earlier in this collection of GRUB threads - sorry, but I have no specific link.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Jun 03, 2007 10:24 am    Post subject: Reply with quote

vputz,

If the fasttrack has put the drives into a fakeraid set, then grub should honor that providing you do a fakeraid install.
It falls in a heap when you use the underlying drives seperately (as you have) and leave the fakeraid on.
Grub installs on a single drive, which is OK and why it boots from the motherboard but at boot time, raid 'chunks' are read from alternate drives ... that breaks at the end of the first 'chunk'.

If you turn off the fasttrack raid, it will JustWork
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Sat Jun 16, 2007 11:50 pm    Post subject: Reply with quote

Hello, perhaps someone can point me in the right direction... I'm having the error 17 problem. My boot partition is /dev/hda1, and I've tried installing grub both manually and using the grub-install command. I booted the system to a grub floppy image, and tried to mount this partition using the command root (hd0,0) in the grub shell. However, it just says that it is an unrecognized file system type. This file system is formatted ext2, and mounts fine in the livecd environment. I've tried but can't seem to boot from this prompt as well. Any ideas? I've been messing with this for a while, and have tried searching this thread and the forums as well as Google, and have not had much luck. Thanks for any input, and sorry if I missed something...
Back to top
View user's profile Send private message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Sun Jun 17, 2007 7:33 am    Post subject: Reply with quote

Never mind, it was a BIOS issue. All I did was play around with the IDE configuration settings. Most of the problem was probably due to the fact that this is an older machine, with an older BIOS.
Back to top
View user's profile Send private message
tek0
n00b
n00b


Joined: 09 Oct 2005
Posts: 43

PostPosted: Sun Jun 17, 2007 2:34 pm    Post subject: usb boot problems Reply with quote

I have installed grub to my usb stick, but when I boot it (BIOS says it is a RMD-FDD), the only thing displayed is "GRUB" in the topleft corner.
I then tried to boot the stick on my notebook, and the grub menu appeared, so the grub installation should be fine.
Any idea how I can debug this? BIOS is the newest version, the board is quite old, MSI KT400, could that be the reason?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Jun 17, 2007 2:53 pm    Post subject: Reply with quote

tek0,

Your first computer is expecting a USB device to fake a bootable area like a floppy, which was the original way bootable CDs were made.
It looks like it does not support newer formats.

Further, some USB devices look like real hard drives, with a partition table, others look like big floppies. I have both sorts.
To make matters worse, I have also seen one that appears to be both at the same time.

I suspect its a BIOS issue.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tek0
n00b
n00b


Joined: 09 Oct 2005
Posts: 43

PostPosted: Sun Jun 17, 2007 3:03 pm    Post subject: Reply with quote

NeddySeagoon wrote:
tek0,

Your first computer is expecting a USB device to fake a bootable area like a floppy, which was the original way bootable CDs were made.
It looks like it does not support newer formats.

Further, some USB devices look like real hard drives, with a partition table, others look like big floppies. I have both sorts.
To make matters worse, I have also seen one that appears to be both at the same time.

I suspect its a BIOS issue.


Hi NeddySeagoon,

thanks for the reply. I also tried booting freedos from the stick, which worked fine. Does freedos use a different format?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Jun 17, 2007 3:28 pm    Post subject: Reply with quote

tek0,

I don't know freedos but I guess from the name, its a DOS clone?
I would expect it to fake a DOS boot floppy on your USB stick.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tek0
n00b
n00b


Joined: 09 Oct 2005
Posts: 43

PostPosted: Sun Jun 17, 2007 3:31 pm    Post subject: Reply with quote

NeddySeagoon wrote:
tek0,

I don't know freedos but I guess from the name, its a DOS clone?
I would expect it to fake a DOS boot floppy on your USB stick.


So could it work with a stage2 (?) like the one I'm using right now on my boot dvd, if that's what the bios expects?
Back to top
View user's profile Send private message
Balu12
n00b
n00b


Joined: 31 Jul 2007
Posts: 1

PostPosted: Tue Jul 31, 2007 11:31 pm    Post subject: Possible Solution to 0x7 issue with one Hard Disk Reply with quote

Well, I had the 0x7 problem with GRUB, I have Linux and Windows in a same Hard Drive and I couln't acces to Windows any more but I could acces to Linux.

My solution:

I used a Windows Xp.
- boot from the cd.
- I used the recovery system with the "R" option and then I only use the command FIXBOOT (not FIXMBR) in the command promt.
- Restared the system, ran Linux from GRUB, restared again and ran Windows from GRUB and then I could boot Windows again.

I think that this is a wired posible solution but it realy worked for me. :roll:

And if you want to remove grub you can run FIXBOOT and FIXMBR from the rescue command line promt and restart the system.
Back to top
View user's profile Send private message
cell
n00b
n00b


Joined: 08 Aug 2007
Posts: 9
Location: Slovakia

PostPosted: Wed Aug 08, 2007 12:12 am    Post subject: Reply with quote

hi guys,
i have problem when i want to boot for the first time after installation, and that problem pop up during the booting process and it sounds like this:
Code:
Block device /dev/sda3 is not a valid root device...
The root block device is unspecified or not detected.
Please specify a device to boot,  or "shell" for a shell ...


please help me because i am going mad from this problem
thx
if u need to see some of my configuration files, just ask for that

edit: i forgot to tell u that i am trying to install gentoo with wmware 5.x
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Wed Aug 08, 2007 7:54 pm    Post subject: Reply with quote

Please post in The Grub Error Collection Part 8

Part 7 is now closed to new posts .... thats why we have part 8
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3 ... 24, 25, 26
Page 26 of 26

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum