View previous topic :: View next topic |
Author |
Message |
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Thu Apr 29, 2004 3:36 pm Post subject: please help =( |
|
|
on boot up i get a nice grub screen
when i choose gentoo
i get this exact message
Booting 'Gentoo Linux 2.4.25'
root (hd0,3)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/kernel-2.6.5-gentoo root=/dev/ram0 init=/linuxrc real_root=dev/hda5
Error 15: File not found
Press any key to continue...
i noticed that the top says 2.4.25 when the kernel is 2.6.5(real) does this matter?
how do i get it to boot correctly???
when i ls -l /boot i still get
lrwxrwxrwx 1 root root 22 Apr 29 02:42 /boot -> mnt/cdrom//zisofs/boot
and i can't
rm /usr/src/linux && ln -s /usr/src/linux-2.6.5-gentoo /usr/src/linux
it says the drive is read only...
i know i've been making lots of topics for one day, but i've been up for 26 hours now trying to complete this install. I am determined to get it up and working before i get to sleep. can someone please help me? |
|
Back to top |
|
|
dmouritsendk Tux's lil' helper
Joined: 22 Jun 2002 Posts: 138 Location: Denmark
|
Posted: Thu Apr 29, 2004 4:02 pm Post subject: Re: please help =( |
|
|
remix wrote: | on boot up i get a nice grub screen
Booting 'Gentoo Linux 2.4.25'
root (hd0,3)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/kernel-2.6.5-gentoo root=/dev/ram0 init=/linuxrc real_root=dev/hda5
|
real_root should be /dev/hda5
remix wrote: |
i noticed that the top says 2.4.25 when the kernel is 2.6.5(real) does this matter?
how do i get it to boot correctly???
when i ls -l /boot i still get
lrwxrwxrwx 1 root root 22 Apr 29 02:42 /boot -> mnt/cdrom//zisofs/boot
and i can't
rm /usr/src/linux && ln -s /usr/src/linux-2.6.5-gentoo /usr/src/linux
it says the drive is read only...
|
It looks like your booted of your cdrom? judging from your /boot and the fact its read-only.
Are you sure you took the cdrom out? If yes, could you try and post your grub config and fstab to give some more info? |
|
Back to top |
|
|
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Thu Apr 29, 2004 4:28 pm Post subject: |
|
|
i always boot with the cd. can't boot without it yet.
and i think i did do something wrong cause everytime i edit fstab, save changes, reboot, and look at the fstab again, its back to default!!! with commented out default lines like i never touched it or saved it.
i can open my /boot/grub/grub.conf and when i write to it, it saves and when i reboot, the changes are still there, so that works fine.
default 0
timeout 30
splashimage=(hd0,3)/grub/splash.xpm.gz
title=Gentoo Linux 2.4.25
root (hd0,3)
kernel /boot/kernel-2.6.5-gentoo root=/dev/ram0 init=/linuxrc real_root=/dev/hda5
initrd /boot/initrd-2.6.5-gentoo
title=Windows XP
root (hd0,1)
chainloader +1
is the kernel wrong? |
|
Back to top |
|
|
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Thu Apr 29, 2004 4:47 pm Post subject: |
|
|
when i ls /boot/kernel* /boot/initrd*
i get No such file or directory
crap did i mess up the entire install?
do i have to
genkernel all
all over again and start from there? |
|
Back to top |
|
|
dmouritsendk Tux's lil' helper
Joined: 22 Jun 2002 Posts: 138 Location: Denmark
|
Posted: Thu Apr 29, 2004 4:54 pm Post subject: |
|
|
your grub.conf looks fine (assuming hd(0,3) is the correct partition ofcourse )), only comment i got is that "root (hd0,1)" (in the XP section) should be rootnoverify (hd0,1).
This confuses me a bit, you say that a ls -l /boot shows a symlink to your cdrom and you say you are able to edit and save your grub.conf. Where exactly is this grub config located?
Also, you say that the changes you made to fstab where undone when you reboot. Do you mount the devices after rebooting? If your booting of your cd, the root filesystem will be the one from your liveCD and not the one located on your harddisk. |
|
Back to top |
|
|
dmouritsendk Tux's lil' helper
Joined: 22 Jun 2002 Posts: 138 Location: Denmark
|
Posted: Thu Apr 29, 2004 5:15 pm Post subject: |
|
|
remix wrote: | when i ls /boot/kernel* /boot/initrd*
i get No such file or directory
crap did i mess up the entire install?
do i have to
genkernel all
all over again and start from there? |
Did you mount your boot device to /mnt/gentoo/boot and your root-device to /mnt/gentoo during the install? If you did this, and you chroot'ed into that directory (/mnt/gentoo) like the install doc describes then your "installation" will still be located on these.
What worries me a bit, is that grub can't find your kernel image on your /boot dev. Because if your bootdevice was mounted on /mnt/gentoo/boot when it you copied the kernel file to the dir, it should be there(and its not).
So question, did you do this:
mount /dev/yourrootdev /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/yourbootdev /mnt/gentoo/boot
and this:
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
before you began to bootstrap, compile kernel etc etc ? |
|
Back to top |
|
|
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Thu Apr 29, 2004 5:36 pm Post subject: |
|
|
Quote: | Did you mount your boot device to /mnt/gentoo/boot and your root-device to /mnt/gentoo during the install? If you did this, and you chroot'ed into that directory (/mnt/gentoo) like the install doc describes then your "installation" will still be located on these. |
oops.
i..
mount /dev/hda4 /boot
mount /dev/hda6 /mnt/gentoo
Quote: |
What worries me a bit, is that grub can't find your kernel image on your /boot dev. Because if your bootdevice was mounted on /mnt/gentoo/boot when it you copied the kernel file to the dir, it should be there(and its not).
|
i find grub.conf in
/boot/grub/grub.conf
and i find...
/mnt/gentoo/boot/initrd-2.6.5-gentoo-r1
/mnt/gentoo/boot/kernel-2.6.5-gentoo-r1
settings seem a bit wrong dont they? will this work? and how would i have to configure my grub.conf or fstab ?
i found the fstab that i can edit, (the whole time i've been editing /etc/fstab which is on the cd) but when i first configured fstab in chroot it worked, here is my fstab, is this correct?
/dev/hda4 /boot ext2 noauto,noatime 1 2
/dev/hda6 /mnt/gentoo ext3 noatime 0 1
/dev/hda8 /home ext3 noatime 0 1
/dev/hda7 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
none /proc/bus/usb usbfs defaults 0 0
none /proc proc defaults 0 0
Quote: |
So question, did you do this:
mount /dev/yourrootdev /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/yourbootdev /mnt/gentoo/boot
and this:
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
before you began to bootstrap, compile kernel etc etc ?
|
yes. |
|
Back to top |
|
|
dmouritsendk Tux's lil' helper
Joined: 22 Jun 2002 Posts: 138 Location: Denmark
|
Posted: Thu Apr 29, 2004 6:09 pm Post subject: |
|
|
remix wrote: |
i find grub.conf in
/boot/grub/grub.conf
and i find...
/mnt/gentoo/boot/initrd-2.6.5-gentoo-r1
/mnt/gentoo/boot/kernel-2.6.5-gentoo-r1
settings seem a bit wrong dont they? will this work? and how would i have to configure my grub.conf or fstab ?
|
You should edit these linies in grub.conf:
Code: |
kernel /boot/kernel-2.6.5-gentoo root=/dev/ram0 init=/linuxrc real_root=/dev/hda5
initrd /boot/initrd-2.6.5-gentoo
|
so it point to the images on your /boot partition, like this:
Code: |
kernel /boot/kernel-2.6.5-gentoo-r1 root=/dev/ram0 init=/linuxrc real_root=/dev/hda5
initrd /boot/initrd-2.6.5-gentoo-r1
|
remix wrote: |
i found the fstab that i can edit, (the whole time i've been editing /etc/fstab which is on the cd) but when i first configured fstab in chroot it worked, here is my fstab, is this correct?
/dev/hda4 /boot ext2 noauto,noatime 1 2
/dev/hda6 /mnt/gentoo ext3 noatime 0 1
/dev/hda8 /home ext3 noatime 0 1
/dev/hda7 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
none /proc/bus/usb usbfs defaults 0 0
none /proc proc defaults 0 0
|
Code: |
/dev/hda6 /mnt/gentoo ext3 noatime 0 1
|
should be
Code: |
/dev/hda6 / ext3 noatime 0 1
|
|
|
Back to top |
|
|
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Thu Apr 29, 2004 6:27 pm Post subject: |
|
|
i made those changes, i still get the same error message when trying to boot.
File not found.
hmmm, i've tried everything... when i make the changes, i have to umount right? then reboot.? |
|
Back to top |
|
|
dmouritsendk Tux's lil' helper
Joined: 22 Jun 2002 Posts: 138 Location: Denmark
|
Posted: Thu Apr 29, 2004 6:51 pm Post subject: |
|
|
Reboot, do:
mount /dev/yourrootdev /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/yourbootdev /mnt/gentoo/boot
swapon /dev/urswap-partition
mkdir /mnt/gentoo/proc
mount -t proc none /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
rebuild your kernel, install the image files in /boot (not sure if genkernel does this automatically), verify that your /boot contains a kernel and a initrd file, update grub.conf so the filenames match if needed.
edit: forgot /proc and swapon |
|
Back to top |
|
|
remix l33t
Joined: 28 Apr 2004 Posts: 797 Location: hawaii
|
Posted: Thu Apr 29, 2004 7:14 pm Post subject: |
|
|
ok! FINALLY!!! i got it to go somewhere, i did what you advised, plus i changed the line in grub.conf root(hd0,3) to root(hd0,5)
when i booted up and chose gentoo from grub, it loaded! straight into a tux login and tux prompt. is this where i'm supposed to be?
where do i go from here? |
|
Back to top |
|
|
dmouritsendk Tux's lil' helper
Joined: 22 Jun 2002 Posts: 138 Location: Denmark
|
Posted: Thu Apr 29, 2004 7:23 pm Post subject: |
|
|
remix wrote: | ok! FINALLY!!! i got it to go somewhere, i did what you advised, plus i changed the line in grub.conf root(hd0,3) to root(hd0,5)
when i booted up and chose gentoo from grub, it loaded! straight into a tux login and tux prompt. is this where i'm supposed to be?
where do i go from here? |
Congrats on your new gentoo box
now you start emergin the apps you want on the system,check this page for more info about what to look into now |
|
Back to top |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Thu Apr 29, 2004 8:46 pm Post subject: |
|
|
good job! both of you
welcome to gentoo! _________________ To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be. |
|
Back to top |
|
|
t_2199 Tux's lil' helper
Joined: 20 Mar 2004 Posts: 146
|
Posted: Thu Apr 29, 2004 9:16 pm Post subject: |
|
|
remix wrote: | ok! FINALLY!!! i got it to go somewhere, i did what you advised, plus i changed the line in grub.conf root(hd0,3) to root(hd0,5)
when i booted up and chose gentoo from grub, it loaded! straight into a tux login and tux prompt. is this where i'm supposed to be?
where do i go from here? |
I´m glad you finally made it |
|
Back to top |
|
|
unimad n00b
Joined: 30 Apr 2004 Posts: 2 Location: Placentia, CA
|
Posted: Fri Apr 30, 2004 5:06 am Post subject: Thanks |
|
|
Just wanted to say thanks to all who replied on this thread! It got me past a handful of grub configuration issues... |
|
Back to top |
|
|
|