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 ... 27, 28, 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
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5270
Location: Goose Creek SC

PostPosted: Fri Oct 15, 2010 5:10 pm    Post subject: Reply with quote

boot a system rescue cd to a GUI, in the terminal run
Code:
fdisk -l
, post the results here.
Then mount the gentoo partitions
Code:
cat /etc/fstab
cat /boot/grub/grub.conf
mount
post the results here. Then
Code:
grub
find /boot/grub/grub.conf
post result, format should be (hdx,y). Then
Code:
root (hdx,y)
substituting actual values returned above, should return name of /boot file system. Then
Code:
setup (hdx,y)
substituting actual values returned above, setting up the /boot partition's boot record, should return embed successful.
Then if gentoo has it's own disk separate from windows
Code:
setup (hdx)
substituting actual values returned above, setting up the gentoo disk MBR, this will allow you to choose boot disk and thus boot OS in BIOS bypassing safeboot. Then
Code:
quit


using a digital camera and a free photo site you can show us your error screens pinpointing your problem
Back to top
View user's profile Send private message
cwng
n00b
n00b


Joined: 21 Nov 2002
Posts: 68
Location: Singapore

PostPosted: Mon Oct 18, 2010 4:26 am    Post subject: Reply with quote

Donahue,

Thanks for the help.

Screenshot of the problem: http://img227.imageshack.us/img227/5360/imag0053s.jpg

I installed grub on an USB key, copied the kernel there, and managed to boot to my system. Here are the info you requested:

fdisk -l
Code:
# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7f099660

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       13417   107772021    7  HPFS/NTFS
/dev/sda2   *       13418       13430      104422+  83  Linux
/dev/sda3           13431       38913   204692197+   5  Extended
/dev/sda5           13431       19167    46082421   83  Linux
/dev/sda6           19168       24904    46082421   83  Linux
/dev/sda7           24905       25949     8393931   82  Linux swap / Solaris
/dev/sda8   *       25950       38913   104133298+  83  Linux

Disk /dev/dm-0: 47.2 GB, 47186330624 bytes
255 heads, 63 sectors/track, 5736 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table


/etc/fstab
Code:
# cat /etc/fstab
#/dev/sda2      /boot      ext2   noauto,noatime         1 2
/dev/sda8      /      xfs   logbufs=8,noatime,nobarrier   0 1
/dev/mapper/crypt-home   /home      xfs   logbufs=8,noatime,nobarrier   0 2
/dev/sda7      none      swap   sw            0 0
/dev/sda8      /media      xfs   noauto,logbufs=8,noatime,nobarrier   0 2
/dev/cdrom      /mnt/cdrom   auto   noauto,ro         0 0

shm         /dev/shm   tmpfs      nodev,nosuid,noexec   0 0


This is grub.conf in /dev/sda2
Code:
# cat /old-boot/grub/grub.conf
default 1
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1

title Gentoo Linux 2.6.34-r6 (Non-Encrypted)
root (hd0,1)
kernel /boot/vmlinuz-2.6.34-gentoo-r6 root=/dev/sda8 vga=3847

title Gentoo Linux 2.6.34-r6 (Encrypted)
root (hd0,1)
kernel /boot/vmlinuz-2.6.34-gentoo-r6 root=/dev/sda5 vga=3847
initrd /boot/initramfs.cpio.gz



This is grub.conf in /dev/sda8
Code:

root@nw-cwng-L2 ~ # cat /boot/grub/grub.conf
default 0
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

#title Windows XP
#rootnoverify (hd0,0)
#makeactive
#chainloader +1

title Gentoo Linux 2.6.34-r6 (Non-Encrypted)
root (hd0,7)
kernel /boot/vmlinuz-2.6.34-gentoo-r6 root=/dev/sda8 vga=3847

#title Gentoo Linux 2.6.34-r6 (Encrypted)
#root (hd0,1)
#kernel /boot/vmlinuz-2.6.34-gentoo-r6 root=/dev/sda5 vga=3847
#initrd /boot/initramfs.cpio.gz


As I have explained in previous post, I originally set up encrypted root in /dev/sda5, and a separate boot partition in /dev/sda2. When problem appears, I copied the root to /dev/sda8, and use /boot on the same /dev/sda8. Windows loader is modified to have an entry to load /dev/sda8.

Code:

grub> find /boot/grub/grub.conf
 (hd0,1)
 (hd0,7)

