Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Error Collection [Part 1001]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 29, 30, 31  Next  
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
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Nov 08, 2008 9:05 pm    Post subject: Reply with quote

rixtr66,

Merged to the grub sticky.

Does the file kernel-2.6.25-gentoo-r9 with that *exact* name exist in your /boot ?
Error 15 means that grub cannot find a file you told it to look for.
_________________
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
zipf
n00b
n00b


Joined: 26 Dec 2007
Posts: 5
Location: Australia

PostPosted: Mon Nov 10, 2008 1:19 pm    Post subject: configuring grub with gentoo + openbsd Reply with quote

Hi all,
I recently installed openbsd on a separate hard drive to my gentoo drive, but I've got no idea how to configure grub to recognize openbsd.

Code:

# cat /boot/grub/device.map
(fd0)   /dev/fd0
(hd0)   /dev/sda
(hd1)   /dev/sdb


My grub.conf contains the following entries:

Code:

title Gentoo 2.6.28-rc3-git4
root (hd0,0)
kernel /boot/kernel-2.6.28-rc3-git4 root=/dev/sda3

title OpenBSD 4.3
root (hd1,0,1)
kernel --type=openbsd /bsd

But when I attempt to boot into openbsd I get: "Error 27: Unrecognized command".

Additionally,
Code:

grub> root (hd1,0,a)
 Filesystem type is ffs, partition type 0xa6

grub> setup (hd1,0,a)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 15: File not found


Do I need to configure something in openbsd?

Any suggestions?
Back to top
View user's profile Send private message
zipf
n00b
n00b


Joined: 26 Dec 2007
Posts: 5
Location: Australia

PostPosted: Tue Nov 11, 2008 2:32 am    Post subject: Reply with quote

ignore the above post, has been fixed.
Back to top
View user's profile Send private message
bombcar
Guru
Guru


Joined: 08 Apr 2003
Posts: 453
Location: Wisconsin

PostPosted: Tue Nov 11, 2008 6:31 am    Post subject: Reply with quote

I have compiled a kernel for my 3ware system (3w-9xxx) using xfs on /dev/sda2 for the root filesystem.

When booting, it says:

Code:
Block device /dev/sda2 is not a valid root device...


but if I drop to a shell it is there; and if I tell it to use /dev/sda2 it boots just fine, so everything works.

However, it is annoying for the boot process to stop. What am I missing?

Code:

default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

# genkernel users

title=Gentoo Linux 2.6.25-gentoo-r9-working
root (hd0,0)
kernel /kernel-genkernel-x86-2.6.25-gentoo-r9-working root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda2
initrd /initramfs-genkernel-x86-2.6.25-gentoo-r9-working


Code:

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1      /boot      ext3      noauto,noatime   1 2
/dev/sda2      /      xfs      noatime      0 1
/dev/cdroms/cdrom0   /mnt/cdrom   iso9660      noauto,ro   0 0
#/dev/fd0      /mnt/floppy   auto      noauto      0 0

# NOTE: The next line is critical for boot!
proc         /proc      proc      defaults   0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm         /dev/shm   tmpfs      nodev,nosuid,noexec   0 0


As it works when I manually type /dev/sda2 as the answer to the Boot device not found prompt I don't think it's the 3w-9xxx kernel module (which loads beforehand) or the xfs module - do I need to insert a pause somehow?
Back to top
View user's profile Send private message
Chintan
n00b
n00b


Joined: 15 Nov 2008
Posts: 2
Location: Singapore

PostPosted: Sun Nov 16, 2008 12:59 pm    Post subject: Reply with quote

Thanks for the reply, the problem is solved. :)
I need some more information. I am done with installation of gentoo. However, i find error with my boot loader.
I am installing gentoo on is on external usb hard disk . My boot partition is sda2. I tried to install grub on /dev/sda first, but got some errors, i used (hdd1,1). So i installed grub again on /dev/sda2, but still the same error, not sure why. The following is my partition table:

/dev/sda2 - Boot Partition
/dev/sda3 - swap
/dev/sda4 - Root partition

PS: Excuse me if this is not the right thread to discuss.

Appreciate if you can adivce.
_________________
Regards,
Chintan Dave
Back to top
View user's profile Send private message
luckystraights
n00b
n00b


Joined: 16 Nov 2008
Posts: 10

PostPosted: Sun Nov 16, 2008 1:34 pm    Post subject: Reply with quote

I posted elsewhere, before I noticed the sticky, but would appreciate some help.

problem summary = rebooted after install, just get grub command line, I tried the symlink mentioned at the top of the thread, but it doesn't seem to have done anything (link already exists).

