View previous topic :: View next topic |
Author |
Message |
aia n00b
Joined: 16 Sep 2012 Posts: 18
|
Posted: Wed Jan 09, 2013 12:26 pm Post subject: [SOLVED]The first reboot after from the main installation |
|
|
Hello everybody,
Just finished with the Gentoo Minimal Installation "install-x86-minimal-<20121213>.iso"
I installed it in Virtual Box version 4.2.4.
During the installation i didn't find in my way an 'error' or something like that. Until now all are finished successful.
I did the first reboot and when it completed appeared:
Code: |
GNU GRUB version 0.97 (639K lower / 1047488K upper memory)
[ Minimal Bash-like line editing is supported. For the first word, TAB lists possible command completion. Anywhere else TAB lists the possible completion of a device/filename. ]
grub>
|
when i pressed tab appeared the below message:
Code: |
Possible commands are : background blocklist boot cat chainloader clear cmp color configfile debug displayapm displaymen embed find foreground fstest geometry halt help hide impsprobe initrd install ioprobe kernel lock makeactive map md5crypt module modulenouzip pager partnew parttype password pause read reboot root rootnoverify savedefault serial setkey setup splashimage terminal terminfo testload testvbe unhide uppermen vbeprobe
grub>
|
I tried to search my problem in forum but i didn't find something for my case.
I don't understand what i did wrong and how to continue.
Propably something wrong with my grub and the last step before the first reboot.
I appreciate any of idea.
Thanks!
Last edited by aia on Wed Jan 09, 2013 8:00 pm; edited 2 times in total |
|
Back to top |
|
|
Veldrin Veteran
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Wed Jan 09, 2013 1:24 pm Post subject: |
|
|
grub seems to be installed correctly, but not configured.
boot again from the live cd, and mount all drives and chroot. (see below for a shortened version, assuming the default setup)
Code: | mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -o bind /dev /mnt/gentoo/dev
mount -t proc proc /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile |
Then redo the grub config as described here
if you are unsure about how to configure grub, provide the output of ls -l /boot/, and the disk/partition layout.
V. _________________ read the portage output!
If my answer is too concise, ask for an explanation. |
|
Back to top |
|
|
aia n00b
Joined: 16 Sep 2012 Posts: 18
|
Posted: Wed Jan 09, 2013 5:19 pm Post subject: |
|
|
Veldrin thanks for the help but i don't understand what's wrong i do in this case.
I checked again the documentation about the grub but as i said i don't understand where is the wrong in this config.
I quote the output from the command ls -l /boot and fdisk -l
Code: |
total 8675
-rw-r--r-- 1 root root 1631805 Jan 6 23:27 System.map-genkernel-x86-3.5.7-gentoo
lrwxrwxrwx 1 root root 1 Jan 7 03:25 boot -> .
drwxr-xr-x 2 root root 1024 Jan 7 03:45 grub
-rw-r--r-- 1 root root 4128798 Jan 6 23:55 initramfs-genkernel-x86-3.5.7-gentoo
-rw-r--r-- 1 root root 3068144 Jan 6 23:27 kernel-genkernel-x86-3.5.7-gentoo
drwx------ 2 root root 12288 Jan 5 21:30 lost+found
|
Code: |
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x813ed369
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 67583 32768 83 Linux
/dev/sda2 67584 4261887 2097152 82 Linux swap / Solaris
/dev/sda3 4261888 125829119 60783616 83 Linux
|
Can you see something that I do not see? |
|
Back to top |
|
|
aia n00b
Joined: 16 Sep 2012 Posts: 18
|
Posted: Wed Jan 09, 2013 6:16 pm Post subject: |
|
|
Also i tried to setting up GRUB using manual instructions based on documentation.
grub> root (hd0,0) (Specify where your /boot partition resides)
output 1:
Code: |
Filesystem type is ext2fs, partition type 0X83
|
grub> setup (hd0) (Install GRUB in the MBR)
output 2:
Code: |
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0)1+17 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.list"... succeeded
Done
|
grub> quit (Exit the GRUB shell)
output 3:
Code: |
Error 27: Unrecognized command
|
Why don't recognized 'quit' command? I suppose because as i said above when i press 'tab' it appears the above commands it does not included this command 'quit'.
However when i type 'reboot' i see again the grub terminal
grub>
with the same message as i wrote in the first post.
Does anyone know something about in my case?
Thanks! |
|
Back to top |
|
|
Veldrin Veteran
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Wed Jan 09, 2013 6:55 pm Post subject: |
|
|
while in the chroot, please post the content of /boot/grub/menu.lst.
configured correctly, it should look something like this:
Code: | default 0
timeout 30
title Gentoo Linux 3.3.8
root (hd0,0)
kernel /boot/kernel-genkernel-x86-3.5.7-gentoo real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-3.5.7-gentoo |
I has been a while since I used grub1 (legacy grub), but the command quit should would. otherwise use ctrl+C to exit.
V. _________________ read the portage output!
If my answer is too concise, ask for an explanation. |
|
Back to top |
|
|
aia n00b
Joined: 16 Sep 2012 Posts: 18
|
Posted: Wed Jan 09, 2013 7:32 pm Post subject: |
|
|
I quote the file /boot/grub/menu.lst. I don't see any difference between the files which you quoted and mine.
Check it if you can please, maybe something it escapes from my eyes.
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.5.7
root (hd0,0)
kernel /boot/kernel-genkernel-x86-3.5.7-gentoo real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86-3.5.7-gentoo
#title Gentoo Linux 2.6.24-r5
#kernel /boot/kernel-genkernel-x86-2.6.24-gentoo-r5 root=/dev/ram0 real_root=/dev/sda3
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5
# vim:ft=conf:
|
|
|
Back to top |
|
|
Veldrin Veteran
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Wed Jan 09, 2013 7:48 pm Post subject: |
|
|
you commented out the title part - which denotes the start of an entry.
just remove the # - and it should work. _________________ read the portage output!
If my answer is too concise, ask for an explanation. |
|
Back to top |
|
|
aia n00b
Joined: 16 Sep 2012 Posts: 18
|
Posted: Wed Jan 09, 2013 7:59 pm Post subject: |
|
|
Yes this '#' was the problem. I thought that it was just a title and it was not necessary to be uncomment.
But now is ok.
Veldrin thanks for your time and the help! |
|
Back to top |
|
|
|