grub> root (hd0,7)
 Filesystem type is xfs, partition type 0x83

grub> setup (hd0,7)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/xfs_stage1_5" exists... yes
 Running "embed /boot/grub/xfs_stage1_5 (hd0,7)"... failed (this is not fatal)
 Running "embed /boot/grub/xfs_stage1_5 (hd0,7)"... failed (this is not fatal)
 Running "install /boot/grub/stage1 (hd0,7) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.

grub> root (hd0,1)
 Filesystem type is ext2fs, partition type 0x83


I didn't run setup (hd0,1).

/rgds
/cwng
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5270
Location: Goose Creek SC

PostPosted: Mon Oct 18, 2010 5:48 am    Post subject: Reply with quote

does the /boot directory on /dev/sda8 contain the symlink
Quote:
boot -> .

Give this a try in grub.conf at sda8, or just try it using edit mode on the menu.lst menu when it appears during boot
Quote:
title Gentoo Linux 2.6.34-r6 (Non-Encrypted)
root (hd0,7)
kernel (hd0,7)/boot/vmlinuz-2.6.34-gentoo-r6 root=/dev/sda8

If that fails try:

title Gentoo Linux 2.6.34-r6 (Non-Encrypted) (Chainloader)
rootnoverify (hd0,7)
chainloader +1

Safeboot may have it's own chainloader statement
Back to top
View user's profile Send private message
cwng
n00b
n00b


Joined: 21 Nov 2002
Posts: 68
Location: Singapore

PostPosted: Mon Oct 18, 2010 7:21 am    Post subject: Reply with quote

Donhaue,

Yes, there is a "boot -> ." link in (/dev/sda8)/boot/

Tried adding the (hd0,7) in the grub entry, same behavior.

Tried the chainloader, in both the menu.lst in /dev/sda2 and /dev/sda8. Strangely, it failed with error 13.

I don't think Safeboot has a chainloader entry that is easily editable.

----

In any case, my current workaround is to use a boot-USB which contains:

Code:

./boot
./boot/grub
./boot/grub/device.map
./boot/grub/stage1
./boot/grub/stage2
./boot/grub/e2fs_stage1_5
./boot/grub/fat_stage1_5
./boot/grub/ffs_stage1_5
./boot/grub/iso9660_stage1_5
./boot/grub/jfs_stage1_5
./boot/grub/minix_stage1_5
./boot/grub/reiserfs_stage1_5
./boot/grub/ufs2_stage1_5
./boot/grub/vstafs_stage1_5
./boot/grub/xfs_stage1_5
./boot/grub/default
./boot/grub/menu.lst
./boot/grub/splash.xpm.gz
./images
./images/Pana
./images/Pana/initramfs.cpio.gz
./kernels
./kernels/Dell
./kernels/Dell/vmlinuz-2.6.32-gentoo-r7
./kernels/Dell/vmlinuz-2.6.35-gentoo-r4
./kernels/Pana
./kernels/Pana/vmlinuz-2.6.34-gentoo-r6


and its menu.lst having:

Code:

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

title Boot from Harddisk
rootnoverify (hd1)
makeactive
chainloader +1

title [Pana] Gentoo Linux 2.6.34-r6 (Non-Encrypted)
root (hd0,0)
kernel /kernels/Pana/vmlinuz-2.6.34-gentoo-r6 root=/dev/sda8 vga=3847

title [Pana] Gentoo Linux 2.6.34-r6 (Encrypted)
root (hd0,0)
kernel /kernels/Pana/vmlinuz-2.6.34-gentoo-r6 root=/dev/sda5 vga=3847
initrd /images/Pana/initramfs.cpio.gz

title [Dell] Windows 7
rootnoverify (hd1,2)
makeactive
chainloader +1

title [Dell] Gentoo Linux 2.6.35-r4
root (hd0,0)
kernel /kernels/Dell/vmlinuz-2.6.35-gentoo-r4 root=/dev/sda6 vga=3847


[Pana] is the actual laptop that I have trouble with, while [Dell] is just test laptop I used to test booting from GRUB on USB.

Not an ideal solution, since I need to carry the USB key around in order to boot into Linux (Windows has no problem, since the current Grub installed on /devsda2 can boot windows). But nonetheless, it works (yes, even the encrypted root on /dev/sda5). So, it is a tolerable solution. But I would like to get it solved if possible.
Back to top
View user's profile Send private message
darkstarbyte
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2010
Posts: 120

