View previous topic :: View next topic |
Author |
Message |
Zerog n00b
Joined: 22 May 2004 Posts: 29
|
Posted: Wed Dec 10, 2008 11:43 pm Post subject: problem booting for the first time |
|
|
Hi everybody
I've installed Gentoo 2008.0 with minimal CD on my laptop pavillon dv5-1007el, my hard disk is[/url] SATA.
I point out immediately that I couldn't modify too much my partitions table so I installed both root and /boot in the same extended partition (/dev/sda8 in my case) with ext3 filesystem and for the swap I'm using the same partition that I'm using with ubuntu
when I made the first reboot I got this error:
Code: | could not find root block device in |
my fstab is:
Code: |
/dev/sda8 /boot ext3 defaults,noatime 1 2
/dev/sda6 none swap sw 0 0
/dev/sda8 / ext3 noatime 0 1
/dev/cdrom /mnt/cdrom auto noauto,user 0 0
|
can somebody tell me what did I do wrong?
thanks a lot I'm quite new on this distro |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Thu Dec 11, 2008 12:29 am Post subject: |
|
|
Installing Gentoo without a separate /boot partition is perfectly fine (even preferred IMO).
However, double mounting /dev/sda8 as both / and /boot will completely screw things up.
You may be able to recover by simply deleting the line in /etc/fstab that refers to /boot.
After that, a few files may need to be moved (the ones that belong in /boot may be one level up, in /). |
|
Back to top |
|
|
Zerog n00b
Joined: 22 May 2004 Posts: 29
|
Posted: Thu Dec 11, 2008 11:46 pm Post subject: |
|
|
I have deleted the line but I still get the same error...
can be that is due to the fact that my partition is extended? anyway I have ubuntu on an extended partition and can boot without any problems...
however if I leave the /boot line in fstab I get all my gentoo partition inside the /boot folder of ubuntu...
any other suggestion?
formatting everything and make 2 primary partitions one for ubuntu and one for gentoo can solve the problem? |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Dec 12, 2008 3:58 pm Post subject: |
|
|
Hi can you post this after that you have chrooted your box :
Code: |
# fdisk -l
# cat /etc/fstab
# cat /boot/grub/grub.conf
|
|
|
Back to top |
|
|
Zerog n00b
Joined: 22 May 2004 Posts: 29
|
Posted: Fri Dec 12, 2008 6:09 pm Post subject: |
|
|
mhm I'm quite ignorant... I feel really ashamed... I have installed the command chroot on my ubuntu but I don't know how to use it
sorry, help! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54302 Location: 56N 3W
|
Posted: Fri Dec 12, 2008 6:50 pm Post subject: |
|
|
Zerog,
Please post the output of from within your gentoo and your grub.conf.
You may only have one grub.conf because its pointed to by the part of grub installed on the MBR and you only have one of those.
Also post your annotated with what each partition is used for.
You may use your Ubuntu to get all of the above information on your gentoo install.
Ignorance is the lack of knowledge, thats nothing to be ashamed of. Every one of us had to learn what you are just starting out to learn now.
Stay around, you will learn, its the way that the community works. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Fri Dec 12, 2008 10:37 pm Post subject: |
|
|
What boot loader are you using to boot ubuntu?
you do not need to chroot if booted in ubuntu.
will just work.
Code: | mkdir /gentoo
mount /dev/sda8 /gentoo
cat /gentoo/boot/grub/grub.conf
cat /gentoo/etc/fstab |
will gather the info
Code: | umount /gentoo
rm /gentoo |
later on will clean up the ubuntu. |
|
Back to top |
|
|
Zerog n00b
Joined: 22 May 2004 Posts: 29
|
Posted: Sat Dec 13, 2008 8:02 pm Post subject: |
|
|
ok exaclty yesterday windows did a mass with my ntfs partition so I took the occasion and I formatted everything, I reinstalled only ubuntu and then gentoo, both on primary partitions this time...
the swap partition is common to both the systems but I still get the same message when I boot gentoo. Here is my fstab from gentoo:
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 1 2
/dev/sda3 / ext3 noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,user 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
I don't have any grub.conf file but I have a menu.lst in the /boot/grub folder of ubuntu:
Code: |
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 30
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=6e18d6b2-fcc1-4117-8732-46f150c98a60 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=6e18d6b2-fcc1-4117-8732-46f150c98a60
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu Linux 8.10, kernel 2.6.27-9-generic
uuid 6e18d6b2-fcc1-4117-8732-46f150c98a60
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=6e18d6b2-fcc1-4117-8732-46f150c98a60 ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet
title Ubuntu Linux 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid 6e18d6b2-fcc1-4117-8732-46f150c98a60
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=6e18d6b2-fcc1-4117-8732-46f150c98a60 ro single
initrd /boot/initrd.img-2.6.27-9-generic
#title Ubuntu 8.10, kernel 2.6.27-7-generic
#uuid 6e18d6b2-fcc1-4117-8732-46f150c98a60
#kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=6e18d6b2-#fcc1-4117-8732-46f150c98a60 ro quiet splash
#initrd /boot/initrd.img-2.6.27-7-generic
#quiet
#title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
#uuid 6e18d6b2-fcc1-4117-8732-46f150c98a60
#kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=6e18d6b2-#fcc1-4117-8732-46f150c98a60 ro single
#initrd /boot/initrd.img-2.6.27-7-generic
#title Ubuntu 8.10, memtest86+
#uuid 6e18d6b2-fcc1-4117-8732-46f150c98a60
#kernel /boot/memtest86+.bin
#quiet
title Gentoo Linux 2.6.26-r4
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.26-gentoo-r4
initrd /boot/initramfs-genkernel-x86_64-2.6.26-gentoo-r4
### END DEBIAN AUTOMAGIC KERNELS LIST
|
When I installed gentoo I didn't install any bootloader since I already had grub in ubuntu, I simply added the last entry to the file I already had in ubunutu.
hope this is enough for get a good help from you
thanks a lot! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54302 Location: 56N 3W
|
Posted: Sat Dec 13, 2008 8:40 pm Post subject: |
|
|
Zerog,
So far so good, but where is your gentoo kernel?
Code: | title Gentoo Linux 2.6.26-r4
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.26-gentoo-r4
initrd /boot/initramfs-genkernel-x86_64-2.6.26-gentoo-r4 |
The root (hd0,0) statement says its in the first partition of your first detected hard drive
As you (correctly) did not install gentoos boot loader, you may also be missing the symlink in gentoos /boot directory. This is required so that (hd0,0)/boot/kernel... exists when your kernel is really at (hd0,0)/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 |
|
|
Zerog n00b
Joined: 22 May 2004 Posts: 29
|
Posted: Sat Dec 13, 2008 8:51 pm Post subject: |
|
|
both kernel and initramfs are on the first partition of the first hard disk /dev/sda1
I don't know what you mean with symlink, how can I make it?
thanks a lot |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat Dec 13, 2008 9:01 pm Post subject: |
|
|
reboot, then at the boot menu, enter c to drop into a grub command line
Code: | c
find /boot/kernel-genkernel-x86_64-2.6.26-gentoo-r4
|
what is returned? |
|
Back to top |
|
|
Zerog n00b
Joined: 22 May 2004 Posts: 29
|
Posted: Sat Dec 13, 2008 9:21 pm Post subject: |
|
|
just got
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat Dec 13, 2008 9:21 pm Post subject: |
|
|
I despise and avoid genkernel; but I note:
The handbook example is: Quote: | title Gentoo Linux 2.6.24-r5
root (hd0,0)
kernel /boot/kernel-genkernel-amd64-2.6.24-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-amd64-2.6.24-gentoo-r5 |
Yours is: Quote: | title Gentoo Linux 2.6.26-r4
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-2.6.26-gentoo-r4
initrd /boot/initramfs-genkernel-x86_64-2.6.26-gentoo-r4
|
May I suggest yours should be: Quote: | title Gentoo Linux 2.6.26-r4
root (hd0,0)
kernel (hd0,0)/boot/kernel-genkernel-x86_64-2.6.26-gentoo-r4 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd (hd0,0)/boot/initramfs-genkernel-x86_64-2.6.26-gentoo-r4
|
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat Dec 13, 2008 10:11 pm Post subject: |
|
|
oops just notced real root got dropped off the kernel line on my small screen machine. It belongs on kernel line. |
|
Back to top |
|
|
Zerog n00b
Joined: 22 May 2004 Posts: 29
|
Posted: Sun Dec 14, 2008 4:38 am Post subject: |
|
|
thank you very much DONAHUE now it works!!!!!
I don't understand how I could have missed that part of the line! I even was coping the example from the handbook when I was installing!
by the way I got a last general question: the partition in which I install gentoo must be in any case primary? reading the handbook seems so but my ubuntu for example works also on a extended partition
thanks a lot again! |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Dec 14, 2008 2:31 pm Post subject: |
|
|
Gentoo works just as well on an extended partition.
Converting the sample code and instructions, written for a single disk with three partitions, to many disks many partitions is trickier than it seems. |
|
Back to top |
|
|
Zerog n00b
Joined: 22 May 2004 Posts: 29
|
Posted: Sun Dec 14, 2008 3:40 pm Post subject: |
|
|
so is there any advantage in installing the operative system on a primary partition?
if I'm not wrong for windows or freeBSD you're forced to use a a primary partition... |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Dec 15, 2008 12:39 am Post subject: |
|
|
I don't think so. As for windows, I suspect an attempt to hinder competition as well as it was the easy way when there was only one hard drive per computer because of price. |
|
Back to top |
|
|
|