

Meulie,meulie wrote:Eehh, I was planning on using the static-grub binary on another (non-Gentoo) system...![]()
On that system (based on OpenWRT) I need a grub to change the bootloader, but that system does not seem to supply any grub. It compiles one during the build, but that grub does not make it to the final image, it's just used to build that image...

I believe that it is the a symlink, still doesn't work.NeddySeagoon wrote:the.ant,
/boot/grub/menu.lst (thats a lower case letter L) should be a symbolic link to grub.conf.
If the link is satisfied, it will be cyan (pale blue)
You mentioned "grub.cfg" which is a bit non standard but would work if you fix the symlink.

Code: Select all
df -i
Code: Select all
# Partition where the kernel image (or operating system) is located (/dev/sdb6)
root (hd1,6) Code: Select all
root (hd1,5) Code: Select all
root=/dev/hdb6 Code: Select all
mkdir /mnt/gentoo
mount /dev/sdb6 /mnt/gentoo
ls /mnt/gentoo/bootWelcome to Gentoo. I will add your thread to our grub sticky after I post this.
Thanks!
That's what I thought, but because I got an error when I tried 5 (first error 17: filesystemtype unknown, part.type 0x83, kernel boot., followed by an error 15: file not found) I thought I was wrong. Well...Grub counts everything from zero, not one as most people do. Disks are counted in the BIOS detection order, that often not what you think, and not even constant, since it can vary with BIOS settings. Keep it in mind for later.
Actually, I get to the GRUB of Gentoo then, and when I select the normal Gentoo kernel again, it will give me an error number 18: Selected Cylinders exceeds maximum supported by bios.
Yes, I do! Actually, turns out, the partition that I reserved for Gentoo, is not automatically mounted. So when I tried the above commands in Ubuntu, I first had to mount the partition by hand. When I did that, a cyanide boot turned up and in blue the word grub.Boot one of your other distros, and do the following commands in a root terminal.you may need to add -t <fstype> to the mount commandCode: Select all
mkdir /mnt/gentoo mount /dev/sdb6 /mnt/gentoo ls /mnt/gentoo/boot
Do you see your Gentoo kernel there?
It does look like it's installed. It's more a matter of me learning how to get through the frontdoor, learning to use the right keys on the right locks, etc.
I did not know about the common boot partition for multiple distro's. Sounds like a good plan.

Code: Select all
error 17: filesystemtype unknownCode: Select all
error 15: file not foundCode: Select all
/boot/kernel-2.6.19-gentoo-r5

Hi there,NeddySeagoon wrote:anthonie,
Good ... thats progress.


Code: Select all
grub
root (hdx,y)
setup (hdz)
quitCode: Select all
root (hdx,y)Code: Select all
setup (hdx)Code: Select all
root (hdx,y)/grubCode: Select all
setup (hdz)Code: Select all
sh-3.1# grub-install --no-floppy /dev/sda
Could not find device for /boot: Not found or not a block device.
Code: Select all
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
Error 15: File not found
Code: Select all
!!Block device /dev/sda3 is not a valid root device...
!!The root block device unspecified or not detected.
Code: Select all
default 0
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-2.6.23-gentoo-r3 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev
initrd /boot/initramfs-genkernel-x86_64-2.6.23-gentoo-r3
Code: Select all
Internal HDD: /dev/sda
/dev/sda1: swap
/dev/sda2(ext3): /boot
/dev/sda3(ext3): /
External via USB: /dev/sdb
/dev/sdb1(xfs): /opt
External via USB: /dev/sdc
/dev/sdc1(jfs): /home
Code: Select all
M/B: GIGABYTE GA-K8N Pro-SLI(nForce4 SLI)
CPU: AMD Athlon64x2 3800+ 2.0GHz [939/F1000/DualCore]
Mem: 1024MB PC-3200[400] DDR-SDRAM BUFFALO
Video: [PE16] 128MB NVIDIA GeForce6600

Code: Select all
livecd ~ # lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:07.0 Multimedia audio controller: Creative Labs SB Audigy LS
01:0a.0 FireWire (IEEE 1394): Texas Instruments TSB82AA2 IEEE-1394b Link Layer Controller (rev 01)
05:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600] (rev a2)
livecd ~ #
NeddySeagoon wrote:matsumi,
You have a genkernel made kernel. Its likely that your kernel is missing support for your SATA chipset.
Please post your lspci output, so we can tell which kernel option you need. We will just fix your kernel, the rest of the install is ok.
matsumi wrote:Dear NeddySeagoon,
Thank you very much for your quick response.
Below is my lspci output. Please let me know if need verbose output lspci.
<snip>
Code: Select all
(chroot) livecd / # lspci
00:00.0 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. PT890 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.7 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
00:0d.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
00:0e.0 Ethernet controller: VIA Technologies, Inc. VT6120/VT6121/VT6122 Gigabit Ethernet Adapter (rev 11)
00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South]
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
01:00.0 VGA compatible controller: VIA Technologies, Inc. UniChrome Pro IGP (rev 01)
Code: Select all
(chroot) livecd / # lsmod
Module Size Used by
ipv6 199712 12
bridge 40604 0
snd_pcm_oss 33312 0
snd_mixer_oss 16000 1 snd_pcm_oss
snd_seq_oss 26112 0
snd_seq_midi_event 7552 1 snd_seq_oss
snd_seq 35408 4 snd_seq_oss,snd_seq_midi_event
pcspkr 5888 0
sg 26652 0
eth1394 18308 0
snd_via82xx 23320 0
gameport 12808 1 snd_via82xx
snd_ac97_codec 71712 1 snd_via82xx
snd_ac97_bus 5376 1 snd_ac97_codec
snd_pcm 47364 3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer 18180 2 snd_seq,snd_pcm
snd_page_alloc 10248 2 snd_via82xx,snd_pcm
snd_mpu401_uart 8960 1 snd_via82xx
snd_rawmidi 18208 1 snd_mpu401_uart
snd_seq_device 8460 3 snd_seq_oss,snd_seq,snd_rawmidi
snd 33764 11 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
via_agp 10496 1
agpgart 21972 1 via_agp
i2c_viapro 10004 0
i2c_core 15360 1 i2c_viapro
via_velocity 26500 0
crc_ccitt 5376 1 via_velocity
rtc 12852 0
tg3 91652 0
e1000 94656 0
nfs 95164 0
lockd 48392 1 nfs
sunrpc 110012 2 nfs,lockd
jfs 147948 0
dm_mirror 19152 0
dm_mod 40344 1 dm_mirror
pdc_adma 10500 0
sata_mv 17672 0
ata_piix 14600 0
ahci 17796 0
sata_qstor 10756 0
sata_vsc 9988 0
sata_uli 9220 0
sata_sis 9732 0
sata_sx4 14084 0
sata_nv 11268 0
sata_via 11268 7
sata_svw 9348 0
sata_sil24 14852 0
sata_sil 11784 0
sata_promise 12292 0
libata 67220 15 pdc_adma,sata_mv,ata_piix,ahci,sata_qstor,sata_vsc,sata_uli,sata_sis,sata_sx4,sata_nv,sata_via,sata_svw,sata_sil24,sata_sil,sata_promise
sbp2 21380 0
ohci1394 30896 0
ieee1394 59576 3 eth1394,sbp2,ohci1394
sl811_hcd 13056 0
usbhid 35936 0
ohci_hcd 18948 0
uhci_hcd 21128 0
usb_storage 62400 1
ehci_hcd 25736 0
usbcore 88452 7 sl811_hcd,usbhid,ohci_hcd,uhci_hcd,usb_storage,ehci_hcd
Code: Select all
(chroot) livecd / # cat /boot/grub/grub.conf
#
# 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.
# fallback 1
# Splash image to show behind grub.
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
# For booting GNU/Linux
title Gentoo Hardened 2.6.23-hardened-r4
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.23-hardened-r4 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev
initrd /boot/initramfs-genkernel-x86-2.6.23-hardened-r4
Code: Select all
(chroot) livecd / # ls -l /boot
total 6273
-rw-r--r-- 1 root root 1122463 Jan 4 17:58 System.map-genkernel-x86-2.6.23-hardened-r4
lrwxrwxrwx 1 root root 1 Jan 4 16:28 boot -> .
drwxr-xr-x 2 root root 1024 Jan 5 13:11 grub
-rw-r--r-- 1 root root 3071717 Jan 4 18:58 initramfs-genkernel-x86-2.6.23-hardened-r4
-rw-r--r-- 1 root root 2184744 Jan 4 17:58 kernel-genkernel-x86-2.6.23-hardened-r4
drwx------ 2 root root 12288 Jan 4 23:50 lost+found
Code: Select all
(chroot) livecd / # fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 63 506016 83 Linux
/dev/sda2 64 313 2008125 82 Linux swap / Solaris
/dev/sda3 314 563 2008125 83 Linux
/dev/sda4 564 38913 308046375 5 Extended
/dev/sda5 564 31688 250011531 83 Linux
/dev/sda6 31689 35424 30009388+ 83 Linux
/dev/sda7 35425 36670 10008463+ 83 Linux
/dev/sda8 36671 38538 15004678+ 83 Linux
/dev/sda9 38539 38913 3012156 83 Linux
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 2063 MB, 2063597568 bytes
16 heads, 32 sectors/track, 7872 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 7872 2015216 e W95 FAT16 (LBA)