Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
install problem, I think it's grub.conf file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Thu Feb 14, 2013 6:23 pm    Post subject: install problem, I think it's grub.conf file Reply with quote

hi
I tried to install gentoo on VM Virtual Box. When the time for reboot came I got the message "...file not found". I believe I made mistakes in grub.conf file. What should / can I do next?

Thanks
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Thu Feb 14, 2013 6:32 pm    Post subject: Reply with quote

id reboot under the live cd... mount the drives, chroot in.... and follow the grub2 wiki instead of grub1......

if ur still having problems..... LILO until further notice :twisted:
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Feb 14, 2013 6:48 pm    Post subject: Reply with quote

certem,

Welcome to gentoo - the fun has just begun :D

Providing your grub.conf and the output of ls -l /boot will help with determining what the problem is :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Feb 14, 2013 10:07 pm    Post subject: Reply with quote

Grub has search and edit functions. You can search for correct filename and you can edit your menu entries right from boot menu. Just a little Google for Grub tutorial will help you out.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Fri Feb 15, 2013 2:25 pm    Post subject: install problem, I think it's grub.conf file Reply with quote

Thanks for the replies and the welcoming.

My next question will also supply info about my low level of knowledge which means I need more help.

Could you please tell me the way to provide "grub.conf" and "the output of ls -l /boot"

I followed the handbook and made several :D attempts. My history: pre intalled windowses, mint and ubuntu installations. I'm determined to get into Gentoo.
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Fri Feb 15, 2013 4:12 pm    Post subject: Reply with quote

alt + f2
xterm
run

mount boot since your having boot problems

su -c 'mount /boot'

then update locates database

sudo updatedb (or su -c 'updatedb' if you do not have sudo)

then find the grub file to print.....

locate grub.conf

(i dont have grub.conf because im grub2)

su -c 'cat /boot/grub2/grub.cfg'

post the result here.....

then

ls -l /boot

again post output here
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Feb 15, 2013 5:22 pm    Post subject: Reply with quote

certem,

Make friends with wgetpaste. You will need to install it with
Code:
emerge wgetpaste


Now, wgetpaste /path/to/file will put file on the web and return a URL to it.
Tell us the URL.

wgetpaste also works with command output but the syntax is slightly different.
Code:
wgetpaste --help
will tell you. If not, the friendly manual at
Code:
man wgetpaste
will.
_________________
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
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Fri Feb 15, 2013 8:43 pm    Post subject: Reply with quote

The grub.conf

Code:
grub.conf

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

title Gentoo Linux 3.6.11
root (hd0,0)
kernel /boot/3.6.11-gentoo root=/dev/ram0 real_root=/dev/sda3

title Gentoo Linux 3.6.11 (Rescue)
root (hd0,0)
kernel /boot/3.6.11-gentoo root=/dev/sda3 init=/bin/bb
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5

# vim:ft=conf:


The ls -l /boot

Code:
livecd ~ # cd /mnt/gentoo/boot
livecd boot # ls -l

total 13
lrwxrwxrwx 1 root root   1 Feb   14 01:29   boot ->  .
drwxr-xr-x  2 root root    1024 Feb   14  01:40 grub
drwx------  2 root root  12288 Feb        13 22:31 lost+found
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Feb 15, 2013 10:06 pm    Post subject: Reply with quote

certem wrote:
The ls -l /boot

Code:
livecd ~ # cd /mnt/gentoo/boot
livecd boot # ls -l

total 13
lrwxrwxrwx 1 root root 1 Feb 14 01:29 boot -> .
drwxr-xr-x 2 root root 1024 Feb 14 01:40 grub
drwx------ 2 root root 12288 Feb 13 22:31 lost+found

OK, there's no kernel in boot :?

Do you mount boot when you chroot :?: Chroot to gentoo, but make sure you mount boot then cd to /usr/src/linux and make install.

That will copy bzImage to /boot/3.6.11-gentoo
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Sat Feb 16, 2013 7:02 am    Post subject: Reply with quote