PostPosted: Sun Dec 12, 2010 6:04 am    Post subject: I was trying to get grub to work on my pata and/or ide... Reply with quote

I was trying to install grub on my pata (possibly ide) hard drive and it won't work. I ran this code.

Code:

grub-install --no-floppy /dev/hdb #for some reason when I mount the thing it shows up as hdb instead of sata.

_________________
You know you're a geek when...

you're whiling away some time in the computer department at your local store, spot a dialog box on the one of the laptops that calmly announces"Mcfee. Your computer is at risk",and totally get the unintended humor.
Back to top
View user's profile Send private message
selberbauer
Apprentice
Apprentice


Joined: 20 Dec 2010
Posts: 276

PostPosted: Mon Dec 20, 2010 9:18 pm    Post subject: Reply with quote

Got an IntelPostville with Win Ultimate 64 (+recovery partition) and a gentoo partition.
I installed everything succesfull except GRUB.
Their comes allways fucking Win bootmgr, so i deletit but now there comes bootmgr is missing...
so the problem has to be by GRUB.
I will post u the needed code

Code:

Disk /dev/sda: 160.0 GB, 160... bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier 0x9d390305

Device Boot                                       Start      End             blocks             id            System
/dev/sda1 (Win recovery)                         1        13             102400            7            HPFS/NTFS
Partition 1 doesnt end on cylinder boundary.
/dev/sda2 (win 7)                                    13   13217            106060800       7              HPFS/NTFS
Partition 2 doesnt ....
/dev/sda3 (gentoo)                             13217    19458             50125635        83            Linux
Partition 3 doesnt end....



