
Code: Select all
timeout 30
It seems fine to me?? Am I wrong? I would prefer not to start overdesultory wrote:Are you certain that /boot/kernel-2.6.22-gentoo-r8 and /boot/grub/splash.xpm.gz exist and are regular files? The error indicates that a file which grub was attempting to use was not a regular file, being instead a directory, symbolic link, pipe or the like.
Code: Select all
livecd boot # ls -la
total 2950
drwxr-xr-x 4 root root 1024 Oct 10 08:53 .
drwxr-xr-x 19 root root 4096 Oct 11 02:33 ..
-rw-r--r-- 1 root root 0 Apr 16 15:39 .keep
lrwxrwxrwx 1 root root 1 Oct 10 06:51 boot -> .
drwxr-xr-x 2 root root 1024 Oct 11 02:53 grub
-rw-r--r-- 1 root root 2988776 Oct 10 10:13 kernel-2.6.22-gentoo-r8
drwx------ 2 root root 12288 Oct 10 03:56 lost+found
Code: Select all
livecd grub # ls -la
total 435
drwxr-xr-x 2 root root 1024 Oct 11 02:53 .
drwxr-xr-x 4 root root 1024 Oct 10 08:53 ..
-rw-r--r-- 1 root root 45 Oct 11 02:53 device.map
-rw-r--r-- 1 root root 7616 Oct 11 02:53 e2fs_stage1_5
-rw-r--r-- 1 root root 7488 Oct 11 02:53 fat_stage1_5
-rw-r--r-- 1 root root 6720 Oct 11 02:53 ffs_stage1_5
-rw-r--r-- 1 root root 836 Oct 10 09:13 grub.conf
-rw-r--r-- 1 root root 1842 Oct 11 02:53 grub.conf.sample
-rw-r--r-- 1 root root 6752 Oct 11 02:53 iso9660_stage1_5
-rw-r--r-- 1 root root 8192 Oct 11 02:53 jfs_stage1_5
lrwxrwxrwx 1 root root 9 Oct 10 08:57 menu.lst -> grub.conf
-rw-r--r-- 1 root root 6880 Oct 11 02:53 minix_stage1_5
-rw-r--r-- 1 root root 9280 Oct 11 02:53 reiserfs_stage1_5
-rw-r--r-- 1 root root 33856 Oct 11 02:53 splash.xpm.gz
-rw-r--r-- 1 root root 512 Oct 11 02:53 stage1
-rw-r--r-- 1 root root 105500 Oct 11 02:53 stage2
-rw-r--r-- 1 root root 105500 Oct 10 08:57 stage2.old
-rw-r--r-- 1 root root 105500 Oct 11 02:53 stage2_eltorito
-rw-r--r-- 1 root root 7072 Oct 11 02:53 ufs2_stage1_5
-rw-r--r-- 1 root root 6304 Oct 11 02:53 vstafs_stage1_5
-rw-r--r-- 1 root root 8904 Oct 11 02:53 xfs_stage1_5Code: Select all
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Insert root floppy and press ENTER
end_request: I/O error, dev fd0-, sector 0
VFS: cannot open root device "sda3" or unknown-block(2,0)
Please append a correct "root=" boot option; her are the available partitions:
0200 4 fd0 (driver?)
1600 58536 hdc drvier: ide-cdrom
1640 4194302 hdd drvier: ide-cdromCode: Select all
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.22-r8
root (hd0,0)
kernel /boot/kernel-2.6.22-gentoo-r8 root=/dev/sda3