is there an easy way that I can copy/paste from the terminal in the VM out to windows so I can post what I did and the results of what I did? (Googling didn't help)

I mounted boot chrooted and did "make install" finally rebooted...but still "file not found"

after I also tried with changing a line in the grub.conf
Code:
kernel /boot/3.6.11-gentoo root=/dev/ram0 real_root=/dev/sda3


to
Code:
kernel /boot/kernel-3.6.11-gentoo root=/dev/sda3
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 16, 2013 9:03 am    Post subject: Reply with quote

certem,

You need to
Code:
emerge gpm
to get the console mouse in Gentoo.

Highlight what you want to copy in the console in the normal way.
Provided you have the shared clipboard enabled, which I think is the default, you can then paste outside the VM.

Grub gives you Error 15 rather than file not found, so I'm not sure where your file not found error is coming from.

Please tell exactly when you get the 'file not found' error.
Before you see the grub splash screen, with its menu?
After you choose a menu item and before booting starts?
Some other time.

The make install command that you ran will have put files into /boot but they will not be named in the way that your grub.conf expects.
Code:
title Gentoo Linux 3.6.11
root (hd0,0)
kernel /boot/3.6.11-gentoo root=/dev/ram0 real_root=/dev/sda3

will fail regardless, as you have not loaded an initrd to be /dev/ram0
Code:
kernel /boot/3.6.11-gentoo root=/dev/sda3
will load a kernel called /boot/3.6.11-gentoo but thats not what make install will provide.

Further, to boot without an initrd, you must have made the required kernel code as <*> built in, not as modules, as modules cannot be loaded until root is mounted.
_________________
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
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Sat Feb 16, 2013 8:28 pm    Post subject: Reply with quote

I get the fıle not found error after I choose a menu item and before booting starts.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 16, 2013 9:31 pm    Post subject: Reply with quote

certem,

Thats grub looking for your kernel file and optionally your initrd file.

Code:
root (hd0,0)
kernel /boot/3.6.11-gentoo
tells grub to look on the first partition on the first HDD discovered by the BIOS for a file called /boot/3.6.11-gentoo
That file must be missing. It may be there by another name but grub is only looking for a file with that exact name.

Boot with the CD, mount your filesystems but do not chroot.
post the output of
Code:
 ls -l /mnt/gentoo/boot 


If you have updated grub.conf, please post your grub.conf as it is now. Thats at /mnt/gentoo/boot/grub/grub.conf
_________________
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
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Sat Feb 16, 2013 9:50 pm    Post subject: Reply with quote

certem,

If you did make install as per my prior reply, the kernel will start with vmlinuz-

As in my case it's vmlinuz-3.8.0-rc7 - yours might be vmlinuz-3.6.11.

If you used genkernel then the name will be something like kernel-genkernel-x86-3.6.11.

Make sure your is /boot mounted if you have a separate /boot partition and match-up the name in grub.conf

If you have a initrd then you'll have to include that in grub.conf too as NeddySeagoon already explained :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Sat Feb 16, 2013 10:05 pm    Post subject: Reply with quote

Friends

I made gpm
I select the text on the console and then go to the windows 7 notepad but paste is not enabled. I click the scroll wheel nothing happens again. This has to be something simple but I'm missing something.

As I tried and tried more I got things a bit more mess. I made a few "make install"s and I also did emerge genkernel and genkernel all.

At the moment I'm emerging xterm hoping that it'll provide copying text from vm gentoo terminal to windows 7 notepad (So I can post it to the forum).

Please tell me whether xterm will help me copy / paste. If it doesn't I'll stop that process and try to post the /mnt/gentoo/boot and grub.conf
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 16, 2013 10:09 pm    Post subject: Reply with quote

certem,

I think the copy/paste problem is Vbox setting, so xterm probably won't help.
Use wgetpaste to put things on the web instead. If you want to, you can download them into windows to post. here, or just tell the URL.
_________________
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
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Sat Feb 16, 2013 10:36 pm    Post subject: Reply with quote

the " ls -l /mnt/gentoo/boot " http://bpaste.net/show/77760/

Code:
total 23425
-rw-r--r-- 1 root root 2559777 Feb 16 06:41 System.map-3.6.11-gentoo
-rw-r--r-- 1 root root 2559777 Feb 16 06:25 System.map-3.6.11-gentoo.old
-rw-r--r-- 1 root root 1921511 Feb 16 08:44 System.map-genkernel-x86_64-3.6.11-gentoo
lrwxrwxrwx 1 root root       1 Feb 14 01:29 boot -> .
-rw-r--r-- 1 root root   84621 Feb 16 06:41 config-3.6.11-gentoo
-rw-r--r-- 1 root root   84621 Feb 16 06:25 config-3.6.11-gentoo.old
drwxr-xr-x 2 root root    1024 Feb 16 05:42 grub
-rw-r--r-- 1 root root 3302376 Feb 16 09:14 initramfs-genkernel-x86_64-3.6.11-gentoo
-rw-r--r-- 1 root root 3336512 Feb 16 08:44 kernel-genkernel-x86_64-3.6.11-gentoo
drwx------ 2 root root   12288 Feb 13 22:31 lost+found
-rw-r--r-- 1 root root 5008352 Feb 16 06:41 vmlinuz-3.6.11-gentoo
-rw-r--r-- 1 root root 5008352 Feb 16 06:25 vmlinuz-3.6.11-gentoo.old


the grub.conf http://bpaste.net/show/77758/
Code:

# 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=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.6.11
root (hd0,0)
kernel /boot/kernel-3.6.11-gentoo root=/dev/sda3 rootfstype=ext3

title Gentoo Linux 3.6.11 (Rescue)
root (hd0,0)
kernel /boot/kernel-3.6.11-gentoo root=/dev/sda3 init=/bin/bb
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5

# vim:ft=conf:
# emerge --info
/usr/bin/wgetpaste: line 780: emerge: command not found
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 16, 2013 10:57 pm    Post subject: Reply with quote

certem,

Now we are getting somewhere.

The two important lines in /boot are
Code:
-rw-r--r-- 1 root root 3302376 Feb 16 09:14 initramfs-genkernel-x86_64-3.6.11-gentoo
-rw-r--r-- 1 root root 3336512 Feb 16 08:44 kernel-genkernel-x86_64-3.6.11-gentoo

We will ignore
Code:
 -rw-r--r-- 1 root root 5008352 Feb 16 06:41 vmlinuz-3.6.11-gentoo
but it may be useful later.

Your grub.conf says
Code:
title Gentoo Linux 3.6.11
root (hd0,0)
kernel /boot/kernel-3.6.11-gentoo root=/dev/sda3 rootfstype=ext3

so the kernel names don't match
Code:
title Gentoo Linux 3.6.11
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.6.11-gentoo root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-3.6.11-gentoo
will be a much better boot stanza - you will need an initrd.
_________________
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
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Sun Feb 17, 2013 12:05 am    Post subject: Reply with quote

there's a kernel panic:

I took a screen shot
http://tinypic.com/r/9jjbdz/6

the fstab is:

Code:


# /etc/fstab: static file system information.
#
# 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 / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

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

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.

/dev/sda1      /boot      ext3      defaults,noatime     0 2
/dev/sda2      none      swap      sw              0 0
/dev/sda3      /      ext3      noatime      0 1
/dev/cdrom      /mnt/cdrom   auto      noauto,user   0 0
#/dev/fd0      /mnt/floppy   auto      noauto      0 0
# emerge --info
/usr/bin/wgetpaste: line 780: emerge: command not found




edit: I added the fstab
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 17, 2013 12:21 am    Post subject: Reply with quote

certem,

Thats progress :) it loaded the kernel.