https://forums.gentoo.org/viewtopic-t-715122.html

Thanks.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Nov 16, 2008 3:30 pm    Post subject: Reply with quote

Chintan,

I have moved your post to our grub sticky as you have a grub problem

You must install grub to the MBR of your USB drive, not to a partition.
The BIOS only reads the MBR during the boot process.
_________________
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
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Nov 16, 2008 3:32 pm    Post subject: Reply with quote

luckystraights,

Grub is loaded but unable to find its config file to proceed unaided.
Type the commands needed to boot at the prompt.
_________________
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
luckystraights
n00b
n00b


Joined: 16 Nov 2008
Posts: 10

PostPosted: Sun Nov 16, 2008 5:33 pm    Post subject: Reply with quote

NeddySeagoon wrote:
luckystraights,

Grub is loaded but unable to find its config file to proceed unaided.
Type the commands needed to boot at the prompt.


I'm not sure on the commands, would this work
Code:

boot /boot/"name of boot image"


How would I go about a permanent fix?

Thank you
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Nov 16, 2008 6:10 pm    Post subject: Reply with quote

luckystraights,

If you use an initrf file you also need to load that.

If the manual entry at the promt seems to work, check your symlink.
Grunb looks for a file called menu.lst thats lowercase LST, not numeral 1, st
_________________
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
razixx
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2008
Posts: 75
Location: The Pas, MB

PostPosted: Fri Nov 21, 2008 5:07 pm    Post subject: Reply with quote

Hi I have an aspire one netbook, trying to dualboot ubuntu with gentoo. I get a KERNEL PANIC error when I go to load the gentoo kernel
Cannot open root device sda7 on unknown-block(0,0) PLease append a correct root.

Code:

title           Gentoo 2008.0, kernel 2.6.25-r9-gentoo-sources
root            (hd0,0)
kernel          /gentoo-2.6.25-r9 root=/dev/sda7 video=uvesafb:mtrr:3,ywrap,1024x600-24@60


I have intel sata support compiled in along with ext2 and 3. Can the root file system exist on a logical partition?

Code:

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1               /boot           ext2            noauto,noatime  1 2
/dev/sda7               /               ext3            noatime         0 1
/dev/sda5               none            swap            sw              0 0
/dev/sda6               /tmp            ext3            noatime         0 0
#/dev/cdrom             /mnt/cdrom      auto            noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Nov 21, 2008 5:11 pm    Post subject: Reply with quote

razixx,

Your kernel is missing SCSI disk support or the low level chip set support under the SATA menu.
For more detail, I need your lspci output.
_________________
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
razixx
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2008
Posts: 75
Location: The Pas, MB

PostPosted: Fri Nov 21, 2008 5:18 pm    Post subject: Reply with quote

Code:

00:00.0 Host bridge: Intel Corporation Mobile 945GME Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 02)
03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)


Here you go, hope this helps. Thx a bunch for the help in advance :P
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Nov 21, 2008 6:31 pm    Post subject: Reply with quote

razixx,

Check your kernel disk settings
_________________
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
razixx
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2008
Posts: 75
Location: The Pas, MB

PostPosted: Fri Nov 21, 2008 7:53 pm    Post subject: Reply with quote

I tried rechecking what I have activated in my kernel, but everything seems good. The only thing I can think of but am unsure of is this. Can automatic kernel module loading cause problems? I have this option enabled, how ever I'll need it for my wireless. If there's a section of my .config file I can send let me know, I'll post that part.


Hey thx neddy, I tried reconfiguring the kernel, guess I miss some stuff in the scsi section. When I copied the image over, I guess I stuck it in the /boot/grub by accident then booted the old kernel. :P But yeah It worked I have a base gentoo install now thx.
Back to top
View user's profile Send private message
glicerioiii
n00b
n00b


Joined: 06 Nov 2008
Posts: 23
Location: philippines

PostPosted: Fri Nov 28, 2008 2:46 am    Post subject: could not map/dev/md Reply with quote

i am trying to install amd64-installer-2008.0-r1 from a livecd.

i have /dev/md1, /dev/md3/, /dev/md4 with raid-1.
the installation failed in installing grub, and the error at the logs was:

GLI:Exception: BootloaderError :FATAL: _map_device_to_grub_device: ERROR, could not map/dev/md to anything in the device map.

could i edit the device map and add (md0) /dev/md?

if i could, can anyone tell me where that file (device.map) is?

or is there another option?
_________________
jai guru deva om
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Nov 28, 2008 1:53 pm    Post subject: Reply with quote

glicerioiii,

When you install grub to the MBR of a kernel raid device, you need to use the grub shell and install to the MBR of the underlying drives.

