View previous topic :: View next topic |
Author |
Message |
roelof Guru
Joined: 05 Feb 2009 Posts: 488
|
Posted: Thu Sep 10, 2009 5:16 pm Post subject: [solved] time to sya goodbye |
|
|
Hello,
Im now for a week to make gentoo boot on my system.
Grub fails and also lilo.
They both can't find the ramdisk which is on the thirt disk op my system.
Because I can't make it run for me it's time to say good-bye.
Roelof
Last edited by roelof on Tue Sep 22, 2009 11:36 am; edited 1 time in total |
|
Back to top |
|
|
Raniz l33t
Joined: 13 Sep 2003 Posts: 967 Location: Varberg, Sweden
|
Posted: Thu Sep 10, 2009 5:37 pm Post subject: |
|
|
Well, not everyone endures the first few weeks of struggling with Gentoo - but once you learn it it's a hell of a ride |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Thu Sep 10, 2009 5:51 pm Post subject: |
|
|
Moved from Other Things Gentoo to Gentoo Chat. Not a support request.
You noted in one of your other posts that Ubuntu did not exhibit the GRUB problem that thwarted your attempts to install Gentoo. Was that on a LiveCD boot or did you succeed in installing Ubuntu to your hard drive?
If you haven't yet, I'd suggest installing Ubuntu--including GRUB--and making a copy of the working GRUB configuration it creates. Then start over with Gentoo and use Ubuntu's GRUB config. (If you do and need help, please continue one of your other GRUB threads.) _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
roelof Guru
Joined: 05 Feb 2009 Posts: 488
|
Posted: Thu Sep 10, 2009 6:46 pm Post subject: |
|
|
Hello,
I see a few different things.
Ubuntu sees all the disk as sata disk.
first disk sda where Gentoo sees it as hda
second disk sdb where gebtoo sees it as hdc.
thirth disk sdc where gentoo sees it as sda.
And Ubuntu has kernel 2.6.28 where Gentoo has 2.6.30.
So I can't copy things over from Ubuntu to Gentoo.
And I don't know if the genkernel has ide - scsi emulation.
Roelof |
|
Back to top |
|
|
Tolstoi l33t
Joined: 20 May 2004 Posts: 678
|
Posted: Thu Sep 10, 2009 7:09 pm Post subject: |
|
|
If you type fdisk -L you should become a list of partitions as they are recognized from Gentoo in your case probably the install disk.
Check where your boot partition is if you have an extra one.
Check your /boot/grub/grub.conf again.
Check error messages during boot and post them to get some help. |
|
Back to top |
|
|
roelof Guru
Joined: 05 Feb 2009 Posts: 488
|
Posted: Thu Sep 10, 2009 7:17 pm Post subject: |
|
|
Hello,
I have done that.
Errors during boot I get is :
Unable to mount rootfs on unknown block (0,1)
If i do fdisk -L i see this :
hda My Windows drive.
hdc my gentoo drive.
sda my usb disk.
My boot partition is on hdc according to fdisk but when I do grub > root (hd2,0) I get a message that the partition type is 0x7.
Can it make any diiferent if i use a logger so i can make a boot log so i can see more error messages ?
Roelof |
|
Back to top |
|
|
tbaac n00b
Joined: 02 Mar 2008 Posts: 24 Location: UK
|
Posted: Fri Sep 11, 2009 10:54 am Post subject: |
|
|
roelof wrote: | Hello,
I see a few different things.
Ubuntu sees all the disk as sata disk.
first disk sda where Gentoo sees it as hda
second disk sdb where gebtoo sees it as hdc.
thirth disk sdc where gentoo sees it as sda.
And Ubuntu has kernel 2.6.28 where Gentoo has 2.6.30.
So I can't copy things over from Ubuntu to Gentoo.
And I don't know if the genkernel has ide - scsi emulation.
Roelof |
That's the kernel configuration. Can someone help me with the parameter? Whether disks are seen at sata (sdx) or ide (hdx) depends on your configuration. sdx is more usual I think. Its a fairly simple change but I can't check right now sorry. |
|
Back to top |
|
|
monsm Guru
Joined: 26 Sep 2007 Posts: 467 Location: London, UK
|
Posted: Fri Sep 11, 2009 11:34 am Post subject: |
|
|
Are you sure you need a ramdisk/initramfs to boot? You use that to get a boot splash and if you are using things like RAID. With a normal setup of independent harddrives you might not need it as long as the file systems you need is compiled into the kernel and is not done as modules.
This would simplify things for you. One a machine I was installing on, I found that the hard drives became sdx drives when using initramfs and was hdx drives if not.
So try to see if you can avoid using initramfs first at least.
Mons |
|
Back to top |
|
|
jomen Guru
Joined: 04 Jan 2006 Posts: 536 Location: Leipzig, Germany
|
Posted: Fri Sep 11, 2009 11:59 am Post subject: |
|
|
It is only a matter of choosing the (right) items during configuration.
Quote: | And I don't know if the genkernel has ide - scsi emulation. |
genkernel (itself) does not have it - even with genkernel: it is you who does the configuration.
I tried it once a few years ago and had the impression that using it made a relatively simple task more complex and error-prone than neccesary.
My advice would be: don't use it. Use the standard "make menuconfig" "make modules_install" "make install" procedure.
No need for a ramdisk / initrd - if you have no special reason to want one.
Make life more easy on you, take the installation handbook again and try the "non genkernel" approach. _________________ Cheers |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Sep 11, 2009 12:01 pm Post subject: |
|
|
Raniz wrote: | Well, not everyone endures the first few weeks of struggling with Gentoo - but once you learn it it's a hell of a ride |
Yeah, in fact, Gentoo is something when you install it for the first time. |
|
Back to top |
|
|
tbaac n00b
Joined: 02 Mar 2008 Posts: 24 Location: UK
|
Posted: Fri Sep 11, 2009 12:06 pm Post subject: |
|
|
jomen wrote: | It is only a matter of choosing the (right) items during configuration.
Quote: | And I don't know if the genkernel has ide - scsi emulation. |
genkernel (itself) does not have it - even with genkernel: it is you who does the configuration.
I tried it once a few years ago and had the impression that using it made a relatively simple task more complex and error-prone than neccesary.
My advice would be: don't use it. Use the standard "make menuconfig" "make modules_install" "make install" procedure.
No need for a ramdisk / initrd - if you have no special reason to want one.
Make life more easy on you, take the installation handbook again and try the "non genkernel" approach. |
One thing they don't always mention is if you do "make defconfig" prior to "make menuconfig" then you'll get an approximation of a working kernel that you just need to tweak for special cases. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Sep 11, 2009 12:07 pm Post subject: |
|
|
Or you can even use a Pappy_seeds |
|
Back to top |
|
|
roelof Guru
Joined: 05 Feb 2009 Posts: 488
|
Posted: Fri Sep 11, 2009 1:24 pm Post subject: |
|
|
Hello,
I used the ramdisk because the handbook says to use a ramdisk when using genkernel.
I have wrote down the error message taht I get when booting.
(1,0) : ocfs2-fill-super:993: Error: Superblock probe failed
VFS : Cannot open root device "100" or unknown block (1,0)
Please append a correct "root=" boot option: Here are the avaible partitions.
0300 hda-driver : ide-gd
0301 hda1
1600 hdc-driver : ide-gid
1601 hdc1
1602 hdc2
1603 hdc3
0340 hdb-driver : ide-cdrom
Kernel -panic - not syncing : VFS : Unable to mount root fs on unknown block (1,0)
pid 1: comm: swapper not tained 2.6.30-gentoo-r4
My lilo.conf looks like this :
boot=/dev/hdc
prompt
timeout =5
image = /boot/kernel-genkernel-x86_64-2.6.30-gentoo-r4
label=linux
root=/dev/ram0
append="init=/initrc ramdisk=8192 real_root=/dev/hdc3
initrd=/boot/initramfs-genkernel-x86_64-2.6.30-gentoo-r4
I hope you can help me ?
Roelof |
|
Back to top |
|
|
jomen Guru
Joined: 04 Jan 2006 Posts: 536 Location: Leipzig, Germany
|
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Fri Sep 11, 2009 1:54 pm Post subject: |
|
|
Quote: | (1,0) : ocfs2-fill-super:993: Error: Superblock probe failed
VFS : Cannot open root device "100" or unknown block (1,0)
Please append a correct "root=" boot option: Here are the avaible partitions. |
something's really wrong here:
either you formatted your root partition with the wrong filesystem or your kernel simply lacks support for the correct filesystems
just modify your kernel .config according to the following:
Quote: | CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
# CONFIG_EXT2_FS_XIP is not set
CONFIG_EXT3_FS=y
CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_EXT4_FS=y
CONFIG_EXT4DEV_COMPAT=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
CONFIG_JBD=y
CONFIG_JBD_DEBUG=y
CONFIG_JBD2=y
CONFIG_JBD2_DEBUG=y
CONFIG_FS_MBCACHE=y
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
CONFIG_REISERFS_PROC_INFO=y
CONFIG_REISERFS_FS_XATTR=y
CONFIG_REISERFS_FS_POSIX_ACL=y
CONFIG_REISERFS_FS_SECURITY=y
CONFIG_JFS_FS=y
CONFIG_JFS_POSIX_ACL=y
CONFIG_JFS_SECURITY=y
# CONFIG_JFS_DEBUG is not set
CONFIG_JFS_STATISTICS=y
CONFIG_FS_POSIX_ACL=y
CONFIG_XFS_FS=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
# CONFIG_XFS_DEBUG is not set
# CONFIG_GFS2_FS is not set
# CONFIG_OCFS2_FS is not set
CONFIG_BTRFS_FS=m
# CONFIG_BTRFS_FS_POSIX_ACL is not set |
I hope you're not having btrfs
that'll way it should boot in most cases (related to filesystems),
the only obstacle then should be the configuration for your ide / (S-)ATA controllers and correct passing of your root-partition
_________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Fri Sep 11, 2009 1:57 pm Post subject: |
|
|
roelof wrote: | Hello,
I used the ramdisk because the handbook says to use a ramdisk when using genkernel.
I have wrote down the error message taht I get when booting.
(1,0) : ocfs2-fill-super:993: Error: Superblock probe failed
VFS : Cannot open root device "100" or unknown block (1,0)
Please append a correct "root=" boot option: Here are the avaible partitions.
0300 hda-driver : ide-gd
0301 hda1
1600 hdc-driver : ide-gid
1601 hdc1
1602 hdc2
1603 hdc3
0340 hdb-driver : ide-cdrom
Kernel -panic - not syncing : VFS : Unable to mount root fs on unknown block (1,0)
pid 1: comm: swapper not tained 2.6.30-gentoo-r4
My lilo.conf looks like this :
boot=/dev/hdc
prompt
timeout =5
image = /boot/kernel-genkernel-x86_64-2.6.30-gentoo-r4
label=linux
root=/dev/ram0
append="init=/initrc ramdisk=8192 real_root=/dev/hdc3
initrd=/boot/initramfs-genkernel-x86_64-2.6.30-gentoo-r4
I hope you can help me ?
Roelof |
way too difficult at the begining
ideally a line in grub.conf / menu.lst should look like
Quote: | # Boot Gentoo Linux (no splash)
title Gentoo-vmlinuz-2.6.30-zen1_new [lexa]
root (hd0,0)
kernel (hd0,0)/vmlinuz-2.6.30-zen1_new root=/dev/sda6 ro elevator=deadline |
leading to:
Quote: | image = /boot/vmlinuz-2.6.30-zen1_new
label=linux
root=/dev/sda6 |
in lilo which is much more clearer and better understandable,
somebody which knows about lilo better post some more information on that (I've been using grub until now) _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Fri Sep 11, 2009 2:04 pm Post subject: |
|
|
roelof wrote: | Hello,
I see a few different things.
Ubuntu sees all the disk as sata disk.
first disk sda where Gentoo sees it as hda
second disk sdb where gebtoo sees it as hdc.
thirth disk sdc where gentoo sees it as sda.
And Ubuntu has kernel 2.6.28 where Gentoo has 2.6.30.
So I can't copy things over from Ubuntu to Gentoo.
And I don't know if the genkernel has ide - scsi emulation.
Roelof |
that problem is because you (?) didn't configure it correctly
it's a little difficult from the start but you'll soon see that soon everything will work out well
make sure you don't have:
Device Drivers -> ATA/ATAPI/MFM/RLL support
enabled in the kernel and
have
Device Drivers -> Serial ATA (prod) and Pallel ATA (experimental)
selected, just make all of those compiled in the kernel (press <space> twice) leading to: <M> -> <*>
then everything should be named according to /dev/sd*
the following wiki entry might be helpful:
http://www.thinkwiki.org/wiki/How_to_configure_and_use_libata_SATA_/_PATA_drivers
you can check if you did it the right way by opening nano:
nano -w /usr/src/linux/.config
then search via CTRL + W
enter
it should jump to a line like:
Quote: | CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set <-- |
<== this ensures that the old ide-drivers are not interferring with the new "libata" drivers
nano -w /usr/src/linux/.config
search via CTRL + W
for
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_ACPI=y
CONFIG_SATA_PMP=y
CONFIG_SATA_AHCI=y
CONFIG_SATA_SIL24=y
CONFIG_ATA_SFF=y
...
after that all / most of the following CONFIG_SATA_ and CONFIG_PATA_ drivers should have =y to make sure they're compiled into the kernel and don't need an initramfs _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
roelof Guru
Joined: 05 Feb 2009 Posts: 488
|
Posted: Fri Sep 11, 2009 2:22 pm Post subject: |
|
|
Oke,
I have to make the kernel again and install grub instead of lilo.
Can I uninstall lilo so i don't interfeer with grub.
And how do I take care that the genkernel part will not interfeer with the new kernel.
And how do i know which sd drive will be the old hdc drive ?
Roelof |
|
Back to top |
|
|
jomen Guru
Joined: 04 Jan 2006 Posts: 536 Location: Leipzig, Germany
|
Posted: Fri Sep 11, 2009 2:44 pm Post subject: |
|
|
Quote: | Can I uninstall lilo so i don't interfeer with grub. |
You don't need to - when you install grub to the MBR (or to the place lilo was before) - lilo is gone.
You can still have the program itself.
Quote: | And how do I take care that the genkernel part will not interfeer with the new kernel. |
...it will not. You don't have a initrd anymore when you do:
"make menuconfig" "make modules_install" "make install"
- and grub.conf is one line less complicated... _________________ Cheers |
|
Back to top |
|
|
roelof Guru
Joined: 05 Feb 2009 Posts: 488
|
Posted: Fri Sep 11, 2009 5:50 pm Post subject: |
|
|
oke,
I changed what you ask me to do.
My grub.conf looks like this.
default 0
timeout 5
Title Gentoo
Kernel /boot/kernel-2.6.30-r4
root (hd2,3)
But when i do
Grub-install --no-floppy /dev/hdc
I get the message : Could not find device for /boot Not found or not a block device.
When I do :
grub-install --no-floppy /dev/sdc
I get the message : Not found or not a block device.
What now ?
Roelof |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Sep 11, 2009 6:04 pm Post subject: |
|
|
Post the output ofplease.
In another post you had indicated that the boot partition was on the first partition of your third drive. That means that your "root": statement in grub.conf should be "root (hd2,0)", not "root (hd2,3)". In addition, I think you should try to run grub manually. Start with Code: | # grub
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd2,0)
Filesystem type is ext2fs, partition type 0x83
grub> | If you don't get the "Filesystem type is ext2fs..." message, then just try different numbers, (hd1,0), (hd0,0), until you get that message. Now, just to verify some things:- You did format your boot partition as ext2, right?
- You did successfully emerge grub while in the chrooted environment, right?
- You are back in a chrooted environment with all drives properly mounted while trying these experiments, right?
Just checking. If you find the correct drive designation that way, then proceed to install grub in the MBR of your first drive: Code: | grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> quit | Let us know how it goes.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
roelof Guru
Joined: 05 Feb 2009 Posts: 488
|
Posted: Fri Sep 11, 2009 6:34 pm Post subject: |
|
|
Oke,
I have not seen that you changed your post but ls /dev/{s,h}d* gives :
/dev/hda
/dev/hda1
/dev/hdb
/dev/hdc
/dev/hdc1
/dev/hdc2
/dev/hdc3
The rest i try now.
I think that (hd1,0) will work because my device.map looks like this :
(hd0) /dev/hda
(hd1) /dev/hdc
Roelof
P.s.
You did format your boot partition as ext2, right? yes, i did
You did successfully emerge grub while in the chrooted environment, right? yes, I did . I do all the steps in chrooted environment.
You are back in a chrooted environment with all drives properly mounted while trying these experiments, right?
I only mount the boot, root disk and /dev/ and proc as the handbook says. |
|
Back to top |
|
|
roelof Guru
Joined: 05 Feb 2009 Posts: 488
|
Posted: Fri Sep 11, 2009 7:00 pm Post subject: |
|
|
Hello,
I tried your suggestion with one difference.
Because i don't want to repair the Windows bootloader I installed grub in the mbr of the 3 disk.
So i did
grub > root (hd1,0)
grub > setup (hd1,0)
I rebooted and now i see only a grub > and nothing else when i booted grom the 3 disk.
My grub.conf is unchanged.
Roelof |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Fri Sep 11, 2009 7:33 pm Post subject: |
|
|
Moved from Gentoo Chat to Installing Gentoo, since it turned into a support thread despite my earlier request.... _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Sep 11, 2009 7:57 pm Post subject: |
|
|
roelof wrote: | ..
grub > root (hd1,0)
grub > setup (hd1,0)
...
| I believe that the setup line should've been justbut you may want to hold off trying that until you look at the rest of this email.
Okay, now do two more things:- Get back in the chrooted environment and do
and confirm that your kernel name, in its entirety, really is "kernel-2.6.30-r4". If it isn't, note the real name.
Edit your grub.conf to make the following changes:Correct your kernel name, if necessary.
Add "root=/dev/hdc3" to the kernel line. Should look something like: Code: | kernel /boot/kernel-2.6.30-r4 root=/dev/hdc3 | Note that you had the first letter of the line capitalized, which isn't correct.That should be about it. The kernel could still lack hard drive controller support but grub should be able to at least launch it. Onwards!
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|