The panic says that there is no filesystem on /dev/ram0, which is where the initrd should be.
The initrd loaded, or you would still have the file not found error.

The handbook shows the the root=/dev/ram0 is no longer required.

Boot to the grub menu select your kernel to boot and press e.
Follow the on screen editiong instructions and remove the
Code:
root=/dev/ram0
then allow the boot to continue.

If the system boots, fix grub.conf properly. The above only changes in the in memory grub.conf
_________________
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
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Sun Feb 17, 2013 9:56 am    Post subject: Reply with quote

I booted from cd
made
Code:
 mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot


I removed
Code:
root=/dev/ram0

and the line remained as
Code:
 kernel /boot/3.6.11-gentoo real_root=/dev/sda3

it didn't work and I changed the line to
Code:
kernel /boot/3.6.11-gentoo root=/dev/sda3

it stil didn't work and the output is: http://tinypic.com/r/2d1o1w1/6


The fstab and grub.conf were as follows (I tried with several combinations of the fstab and also with the (hd0, 0) parameter) and I restored them back to the following:
The fstab is:
Code:
# /etc/fstab: static file system information.
#
# 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 / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

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

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1      /boot      ext3      defaults,noatime   0 2
/dev/sda2      none      swap      sw      0 0
/dev/sda3      /      ext3      noatime      0 1
/dev/cdrom      /mnt/cdrom   auto      noauto,user   0 0
#/dev/fd0      /mnt/floppy   auto      noauto      0 0


The grub.conf
Code:
# 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=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.6.11
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.6.11-gentoo root=/dev/sda3

title Gentoo Linux 3.6.11 (Rescue)
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.6.11-gentoo root=/dev/sda3 init=/bin/bb
initrd /boot/initramfs-genkernel-x86_64-3.6.11-gentoo

# vim:ft=conf:
# emerge --info
/usr/bin/wgetpaste: line 780: emerge: command not found
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Feb 17, 2013 1:08 pm    Post subject: Reply with quote

certem,

The
Code:
unknown-block(0,0)
part tells that your kernel cannot communicate with your hard drive.
grub.conf is good because grub loads the kernel. The kernel starts but cannot reach your hard drive, so /etc/fstab cannot be read.

As you used genkernel, you must load an initramfs file.
Code:
title Gentoo Linux 3.6.11
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.6.11-gentoo root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-3.6.11-gentoo

The initrd contains the modules the kernel needs to reach your hard drive.

Your rescue option may boot but you won't like it as the system will not be started properly.
Notice that it has the initrd line.
_________________
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
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Sun Feb 17, 2013 8:49 pm    Post subject: Reply with quote

Rescue mode also didn't work.

I made a fresh install. I'm at the door. :)

Because: I can't login

I'll start a new thread for that.

Thank you very much NeddySeagoon for your help and patience.

Others who posted thank you all too.



Edit: Forgot to say thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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