Code: Select all
/dev/hda - 80GB Primary Master ATA
/dev/hdc - 200GB Secondary Master ATACode: Select all
/dev/hda1 Windows XP NTFS
/dev/hda2 FAT32
/dev/hda3 NTFS
/dev/hdc1 ext2 /boot
/dev/hdc2 NTFS
/dev/hdc3 swap
/dev/hdc4 reiserfs /Code: Select all
default 0
timeout 10
title=Gentoo
root (hd1,0)
kernel /boot/kernel root=/dev/hdc4
title=Windows
rootnoverify (hd0,0)
makeactive
chainloader +1Code: Select all
grub> root (hd1,0)
grub> setup (hd0)Code: Select all
root (hd2,0)As i stated before i have just two HDs and the second one is /dev/hdcbluepass wrote:If your /boot partition is actually on on hdc1, then you should use:Code: Select all
root (hd2,0)
Here is the result of entering the command # ls -l /usr/src/linux :#These settings were set by the catalyst build script that automatically built this stage.
#Please consult /etc/make/conf.example for a more detailed example.
CFLAGS="-02 -pipe"
CXXFLAGS="${CFLAGS}"
#This should not be changed unless you know exactly what you are doing.
#You should probably be using a different stage, instead.
CHOST="x86_64-pc-linux-gnu"
Here are the contents of /boot/grub/grub.conf :
/dev/hda1 /boot ext3 noauto,noatime 1 2
/dev/hda3 / reiserfs noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
If anyone spots any errors in my configuration, I would greatly appreciate any help you could offer. Thanks in advance!default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title= Gentoo Linux 2.6.19-r9
root (hd0,0)
kernel /boot/kernel-genkernel-amd64-2.6.19-gentoo-r9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev initrd /boot/initramfs-genkernel-amd64-2.6.19-gentoo-r9

Code: Select all
kernel-genkernel--x86_64-2.6.22.-gentoo-r9
initramfs--genkernel-x86_64-2.6.22.-gentoo-r9 Code: Select all
kernel /boot/kernel-genkernel-amd64-2.6.19-gentoo-r9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /boot/initramfs-genkernel-amd64-2.6.19-gentoo-r9 
Code: Select all
boot -> . Code: Select all
menu.lst -> /boot/grub/grub.conf

