Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Error 23: won't boot after fresh install
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
FullyFunctnlPhil
n00b
n00b


Joined: 29 Jul 2005
Posts: 41

PostPosted: Mon Aug 01, 2005 1:29 am    Post subject: [SOLVED]Error 23: won't boot after fresh install Reply with quote

After following the Installation Guide all the way through and rebooting, I was greeted by

"Booting 'Gentoo Linux 2.6.12'
root (sd0,0)
Error 23: Error while parsing number"

I searched the boards and figured out that I should change sd0,0 to hd0,0 in the grub.conf file, but when I reboot with the livecd and try to edit the file, it won't let me save because it says that the file doesn't exist, even when I follow the Installation Guide code exactly. I tried chrooting as outlined in Chapter 6, but it won't even recognize the "emerge" function. What am I missing?


Last edited by FullyFunctnlPhil on Thu Aug 04, 2005 9:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2526
Location: Denmark

PostPosted: Mon Aug 01, 2005 2:48 am    Post subject: Reply with quote

sounds like you did something wrong.

after you chroot, you need to edit the grub.conf and make sure you install grub in the right location.
( edit the files in the installation, not in the cdrom )
_________________
linux: #232767
Back to top
View user's profile Send private message
FullyFunctnlPhil
n00b
n00b


Joined: 29 Jul 2005
Posts: 41

PostPosted: Mon Aug 01, 2005 4:25 am    Post subject: Reply with quote

ikaro wrote:
after you chroot, you need to edit the grub.conf and make sure you install grub in the right location.
( edit the files in the installation, not in the cdrom )


When I try
Code:
# chroot /mnt/gentoo /bin/bash

it says
Code:
chroot: cannot run command '/bin/bash': No such file or directory


How do I chroot into the correct environment, and is there anything I should know about grub besides what is in the Installation Guide?
Back to top
View user's profile Send private message
JTHM
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2005
Posts: 115
Location: South Farms

PostPosted: Mon Aug 01, 2005 4:38 am    Post subject: Reply with quote