pls hel i hang on this shit since hours :(
now i wanted to install GRUB2.
But i get this error:


>>> Source unpacked in /var/tmp/portage/dev-libs/lzo-2.02-r1/work
>>> Compiling source in /var/tmp/portage/dev-libs/lzo-2.02-r1/work/lzo-2.02 ...
* econf: updating lzo-2.02/autoconf/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating lzo-2.02/autoconf/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --enable-shared
configure: Configuring LZO 2.02
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target 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 C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/lzo-2.02-r1/work/lzo-2.02/config.log
* ERROR: dev-libs/lzo-2.02-r1 failed:
* econf failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 2671: Called econf '--enable-shared'
* ebuild.sh, line 552: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of 'emerge --info =dev-libs/lzo-2.02-r1',
* the complete build log and the output of 'emerge -pqv =dev-libs/lzo-2.02-r1'.
* The complete build log is located at '/var/tmp/portage/dev-libs/lzo-2.02-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/lzo-2.02-r1/temp/environment'.
* S: '/var/tmp/portage/dev-libs/lzo-2.02-r1/work/lzo-2.02'

>>> Failed to emerge dev-libs/lzo-2.02-r1, Log file:

>>> '/var/tmp/portage/dev-libs/lzo-2.02-r1/temp/build.log'

* Messages for package dev-libs/lzo-2.02-r1:

* ERROR: dev-libs/lzo-2.02-r1 failed:
* econf failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 2671: Called econf '--enable-shared'
* ebuild.sh, line 552: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of 'emerge --info =dev-libs/lzo-2.02-r1',
* the complete build log and the output of 'emerge -pqv =dev-libs/lzo-2.02-r1'.
* The complete build log is located at '/var/tmp/portage/dev-libs/lzo-2.02-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/lzo-2.02-r1/temp/environment'.
* S: '/var/tmp/portage/dev-libs/lzo-2.02-r1/work/lzo-2.02'

Is this because of " error: C compiler cannot create executables" or because of something else
Back to top
View user's profile Send private message
PW
n00b
n00b


Joined: 25 Dec 2010
Posts: 43
Location: NJ, United States

PostPosted: Mon Dec 27, 2010 3:47 am    Post subject: Grub error 15 Reply with quote

Hi. I just finished installing gentoo, following all the instructions in the guide, and everything went fine until the point where I had to reboot. I got GRUB ERROR 15. I think that it means that it couldn't find what it needed to boot. Any ideas on how to fix it?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5270
Location: Goose Creek SC

PostPosted: Mon Dec 27, 2010 4:25 am    Post subject: Reply with quote

If you got only "Error 15"; grub cannot find its Stage2 file.
If you got "Error 15 File not Found"; grub found Stage2 but not the kernel file or (if used) initrd. The kernel or (if used) initrd file is misnamed or misplaced.
Quote:
Stage 1.5 error:
The general way that the Stage 1.5 handles errors is to print an error number in the form Error num and then halt. Pressing <CTRL>-<ALT>-<DEL> will reboot.

Quote:
Stage 2 error:
Error 15 : File not found
This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.

Boot the install cd, mount the gentoo partitions,enter the chroot, nominally:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
then
Code:
grub
find /boot/grub/stage2
This should return an answer in the form (hdx,y). Then, replacing x,y with the returned values,
Code:
root (hdx,y)
This should return the file system of the /boot partition. Then run
Code:
setup (hdx)
quit
should tell that sectors were embedded. then
Code:
ls /boot
note the name of the kernel (and initrd) you copied to /boot and compare to the name(s) in /etc/grub/grub.conf, must match letter for letter and case. Verify /boot contains symlink " boot -> . "
Code:
exit
reboot

_________________
Defund the FCC.
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 7449

PostPosted: Mon Dec 27, 2010 9:24 am    Post subject: Reply with quote

Merged the preceding two posts.
Back to top
View user's profile Send private message
PW
n00b
n00b


Joined: 25 Dec 2010
Posts: 43
Location: NJ, United States

PostPosted: Mon Dec 27, 2010 12:03 pm    Post subject: Reply with quote

When I did
Code:
ls /boot
it listed boot, grub, and lost+found. Are any of these the kernel? Also it was ERROR 15 FILE NOT FOUND
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Dec 27, 2010 12:59 pm    Post subject: Reply with quote

PW,

Nope none of those are the kernel
boot is actually a symlink to . It should appear in cyan.
grub is the grub directory
lost+found is a directory where fsck puts recovered file fragments.

So your grub can't find the kernel because its not in /boot. Did you copy it over after you made it?
Did you forget to mount your boot partition before you you did the copy, so its gone into the /boot directory on your root partition?
_________________
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
PW
n00b
n00b


Joined: 25 Dec 2010
Posts: 43
Location: NJ, United States

PostPosted: Mon Dec 27, 2010 1:06 pm    Post subject: Reply with quote

I've definitely mounted the boot partition, so I didn't copy the kernel right. Should I try to make another?
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 7449

PostPosted: Mon Dec 27, 2010 2:11 pm    Post subject: Reply with quote

Just copy the one you already made.
Back to top
View user's profile Send private message
PW
n00b
n00b


Joined: 25 Dec 2010
Posts: 43
Location: NJ, United States

PostPosted: Mon Dec 27, 2010 2:28 pm    Post subject: Reply with quote

K. Thanks!
Back to top
View user's profile Send private message
davidu
n00b
n00b


Joined: 02 Jan 2011
Posts: 6

PostPosted: Sun Jan 02, 2011 10:44 pm    Post subject: Reply with quote

Hi! I followed the handbook instructions and at booting i get Error 2 (Bad file or directory is the message as i remember).
I did the installation process twice following the handbook, but getting the same results. Please help!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jan 03, 2011 12:31 am    Post subject: Reply with quote

davidu,

Welcome to Gentoo.

You don't neet to reinstall to fix this. In fact its quite hard to trash Gentoo so badly you need to reinstall.
We need some more information to help.

Please mount your filesystems, do not chroot, and post the output of
Code:
ls -l /mnt/gentoo/boot

and the content of /mnt/gentoo/boot/grub/grub.conf

We also need the exact error message. Error 2 is
Code:
2 : Bad file or directory type
     This error is returned if a file requested is not a regular file,
     but something like a symbolic link, directory, or FIFO.

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


Joined: 02 Jan 2011
Posts: 6

PostPosted: Mon Jan 03, 2011 2:42 pm    Post subject: Reply with quote

the result of ls in /mnt/boot are:
Code:
total 2
lrwxrwxrwx 1 root root   boot -> .
drwxr-xr-x 2 root root grub
drwxr-xr-x 2 root root 2 19:41 kernel2.6.36-gentoo-r5


the contents of the frub.conf file:
(the root partition is /dev/sda8 and the boot partition is /dev/sda1)
Code:
default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.36-r5
root (hd0,0)
kernel /boot/kernel2.6.36-gentoo-r5 root=/dev/sda8

title Gentoo Linux 2.6.36-r5 (rescue)
root (hd0,0)
kernel /boot/kernel2.6.36-gentoo-r5 root=/dev/sda8 init=/bin/bb
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jan 03, 2011 3:22 pm    Post subject: Reply with quote

davidu,

Code:
drwxr-xr-x 2 root root 2 19:41 kernel2.6.36-gentoo-r5
Has to be wrong. Thats your kernel file, it matches grub.conf but it is only two bytes.
Its also of type d ... for directory.

My entry is
Code:
-rw-r--r-- 1 root root 2276288 Dec 12 15:59 2.6.36-gentoo-r5
Your kernel copy from the build location went wrong.
Remove your directory /boot/kernel2.6.36-gentoo-r5 then do the bzImage copy step again.
_________________
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
davidu
n00b
n00b


Joined: 02 Jan 2011
Posts: 6

PostPosted: Mon Jan 03, 2011 4:44 pm    Post subject: Reply with quote

I did what you advised but I still have the error number 2. There's one more thing I'm unsure in though. Is it correct that in the conf file after the kernel word it points to the dir that holds the bzImage or should it point to the file itself(/boot/kernel*/bzImage)?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Jan 03, 2011 4:58 pm    Post subject: Reply with quote

davidu,

The grub.conf file points to the kernel file you want to load. If your kernel is at
Code:
/boot/kernel2.6.36-gentoo-r5
then grub.conf should contain
Code:
kernel /boot/kernel2.6.36-gentoo-r5


Mount your filesystems, get into the chroot and we can check a few things.
What sort of file is
Code:
/usr/src/linux/arch/x86/boot/bzImage
What is its time and date stamp?
What about
Code:
/usr/src/linux/.config


The correct copy command for bzImage for you is
Code:
cp /usr/src/linux/arch/x86/boot/bzImage /boot/kernel2.6.36-gentoo-r5
after you have removed the directory called /boot/kernel2.6.36-gentoo-r5
Have you been copying the whole kernel /usr/src/linux/arch/x86/boot to /boot/kernel2.6.36-gentoo-r5?
That would explain how your kernel appeared to be a directory rather than a normal file.
_________________
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
Qvis
n00b
n00b


Joined: 04 Jan 2011
Posts: 2

PostPosted: Tue Jan 04, 2011 8:26 am    Post subject: Reply with quote

Hi. I just finished installing gentoo, following all the instructions in the guide, and everything went fine until the point where I had to reboot. I got GRUB ERROR 15. I think that it means that it couldn't find what it needed to boot. Any ideas on how to fix it?

IMG http://img2.imagetwist.com/i/00140/c21xbk7bxb3c.jpg
Back to top
View user's profile Send private message
hcc
n00b
n00b


Joined: 04 Jan 2011
Posts: 4

PostPosted: Tue Jan 04, 2011 10:43 am    Post subject: Only grub command line Reply with quote

HI

I am using tow hds in my PC, sda and sdb, and i setup the sdb like in the gentoo boook. So sdb1 is boot/, sdb2 swap and sdb3 is /
After all the other stuff i set grub-install -no--floppy /dev/sdb

After booting grub started, but only in the command line mode. When i set
Code:
root (hd1,0)
this and then run
Code:
configfile /grub/grub.conf
the menu is there.
So what a did wrong that the menu did not show up in the first place?

I also tryed to the direct whay throw grub.
Code:
grub> root (hd1,0)
grub> setup
grub> quit

like in http://www.gentoo.de/doc/de/handbook/handbook-x86.xml?part=1&chap=10
but still the same problem


here my config files and a link i found about solutions, but none solved my problem: http://www.gentoo.org/doc/de/grub-error-guide.xml
Code:
gentoo ~ # cat /boot/grub/menu.lst
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 30
#splashimage=(hd1,0)/boot/grub/splash.xpm.gz

titleGentoo 2.6.36 02.01.2011
root(hd1,0)
kernel/boot/gentoo-2.6.36r5 root=/dev/sdb3



Code:
gentoo ~ # ls -al /boot/
total 4407
drwxr-xr-x 4 root root1024 Jan 2 21:14 .
drwxr-xr-x 18 root root4096 Jan 3 12:17 ..
-rw-r--r-- 1 root root 0 Jan 3 11:59 .keep
lrwxrwxrwx 1 root root 1 Jan 2 16:06 boot -> .
-rw-r--r-- 1 root root 4473888 Jan 2 19:21 gentoo-2.6.36r5
drwxr-xr-x 2 root root1024 Jan 3 12:43 grub
drwx------ 2 root root 12288 Jan 2 15:35 lost+found
gentoo ~ # ls -al /boot/grub/
total 446
drwxr-xr-x 2 root root 1024 Jan 3 12:43 .
drwxr-xr-x 4 root root 1024 Jan 2 21:14 ..
-rw-r--r-- 1 root root197 Jan 3 12:43 default
-rw-r--r-- 1 root root 30 Jan 2 23:00 device.map
-rw-r--r-- 1 root root 8692 Jan 3 12:43 e2fs_stage1_5
-rw-r--r-- 1 root root 7820 Jan 3 12:43 fat_stage1_5
-rw-r--r-- 1 root root 7088 Jan 3 12:43 ffs_stage1_5
-rw-r--r-- 1 root root668 Jan 3 12:52 grub.conf
-rw-r--r-- 1 root root 7088 Jan 3 12:43 iso9660_stage1_5
-rw-r--r-- 1 root root 8684 Jan 3 12:43 jfs_stage1_5
lrwxrwxrwx 1 root root 9 Jan 2 21:14 menu.lst -> grub.conf
-rw-r--r-- 1 root root658 Jan 3 12:06 menu.lst.save
-rw-r--r-- 1 root root 7292 Jan 3 12:43 minix_stage1_5
-rw-r--r-- 1 root root 9684 Jan 3 12:43 reiserfs_stage1_5
-rw-r--r-- 1 root root 33856 Jan 3 11:59 splash.xpm.gz
-rw-r--r-- 1 root root512 Jan 3 12:43 stage1
-rw-r--r-- 1 root root 107912 Jan 3 12:43 stage2
-rw-r--r-- 1 root root 107912 Jan 2 23:00 stage2.old
-rw-r--r-- 1 root root 107912 Jan 3 11:59 stage2_eltorito
-rw-r--r-- 1 root root 7344 Jan 3 12:43 ufs2_stage1_5
-rw-r--r-- 1 root root 6692 Jan 3 12:43 vstafs_stage1_5
-rw-r--r-- 1 root root 9524 Jan 3 12:43 xfs_stage1_5
gentoo ~ #


Thx for help
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jan 04, 2011 11:25 am    Post subject: Reply with quote

Qvis,

Your image shows a successful grub install. Error 15 means
Code:
15 : File not found
     This error is returned if the specified file name cannot be found,
     but everything else (like the disk/partition info) is OK.


This means that one of the files that grub was asked to load in its grub.conf is not found.
Look at the kernel and initrd file names in your /boot and ensure they are identical in grub.conf.
You may not have an initrd file - it depends how you made your kernel.

Post the output of
Code:
ls -l /boot
and the content of grub.conf for more help.
_________________
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: 29976
Location: 56N 3W

PostPosted: Tue Jan 04, 2011 11:37 am    Post subject: Reply with quote

hcc,

Welcome to Gentoo

White space is important in grub.conf
Code:
titleGentoo 2.6.36 02.01.2011
root(hd1,0)
kernel/boot/gentoo-2.6.36r5 root=/dev/sdb3

should be
Code:
title Gentoo 2.6.36 02.01.2011
root(hd1,0)
kernel /boot/gentoo-2.6.36r5 root=/dev/sdb3


That's a space after the word title and a space after the word kernel.
_________________
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
hcc
n00b
n00b


Joined: 04 Jan 2011
Posts: 4

PostPosted: Tue Jan 04, 2011 12:14 pm    Post subject: Reply with quote

NeddySeagoon wrote:
hcc,

Welcome to Gentoo

White space is important in grub.conf
Code:
titleGentoo 2.6.36 02.01.2011
root(hd1,0)
kernel/boot/gentoo-2.6.36r5 root=/dev/sdb3

should be
Code:
title Gentoo 2.6.36 02.01.2011
root(hd1,0)
kernel /boot/gentoo-2.6.36r5 root=/dev/sdb3


That's a space after the word title and a space after the word kernel.


hi, there are tabs, but in the copy processes they disapered, sorry i missed that.
I think the grub.conf is correct, because i can load it with configfile /grub/grub.conf
at boot time and after booting in the grub shell.
But i have first to run root (hd1,0)
so i think grub sets the wrrong disk as root. But i don't know why.
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 ... 27, 28, 29, 30, 31  Next
Page 28 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