View previous topic :: View next topic |
Author |
Message |
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sat Nov 08, 2008 9:05 pm Post subject: |
|
|
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 |
|
|
zipf n00b
Joined: 26 Dec 2007 Posts: 5 Location: Australia
|
Posted: Mon Nov 10, 2008 1:19 pm Post subject: configuring grub with gentoo + openbsd |
|
|
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 |
|
|
zipf n00b
Joined: 26 Dec 2007 Posts: 5 Location: Australia
|
Posted: Tue Nov 11, 2008 2:32 am Post subject: |
|
|
ignore the above post, has been fixed. |
|
Back to top |
|
|
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Tue Nov 11, 2008 6:31 am Post subject: |
|
|
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 |
|
|
Chintan n00b
Joined: 15 Nov 2008 Posts: 2 Location: Singapore
|
Posted: Sun Nov 16, 2008 12:59 pm Post subject: |
|
|
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 |
|
|
luckystraights n00b
Joined: 16 Nov 2008 Posts: 10
|
Posted: Sun Nov 16, 2008 1:34 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Nov 16, 2008 3:30 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Nov 16, 2008 3:32 pm Post subject: |
|
|
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 |
|
|
luckystraights n00b
Joined: 16 Nov 2008 Posts: 10
|
Posted: Sun Nov 16, 2008 5:33 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Nov 16, 2008 6:10 pm Post subject: |
|
|
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 |
|
|
razixx Tux's lil' helper
Joined: 07 Jul 2008 Posts: 75 Location: The Pas, MB
|
Posted: Fri Nov 21, 2008 5:07 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Fri Nov 21, 2008 5:11 pm Post subject: |
|
|
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 |
|
|
razixx Tux's lil' helper
Joined: 07 Jul 2008 Posts: 75 Location: The Pas, MB
|
Posted: Fri Nov 21, 2008 5:18 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Fri Nov 21, 2008 6:31 pm Post subject: |
|
|
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 |
|
|
razixx Tux's lil' helper
Joined: 07 Jul 2008 Posts: 75 Location: The Pas, MB
|
Posted: Fri Nov 21, 2008 7:53 pm Post subject: |
|
|
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. But yeah It worked I have a base gentoo install now thx. |
|
Back to top |
|
|
glicerioiii n00b
Joined: 06 Nov 2008 Posts: 23 Location: philippines
|
Posted: Fri Nov 28, 2008 2:46 am Post subject: could not map/dev/md |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Fri Nov 28, 2008 1:53 pm Post subject: |
|
|
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 |
|
|
elninio n00b
Joined: 28 Nov 2008 Posts: 53
|
Posted: Sun Nov 30, 2008 9:03 am Post subject: grub gets stuff on boot |
|
|
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 |
|
|
addr1 n00b
Joined: 15 Nov 2008 Posts: 31
|
Posted: Sun Nov 30, 2008 11:24 pm Post subject: GRUB: Error 15 |
|
|
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 |
|
|
desultory Bodhisattva
Joined: 04 Nov 2005 Posts: 9410
|
Posted: Sun Nov 30, 2008 11:45 pm Post subject: |
|
|
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 |
|
|
Kobboi l33t
Joined: 29 Jul 2005 Posts: 672 Location: Belgium
|
Posted: Mon Dec 01, 2008 3:49 pm Post subject: |
|
|
Is there a way other than changing the source code to make the select box smaller (shorter) ? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Mon Dec 01, 2008 7:26 pm Post subject: |
|
|
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 _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
addr1 n00b
Joined: 15 Nov 2008 Posts: 31
|
Posted: Tue Dec 02, 2008 8:13 am Post subject: |
|
|
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 |
|
|
2kmike n00b
Joined: 09 Dec 2008 Posts: 54 Location: UK
|
Posted: Sat Dec 13, 2008 4:56 pm Post subject: Grub problems |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sat Dec 13, 2008 7:02 pm Post subject: |
|
|
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 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 |
|
|
|