Did you mount the filesystem to /mnt/gentoo? If not, run (assuming that /dev/sda3 is your root filesystem and /dev/sda1 if your boot partition:

mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
chroot /mnt/gentoo
env-update
source /etc/profile

I know I made this mistake a ton when I was installing my system. After that, I think you should try changing "root (sd0,0)" to "root (hd0,0)" in /boot/grub/grub.conf. I'm no expert myself, though, so somebody let me know if this is completely wrong :F
_________________
Any problem can be solved. You just need to throw enough time and ninjas at it.
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2526
Location: Denmark

PostPosted: Mon Aug 01, 2005 4:38 am    Post subject: Reply with quote

maybe you 'forgot' to unpack the stage and bootstrap ?
loooks like you dont have bash installed.
_________________
linux: #232767
Back to top
View user's profile Send private message
Ahman_Ra
n00b
n00b


Joined: 14 Apr 2003
Posts: 9
Location: greater stlouis mo area

PostPosted: Mon Aug 01, 2005 4:43 pm    Post subject: i'm having the same error here, the parsing part Reply with quote

Ok, FullyFunctnlPhil, are you trying to install gentoo on a scsi disk? If so, it can't find the information on hd0,0 because that is an internal drive isn't it? I'm doing this the first time on an external drive, so I'm in new waters here. But it looks like your doing something similar by your first comment.

To mount my drive for installation i had to use /dev/sda3 to mount root. So my question on this thread is, should we be using sd0,0 for root since people that mount /dev/hda3 when they did install use hd0,0 to boot from grub?
_________________
______________
The only difference between Stupid and Stupendous is the ending
______________
Life is hard. Stupidity makes it harder.
______________
Back to top
View user's profile Send private message
FullyFunctnlPhil
n00b
n00b


Joined: 29 Jul 2005
Posts: 41

PostPosted: Mon Aug 01, 2005 6:10 pm    Post subject: Reply with quote

Thanks for the suggestions.

I edited the grub.conf file and went ahead and reinstalled grub. Everything seemed to go fine, and I rebooted. Now I see:

Code:
Booting 'Gentoo Linux2.6.12'
root(hd0,0)
 Filesystem type is ext2fs, partition type 0x83
kernel /kernel-2.6.12-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev

Error 15: File not found


So, um, what do I do now?

Also, I'm not sure if this is meaningful, but every period and hyphen in the message appears as a scrambled block of pixels.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Aug 01, 2005 6:32 pm    Post subject: Reply with quote

FullyFunctnlPhil wrote:
Thanks for the suggestions.

I edited the grub.conf file and went ahead and reinstalled grub. Everything seemed to go fine, and I rebooted. Now I see:

Code:
Booting 'Gentoo Linux2.6.12'
root(hd0,0)
 Filesystem type is ext2fs, partition type 0x83
kernel /kernel-2.6.12-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev

Error 15: File not found


So, um, what do I do now?

Also, I'm not sure if this is meaningful, but every period and hyphen in the message appears as a scrambled block of pixels.
Check if the file kernel-2.6.12-gentoo-r6 really exists. Is that the exact name it has? You can also use the tab completion feature of grub to find out what files grub can see. After the error press "e" for edit mode, then select the entry you tried to boot and press "e" again. Move to the beginning of the line just after the "/", delete the kernel name that is there and then use the tab to find out what files grub can see.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
FullyFunctnlPhil
n00b
n00b


Joined: 29 Jul 2005
Posts: 41

PostPosted: Mon Aug 01, 2005 6:42 pm    Post subject: Reply with quote

nixnut wrote:
Check if the file kernel-2.6.12-gentoo-r6 really exists. Is that the exact name it has? You can also use the tab completion feature of grub to find out what files grub can see. After the error press "e" for edit mode, then select the entry you tried to boot and press "e" again. Move to the beginning of the line just after the "/", delete the kernel name that is there and then use the tab to find out what files grub can see.


Ehhh.
I got to the edit menu and could barely read any of the text on the screen because there are big vertical lines and stray blocks of pixels obscuring the text, but I made out enough to edit the entry. I tried the tab completion and the screen became even more distorted, but it appears not to have worked correctly. I can make out something along the lines of

Code:
possible files are lost/found keep boot kernel genkernel (kernel name, presumably) system map genkernel (kernel name again) initramls (?) (kernel name again) grub

grub edit> kernel /


This would be a lot easier if I could actually read what was on the screen.
Back to top
View user's profile Send private message
JTHM
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2005
Posts: 115
Location: South Farms

PostPosted: Mon Aug 01, 2005 6:47 pm    Post subject: Reply with quote

If you're having problems reading the screen, you can always boot back into the liveCD, remount everything, then edit your grub.conf file there. What's currently in your grub.conf file, anyway? It might be a bad VGA setting or grub splash screen that's causing all the fuzzy characters.
_________________
Any problem can be solved. You just need to throw enough time and ninjas at it.
Back to top
View user's profile Send private message
FullyFunctnlPhil
n00b
n00b


Joined: 29 Jul 2005
Posts: 41

PostPosted: Mon Aug 01, 2005 7:22 pm    Post subject: Reply with quote

My grub.conf file is as follows:
Code:
default 0
timeout 30
splashimage=(hd0,0)grub/splash.xpm.gz

title=Gentoo Linux 2.6.12
root (hd0,0)
kernel /kernel-2.6.12-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev
initrd /initrd-2.6.12-gentoo-r6

title=Windows 2000
root (hd0,5)
makeactive
chainloader +1
Back to top
View user's profile Send private message
JTHM
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2005
Posts: 115
Location: South Farms

PostPosted: Mon Aug 01, 2005 7:31 pm    Post subject: Reply with quote

Ok, cool. What's the output of
Code:

ls -l /boot/


A few things I can suggest off the top of my head, though:

Change the splashimage line to:
Code:

splashimage=(hd0,0)/grub/splash.xpm.gz


Also, where's your initrd file located? Is it actually in the root directory? If it's in /boot, try adding "/boot" to the begining of the path
_________________
Any problem can be solved. You just need to throw enough time and ninjas at it.
Back to top
View user's profile Send private message
FullyFunctnlPhil
n00b
n00b


Joined: 29 Jul 2005
Posts: 41

PostPosted: Tue Aug 02, 2005 1:49 am    Post subject: Reply with quote

Ok, this is going to be fun to type. Here it goes. The output of ls -l /boot/ is:

Code:
total 10953
-rw-r--r-- 1 root root 882164 Mar 20 21:55 System.map-2.6.11-gentoo-r3-em64t
-rw-r--r-- 1 root root 899796 Mar 20 21:39 System.map-2.6.11-gentoo-r3-k8
lrwxrwxrwx 1 root root 1 Mar 20 22:13 boot -> .
-rw-r--r-- 1 root root 2025291 Mar 20 22:02 initrd-2.6.11-gentoo-r3-em64t
-rw-r--r-- 1 root root 2028395 Mar 20 21:49 initrd-2.6.11-gentoo-r3-k8
-rw-r--r-- 1 root root 2674300 Mar 20 21:55 initrd-2.6.11-gentoo-r3-em64t
-rw-r--r-- 1 root root 2703609 Mar 20 21:39 initrd-2.6.11-gentoo-r3-k8


Uh...this doesn't seem right. I downloaded and compiled a different kernel; I don't know why it's showing 2.6.11-gentoo-r3

As for the initrd, I followed the Installation Guide instructions verbatim and even copied the grub.conf file, so it should be in the right place.
Back to top
View user's profile Send private message
FullyFunctnlPhil
n00b
n00b


Joined: 29 Jul 2005
Posts: 41

PostPosted: Tue Aug 02, 2005 1:59 am    Post subject: Reply with quote

Also, I changed the grub.conf file and I was indeed only missing the /. Thanks, JTHM. I can now actually read the error upon rebooting!
I get the same error:

Code:
root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83
kernel /kernel-2.6.12-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev

Error 15: File not found


When I try to edit it and do tab completion, it says:
Code:
grub edit> kernel /
 Possible files are: lost+found .keep boot kernel-genkernel-x86_64-2.6.12-gentoo-r6 System.map-genkernel-x86_64-2.6.12-gentoo-r6 initramfs-genkernel-x86_64-2.6.12-gentoo-r6 grub


It seems like at every step there's a different name for the kernel it's trying to find. I don't know what to do.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Aug 02, 2005 2:02 am    Post subject: Reply with quote

FullyFunctnlPhil wrote:
Uh...this doesn't seem right. I downloaded and compiled a different kernel; I don't know why it's showing 2.6.11-gentoo-r3

/boot is the location of the LiveCD's kernel(s).

Take a look at /mnt/gentoo/boot to see the kernel on your harddrive (after mounting your / and /boot partitions of course).
Back to top
View user's profile Send private message
FullyFunctnlPhil
n00b
n00b


Joined: 29 Jul 2005
Posts: 41

PostPosted: Tue Aug 02, 2005 2:16 am    Post subject: Reply with quote

cyrillic wrote:
Take a look at /mnt/gentoo/boot to see the kernel on your harddrive (after mounting your / and /boot partitions of course).


I mounted both (mount /dev/sda3 /mnt/gentoo) and (mount /dev/sda1 /mnt/gentoo/boot), but when I try ls /mnt/gentoo/boot, it says "No such file or directory"

What happened?
Back to top
View user's profile Send private message
JTHM
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2005
Posts: 115
Location: South Farms

PostPosted: Tue Aug 02, 2005 4:05 am    Post subject: Reply with quote

hehe, sorry, forgot you'd be using the LiveCD's file structure :oops:. That's weird about the "no such file or directory" error, though. Try to cd into /mnt/gentoo, then do a ls and make sure boot's in there. Does everything mount cleanly, though? Seems like it should give you an error when trying to mount to a non-existing drive. Only thing I could think of off the top of my head would be a typo or something. Try using tab completion to help with typing everything (for example, type cd /mnt/ge*tab* and it should autocomplete. Press tab twice if there are multiple options to list them. It's a great time-saver for whenever you're using the console). But yeah, that's where the files should be. Sorry for the confusion.
_________________
Any problem can be solved. You just need to throw enough time and ninjas at it.
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1158

PostPosted: Tue Aug 02, 2005 9:50 am    Post subject: Reply with quote

JTHM wrote:
Did you mount the filesystem to /mnt/gentoo? If not, run (assuming that /dev/sda3 is your root filesystem and /dev/sda1 if your boot partition:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
chroot /mnt/gentoo
env-update
source /etc/profile
I know I made this mistake a ton when I was installing my system. After that, I think you should try changing "root (sd0,0)" to "root (hd0,0)" in /boot/grub/grub.conf. I'm no expert myself, though, so somebody let me know if this is completely wrong :F
The above sequence has steps missing and the chroot will not be done correctly!

Hi FullyFunctnlPhil,
Make sure that you chroot properly and that ALL your partitions are mounted correctly before you try to find out what's under /boot. A typical installation will require the following steps after you boot with the LiveCD:
Code:
# mount /dev/sda3 /mnt/gentoo
# mount /dev/sda1 /mnt/gentoo/boot
# mount -t proc none /mnt/gentoo/proc
# cd /mnt/gentoo
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
Following these steps should produce no errors, if it does post back because there may be something wrong with your installation.

Once you chroot into your Gentoo system you need to make sure that your /boot partition contains the Grub fs with its grub.conf, and a copy of your kernel image (not just the System.map). If by mistake you have emerged and installed Grub without having your /boot partition mounted, then the /boot directory and all the Grub fs was installed under /. To see if this is the case unmount /dev/sda1 and list the contents of /boot:
# umount /dev/sda1
# ls -la /boot

It should be empty.

Finally, check that your /etc/fstab is correct (i.e. points to the correct partitions).
_________________
Regards,
Mick
Back to top
View user's profile Send private message
FullyFunctnlPhil
n00b
n00b


Joined: 29 Jul 2005
Posts: 41

PostPosted: Tue Aug 02, 2005 4:14 pm    Post subject: Reply with quote

MickKi wrote:
Once you chroot into your Gentoo system you need to make sure that your /boot partition contains the Grub fs with its grub.conf, and a copy of your kernel image (not just the System.map). If by mistake you have emerged and installed Grub without having your /boot partition mounted, then the /boot directory and all the Grub fs was installed under /. To see if this is the case unmount /dev/sda1 and list the contents of /boot:
# umount /dev/sda1
# ls -la /boot

It should be empty.

Finally, check that your /etc/fstab is correct (i.e. points to the correct partitions).


Thanks for the tip about mounting. I thought I'd forgotten something.
ls -la /boot shows grub, the System.map kernel, initramfs-kernel, and what appears to be the kernel image (kernel-genkernel-x86_2.6.12-gentoo-r6).

I looked in /etc/fstab and noticed that my root filesystem was labeled as xfs, when it should be reiserfs. I changed that, saved, and rebooted, but I'm getting the same error as before.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Aug 02, 2005 5:08 pm    Post subject: Reply with quote

FullyFunctnlPhil wrote:
and what appears to be the kernel image (kernel-genkernel-x86_2.6.12-gentoo-r6)

Quote:

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

title=Gentoo Linux 2.6.12
root (hd0,0)
kernel /kernel-2.6.12-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev
initrd /initrd-2.6.12-gentoo-r6

title=Windows 2000
root (hd0,5)
makeactive
chainloader +1

Looks like the name of the kernel image and the name you have in grub.conf don't match.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
FullyFunctnlPhil
n00b
n00b


Joined: 29 Jul 2005
Posts: 41

PostPosted: Tue Aug 02, 2005 5:25 pm    Post subject: Reply with quote

nixnut wrote:
Looks like the name of the kernel image and the name you have in grub.conf don't match.


I changed the line in grub.conf and rebooted, but still got the same error. Do I need to change the initrd line as well?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Aug 02, 2005 5:50 pm    Post subject: Reply with quote

Yes, the name of the initrd should match the name in grub.conf too.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
FullyFunctnlPhil
n00b
n00b


Joined: 29 Jul 2005
Posts: 41

PostPosted: Tue Aug 02, 2005 6:00 pm    Post subject: Reply with quote

nixnut wrote:
Yes, the name of the initrd should match the name in grub.conf too.


I changed grub.conf to
Code:
kernel /kernel-genkernel-x86_2.6.12-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev
initrd /initrd-genkernel-x86_2.6.12-gentoo-r6


No difference when I reboot.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Aug 02, 2005 6:08 pm    Post subject: Reply with quote

FullyFunctnlPhil wrote:

Code:
kernel /kernel-genkernel-x86_2.6.12-gentoo-r6 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev
initrd /initrd-genkernel-x86_2.6.12-gentoo-r6


No difference when I reboot.
Then those are not the names of the files. If grub says error 15 file not found it means just that. File not found. So it doesn't exist by the name you specified in grub.conf or it does not exist at all. So once again, boot the livecd and mount your boot partition and see what files do really exist in there.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand


Last edited by nixnut on Tue Aug 02, 2005 6:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1158

PostPosted: Tue Aug 02, 2005 6:29 pm    Post subject: Reply with quote

FullyFunctnlPhil wrote:
Thanks for the tip about mounting. I thought I'd forgotten something.
ls -la /boot shows grub, the System.map kernel, initramfs-kernel, and what appears to be the kernel image (kernel-genkernel-x86_2.6.12-gentoo-r6).
Are these files listed with /boot mounted or unmounted?

If when unmounted then change your grub.conf to point to your / partition . . . i.e. root (hd0,2)
_________________
Regards,
Mick
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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