e.g. if your /dev/md1 is made of /dev/sda1 and /dev/sdb1, install grub to the MBR of sda and sdb.
Further, if sda and sdb are your only two drives you can do
Code:
grub
root (hd0,0)
setup (hd0)
root (hd1,0)
setup (hd1)
quit 
at boot time grub knows nothing of the raid set. Its not formed until after the kernel starts.
Grub ignores the raid and reads one of the underlying partitions
_________________
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
elninio
n00b
n00b


Joined: 28 Nov 2008
Posts: 53

PostPosted: Sun Nov 30, 2008 9:03 am    Post subject: grub gets stuff on boot Reply with quote

I've just finished installing gentoo from stage3 on sda3. sda1 is a LFS partition and sda2is the swap space. When I boot gentoo, grub gets stuck on the following line:

Serial: 8250/16550 driver $Revision: 1.90 $4 ports, IRQ sharing disabled

what does this mean?
Back to top
View user's profile Send private message
addr1
n00b
n00b


Joined: 15 Nov 2008
Posts: 31

PostPosted: Sun Nov 30, 2008 11:24 pm    Post subject: GRUB: Error 15 Reply with quote

Isn't initrd required?

My partitioning is:

sda2 swap
sda3 /boot
sda15 /
sda14 /home

menu.1st

Code:
default 0
timeout 6
splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title Gentoo (sda3) 2.6.26-r3
root (hd0,14)
kernel /boot/kernel-2.6.26-r3-gentoo-r3 root=/dev/hda1


The boot partition is missing but setting root (hd0,2) doesn't work.

fstab

Code:
/dev/sda3      /boot      ext2      defaults,noatime   1 2
/dev/sda15      /      ext3      noatime      0 1
/dev/sda2      none      swap      sw      0 0
/dev/sda14              /home           ext3            defaults        0 0
/dev/cdroms/cdrom0      /mnt/cdrom   auto      noauto,ro   0 0

none                 /proc              proc            defaults        0 0
none                   /dev/shm         tmpfs           nodev,nosuid,noexec     0 0
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Sun Nov 30, 2008 11:45 pm    Post subject: Reply with quote

addr1 wrote:
Isn't initrd required?
That depends on how your kernel is configured.
addr1 wrote:
The boot partition is missing but setting root (hd0,2) doesn't work.
Missing how? Exactly what error message is given? Can grub find the partition when prompted manually during boot?

Merged the above post.
Back to top
View user's profile Send private message
Kobboi
l33t
l33t


Joined: 29 Jul 2005
Posts: 672
Location: Belgium

PostPosted: Mon Dec 01, 2008 3:49 pm    Post subject: Reply with quote

Is there a way other than changing the source code to make the select box smaller (shorter) ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Dec 01, 2008 7:26 pm    Post subject: Reply with quote

addr1,

Code:
kernel /boot/kernel-2.6.26-r3-gentoo-r3 root=/dev/hda1

Why do you have root=/dev/hda1 there when you say
Code:
sda15 /

_________________
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
addr1
n00b
n00b


Joined: 15 Nov 2008
Posts: 31

PostPosted: Tue Dec 02, 2008 8:13 am    Post subject: Reply with quote

Well actually I looked at the grub of another distro and that part seemed to point to a swap partition.

I'll change that to sda15 then.
Back to top
View user's profile Send private message
2kmike
n00b
n00b


Joined: 09 Dec 2008
Posts: 54
Location: UK

PostPosted: Sat Dec 13, 2008 4:56 pm    Post subject: Grub problems Reply with quote

Hi there,

I have followed the installation guide but i'm unable to get grub to work...

the problems i'm having is an Error 22

when i boot up the computer I'm getting the following
Code:
GRUB Loading stage1.5.


GRUB loading, please wait....
Error 22


the computer comprises of 3 hard disks
/dev/sda - which is windows
/dev/hda - Three partions containing /boot swap and /
/dev/hdb - which will become a home directory

thanks to anyone who can offer some help, i have been stuck trying to sort this for about 9 hours now and it's driving me mad
Mike
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Dec 13, 2008 7:02 pm    Post subject: Reply with quote

2kmike,

Error 22 is
Code:
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.

grub cannot find your /boot to load its stage2. That implies its been incorrectly installed to the MBR of your boot drive, or your drives have been rearranged since you did the the MBR install.

Do you boot from the SATA drive or your hda ?

Please show us
Code:
fdisk -l
annotated with the use of each partition and your grub.conf.
grub.conf has not yet been read but it will show what you intended when you wrote it.
_________________
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 ... 5, 6, 7 ... 29, 30, 31  Next
Page 6 of 31

 
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