Code: Select all
SpideyHomePC spidey # emerge -av grub
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] sys-boot/grub-0.97-r3 USE="-custom-cflags -netboot -static" 0 kB
Total: 1 package (1 new), Size of downloads: 0 kB
Would you like to merge these packages? [Yes/No]
>>> Verifying ebuild Manifests...
>>> Emerging (1 of 1) sys-boot/grub-0.97-r3 to /
* grub-0.97-patches-1.4.tar.bz2 MD5 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* grub-0.97.tar.gz MD5 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* splash.xpm.gz MD5 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
>>> Creating Manifest for /usr/portage/sys-boot/grub
digest.assumed 11
digest-grub-0.92-r1::grub-0.92-gentoo-0.2.tar.bz2
digest-grub-0.92-r1::grub-0.92.tar.gz
digest-grub-0.94-r1::grub-0.94-gentoo-0.1.tar.bz2
digest-grub-0.94-r1::grub-0.94.tar.gz
digest-grub-0.96-r1::grub-0.96-r1-gentoo-0.1.tar.bz2
digest-grub-0.96-r1::grub-0.96.tar.gz
digest-grub-0.96-r2::grub-0.96-r2-gentoo-0.1.tar.bz2
digest-grub-0.96-r2::grub-0.96.tar.gz
digest-grub-0.96-r3::grub-0.96-patches-1.0.tar.bz2
digest-grub-0.96-r3::grub-0.96.tar.gz
digest-grub-0.97::grub-0.97-patches-1.0.tar.bz2
digest-grub-0.97-r2::grub-0.97-patches-1.2.tar.bz2
digest-grub-1.95::grub-1.95.tar.gz
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking grub-0.97.tar.gz ;-) ... [ ok ]
* checking splash.xpm.gz ;-) ... [ ok ]
* checking grub-0.97-patches-1.4.tar.bz2 ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking grub-0.97.tar.gz to /var/tmp/portage/sys-boot/grub-0.97-r3/work
>>> Unpacking splash.xpm.gz to /var/tmp/portage/sys-boot/grub-0.97-r3/work
>>> Unpacking grub-0.97-patches-1.4.tar.bz2 to /var/tmp/portage/sys-boot/grub-0.97-r3/work
* Applying various patches (bugfixes/updates) ...
* 001_all_grub-0.95.20040823-splash.patch ... [ ok ]
* 003_all_grub-0.97-example-rescue-shell.patch ... [ ok ]
* 005_all_grub-0.96-PIC.patch ... [ ok ]
* 008_all_grub-0.97-AM_PROG_AS.patch ... [ ok ]
* 010_all_grub-0.96-bounced-checks.patch ... [ ok ]
* 015_all_grub-0.96-unsigned-addresses.patch ... [ ok ]
* 020_all_grub-0.97-i2o-raid.patch ... [ ok ]
* 021_all_grub-0.97-grub-special_device_names.patch ... [ ok ]
* 040_all_grub-0.96-nxstack.patch ... [ ok ]
* 060_all_grub-0.96-netboot-pic.patch ... [ ok ]
* 070_all_grub-0.97-initrd_max_address.patch ... [ ok ]
* 080_all_grub-0.97-geometry-26kernel.patch ... [ ok ]
* 090_all_grub-0.97-intelmac.patch ... [ ok ]
* 100_all_grub-0.97-splashimage-example.patch ... [ ok ]
* 110_all_grub-0.97-ptable-fix.patch ... [ ok ]
* 500_all_grub-0.97-netboot-gcc4.patch ... [ ok ]
* Done with patching
* Running eautoreconf in '/var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97' ...
* Running aclocal ... [ ok ]
* Running autoconf ... [ ok ]
* Running autoheader ... [ ok ]
* Running automake --add-missing --copy ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97 ...
* econf: updating grub-0.97/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating grub-0.97/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/lib --datadir=/usr/lib/grub --exec-prefix=/ --disable-auto-linux-mem-opt --build=x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97/config.log
*
* ERROR: sys-boot/grub-0.97-r3 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* grub-0.97-r3.ebuild, line 85: Called econf '--libdir=/lib' '--datadir=/usr/lib/grub' '--exec-prefix=/' '--disable-auto-linux-mem-opt'
* ebuild.sh, line 638: Called die
* The specific snippet of code:
* die "econf failed"
* The die message:
* econf failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-boot/grub-0.97-r3/temp/build.log'.
*Code: Select all
SpideyHomePC spidey # emerge --info
Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.1, glibc-2.7-r0, 2.6.23-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Mon, 19 Nov 2007 03:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python: 2.4.3-r4, 2.5.1-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache digest distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LINGUAS="en pt_BR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="1pcmcia 3dnow 3dnowext X a52 aac aalib acl acpi allegro alsa amd64 amr apache2 asf avi bash-completion berkdb bitmap-fonts bluetooth bzip2 bzlib cairo cdr cli cracklib crypt css cups dbus divx divx4linux dts dvb dvd dvdnav dvdr dvdread eds emboss emerald encode esd evo exif fam ffmpeg firefox flac foomaticdb fortran ftp fuse gdbm gif glitz gmp gphoto2 gpm gstreamer gtk gtk2 hal hardened highlight i8x0 iconv icq imlib isdnlog java javascript jingle joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos libg++ libwww lirc logitech-mouse lua mad matroska midi mikmod mime mmx mmxext mozbranding mp3 mpeg mplayer msn mudflap mysql ncurses net nls nocd nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pda pdf pdflib perl php png ppds pppd python qt qt3 qt3support qt4 quicktime rar rdesktop readline realmedia reflection sdl session spell spl sse sse2 ssl svg symlink tcpd texteffect tga theora tiff truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vorbis wifi wmf wmp x264 xine xml xorg xv xvid xvmc yahoo zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pt_BR" LIRC_DEVICES="pixelview_pro" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Code: Select all
root (hd0,0)
kernel (hd0,5)/boot/vmlinuz ...
Not exactly. (hd0) is the first hard drive discovered by the BIOS. What this means is far from being clear or consistant.Spidey wrote:1) In grub CLI, root (hd0,0) means that /dev/hda1 (or sda1) is the boot partition (where grub stages 2 and 3 are present) and setup (hd0) indicates that /dev/hda is the HD to write the MBR. Is that true?
Code: Select all
root (hd0,0)
kernel (hd0,5)/boot/vmlinuz ...Code: Select all
root (hd0,5)
kernel /boot/vmlinuz ...