LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-09-2005, 10:11 AM   #1
Boudewijn
Member
 
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Rep: Reputation: 30
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly


Hi,

I've got a nice stage1 gentoo install on my amd64 (kernel : 2.6.10-gentoo-r2) with the latest cd's.

But now I'm configuring grub (i've done several gentoo installs before on x86).

But this happens:

Code:
grub-install --rootdirectory=/boot /dev/sda
The file /boot/boot/grub/stage1 not read correctly
I'm using the genkernel , and I've got atm 2 sata disks (1 is used though, the other one will be used for ftp-serving etc).

this is my mtab:
Code:
rootfs / rootfs rw 0 0
tmpfs / tmpfs rw,noatime 0 0
devfs /dev devfs rw 0 0
/newroot/dev/cdroms/cdrom0 /mnt/cdrom iso9660 ro 0 0
/dev/loop/0 /mnt/livecd squashfs ro 0 0
none /proc proc rw,nodiratime 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
none /dev/shm tmpfs rw 0 0
tmpfs /mnt/livecd/usr/lib/hotplug/firmware tmpfs rw 0 0
none /proc/bus/usb usbfs rw 0 0
/dev/sda3 / ext3 rw 0 0
none /proc proc rw,nodiratime 0 0
/dev/sda1 /boot ext2 rw 0 0
/dev/fd0 /mnt/floppy msdos rw 0 0
this is my fstab:
Code:
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03
:38 azarah Exp $
#
# 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 and tail freely.

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

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT              /boot           ext2            noatime         1 1
#/dev/ROOT              /               ext2            noatime
0 0
#/dev/SWAP              none            swap            sw
0 0
#/dev/cdroms/cdrom0     /mnt/cdrom      iso9660         ro
0 0
#/dev/fd0               /mnt/floppy     auto
0 0

# NOTE: The next line is critical for boot!
none                    /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)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults,noatime
0 0
/dev/sda1               /boot           ext2            defaults,noatime
1 2
/dev/sda2               none            swap            sw
0 0
/dev/sda3               /               ext2            defaults,noatime
0 1
this is my grub.conf:
Code:
default 0
timeout 30

title=Gentoo Linux 2.6.10-r2
root (hd0,0)
kernel /kernel-2.6.10-gentoo-r2 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /initrd-2.6.10-gentoo-r2
this is my device.map:
Code:
(hd0)   /dev/sda
(hd1)   /dev/sdb

this is the content of /boot:
Code:
drwxr-xr-x   5 root root  1024 Jan  9 16:08 .
drwxr-xr-x  20 root root  4096 Jan  8 21:52 ..
drwxr-xr-x   3 root root  1024 Jan  9 16:08 boot
drwxr-xr-x   2 root root  1024 Jan  9 16:18 grub
drwx------   2 root root 12288 Jan  8 02:30 lost+found
should that grub folder be there???


the file which could'nt be read (I guess, the error is not in correct english) does exist and contaisn some binary stuff.


Thanks in advance
 
Old 01-09-2005, 10:35 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,743

Rep: Reputation: 299Reputation: 299Reputation: 299
Your fstab indicates the root of the filesystem is /dev/sda3 (grub hd0,2), but your grub.conf says 'root (hd0,0). Grub is looking in the wrong place for the root of the filesystem.
And, since /boot is in it's own partition, shouldn't the grub.conf kernel line begin:
kernel (hd0,0)/kernel-2.6......
 
Old 01-09-2005, 10:49 AM   #3
Boudewijn
Member
 
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Original Poster
Rep: Reputation: 30
just changed in grub.conf (it was in /boot/boot/grub) :
Code:
root (hd0,0)
to
Code:
root (hd0,2)
But I got the same error

so I don't know waht I'm doing wrong

Last edited by Boudewijn; 01-09-2005 at 11:01 AM.
 
Old 05-21-2008, 03:13 AM   #4
3moloz
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 1
Hi,

it seems to me you forgot the dash in 'root-directory'.
Try grub-install --root-directory=/boot /dev/sda
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
Gentoo-Im dumb and deleted /boot/boot Grub Says: Error 26 : Too many symbolic links smehi Linux - Software 5 06-24-2006 06:25 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM
Gentoo Error can't boot with Grub therapture Linux - Distributions 4 02-14-2005 11:07 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration