View previous topic :: View next topic |
Author |
Message |
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun May 13, 2012 6:45 am Post subject: |
|
|
root (hd0,0) tells grub-legacy to look for grub files on the first partition of the first hard drive
the first partition of the first hard drive is an ntfs partition
grub-legacy cannot read ntfs, thus reports:
Filesystem tipe unknown partition type 0x7
kernel /boot/linux-3.2.12-gentoo tells grub to load /boot/linux-3.2.12-gentoo from the first partition of the first hard drive
the first partition of the first hard drive is an ntfs partition
grub-legacy cannot read ntfs, thus reports:
Error 17: Cannot mount selected partition
grub-legacy cannot read btrfs either
if you have the /boot directory on (hd0,3) ,the ext4 file system, and you change /boot/grub/grub.conf to include Quote: | title Gentoo Linux
root (hd0,3)
kernel /boot/linux-3.2.12-gentoo root=/dev/sda4 | you may get a successful boot barring other errors.
edited to add root=/dev/sda4 _________________ Defund the FCC.
Last edited by DONAHUE on Sun May 13, 2012 2:29 pm; edited 1 time in total |
|
Back to top |
|
|
botdotcom Tux's lil' helper
Joined: 27 Feb 2012 Posts: 100 Location: where no GTK
|
Posted: Sun May 13, 2012 1:04 pm Post subject: |
|
|
need assistance,think is all wrong:
/boot/grub/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
root (hd0,0)
kernel /boot/linux-3.2.12-gentoo
root=/dev/sda3 real_root=/dev/sda3
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5
title Gentoo Linux
root (hd0,0)
kernel /boot/linux-3.2.12-gentoo
root=/dev/sda3 init=/bin/bb
# vim:ft=conf:
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1 |
_________________ http://images2.wikia.nocookie.net/__cb20070325035909/uncyclopedia/images/a/a3/Long-March.jpg |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun May 13, 2012 1:29 pm Post subject: |
|
|
@botdotcom,
There are several things wrong with that grub.conf file but, before I can reliably answer your questions, I need to know some things. You said you changed from btrfs to ex4 but the last screen shot you posted showed the same partition layout as before:- /dev/sda1 ntfs
- /dev/sda2 swap
- /dev/sda3 btrfs
- /dev/sda4 ext4
Did you change your partitioning scheme and then post the wrong picture or did you just install Gentoo on the 4th partition instead of the 3rd?
Also, error messages are important. What error are you getting?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
botdotcom Tux's lil' helper
Joined: 27 Feb 2012 Posts: 100 Location: where no GTK
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun May 13, 2012 1:45 pm Post subject: |
|
|
your latest grub result:
root (hd0,0) tells grub-legacy to look for grub files on the first partition of the first hard drive
the first partition of the first hard drive is an ntfs partition
grub-legacy cannot read ntfs, thus reports:
Filesystem tipe unknown partition type 0x7
kernel /boot/linux-3.2.12-gentoo tells grub to load /boot/linux-3.2.12-gentoo from the first partition of the first hard drive
the first partition of the first hard drive is an ntfs partition
grub-legacy cannot read ntfs, thus reports:
Error 17: Cannot mount selected partition
if you have the /boot directory on (hd0,2) , also known as /dev/sda3, also known as the first ext4 file system, and you change /boot/grub/grub.conf to:
Quote: | # 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,2)/boot/grub/splash.xpm.gz
title Gentoo Linux
root (hd0,2)
kernel /boot/linux-3.2.12-gentoo root=/dev/sda3
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1 |
you may get a successful boot barring other errors. _________________ Defund the FCC.
Last edited by DONAHUE on Sun May 13, 2012 2:06 pm; edited 1 time in total |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun May 13, 2012 2:02 pm Post subject: |
|
|
Okay, good to know. Let's go through the problems.That says that grub should look for its files on the first hard drive (hd0, which is how grub names /dev/sda) in the first partition (0, grub numbers that partitions from zero). First hard drive is right but you've stated that you installed Gentoo (and, presumably, grub) on the 3rd partition. Correct line should be
Second issue: Code: | kernel /boot/linux-3.2.12-gentoo
root=/dev/sda3 real_root=/dev/sda3 | These must be on the same line. Furthermore, if you used genkernel to build your kernel, you need only the real_root parameter, like so Code: | kernel /boot/linux-3.2.12-gentoo real_root=/dev/sda3 | If you didn't use genkernel, then you need only the root parameter, like so: Code: | kernel /boot/linux-3.2.12-gentoo root=/dev/sda3 | Also, the name is important. I'd get back into the chroot and check to see that the exact file name you're listing on the grub.conf kernel line actually exists in /boot.
Finally, if you used genkernel, then by default, you need the initrd line; if you didn't use genkernel, then you don't. Assuming you did use genkernel, Code: | #initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5 | is wrong. First, the initrd comment character "#" needs to be removed. Second, the actual file name of the initramfs needs to be specified. While you're in the chroot, check on that and edit in the exact file name. You're line will look something like this Code: | initrd /boot/initramfs-genkernel-x86-3.2.12-gentoo | If you, didn't use genkernel, then ignore this last paragraph.
Check into these things and report back. It might be best if you post the grub.conf that you ended up with for us to review.
Error messages, please!
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
botdotcom Tux's lil' helper
Joined: 27 Feb 2012 Posts: 100 Location: where no GTK
|
Posted: Sun May 13, 2012 6:21 pm Post subject: |
|
|
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_cha$
# 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
root (hd0,2) kernel /boot/linux-3.2.12-gentoo root=/dev/sda3
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5
title Gentoo Linux
root (hd0,2) kernel /boot/linux-3.2.12-gentoo root=/dev/sda3 init=/bin/bb
# vim:ft=conf:
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
|
Quote: | post the grub.conf that you ended up with for us to review |
don't get it dude:
Quote: | the name is important. I'd get back into the chroot and check to see that the exact file name you're listing on the grub.conf kernel line actually exists in /boot |
_________________ http://images2.wikia.nocookie.net/__cb20070325035909/uncyclopedia/images/a/a3/Long-March.jpg |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun May 13, 2012 7:13 pm Post subject: |
|
|
The root line and the kernel line should be separate. All I said before was that the kernel parameters couldn't be spread out over more than one line. Look at DONAHUE's example. It should work for you.
You never answered the question. Are you using genkernel or not?
Regarding what you don't get, I'll walk you through it. Could you get back in the chroot and post the output ofplease.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
botdotcom Tux's lil' helper
Joined: 27 Feb 2012 Posts: 100 Location: where no GTK
|
Posted: Sun May 13, 2012 7:20 pm Post subject: |
|
|
Ain't using genkernel,now when I hit nada happens[no errors] just can enter windows,let me try again...
THIS CONFIG is bad!:
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_cha$
# 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
root (hd0,2) kernel /boot/linux-3.2.12-gentoo root=/dev/sda3
#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5
title Gentoo Linux
root (hd0,2) kernel /boot/linux-3.2.12-gentoo root=/dev/sda3 init=/bin/bb
# vim:ft=conf:
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1 |
_________________ http://images2.wikia.nocookie.net/__cb20070325035909/uncyclopedia/images/a/a3/Long-March.jpg
Last edited by botdotcom on Sun May 13, 2012 7:22 pm; edited 1 time in total |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun May 13, 2012 7:21 pm Post subject: |
|
|
echoing and belaboring
Quote: | default 0
timeout 5
title Gentoo Linux
root (hd0,2)
kernel /boot/linux-3.2.12-gentoo root=/dev/sda3
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1 |
grub is format sensitive. default timeout title root kernel rootnoverify makeactive chainloader are each commands when they start a line. /boot/linux-3.2.12-gentoo root=/dev/sda3 are here as options to the kernel command and must appear on the kernel line separated by spaces. (hd0,2) is used here as an option to the root command. _________________ Defund the FCC. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun May 13, 2012 7:21 pm Post subject: |
|
|
botdotcom wrote: | Ain't using genkernel,now when I hit nada happens[no errors] just can enter windows,let me try again... | Okay, understood. Next request from above, while in the chroot, please post the output of- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
botdotcom Tux's lil' helper
Joined: 27 Feb 2012 Posts: 100 Location: where no GTK
|
|
Back to top |
|
|
krodrigue n00b
Joined: 06 Jun 2009 Posts: 14 Location: New Orleans, LA
|
Posted: Sun May 13, 2012 7:40 pm Post subject: Re: "genkernel initramfs" crashes on fresh install |
|
|
oanjao wrote: | I'm getting the exact same error on a fresh installation on a new 64-bit Intel Xeon workstation with the latest version of Gentoo. I ran:
Code: | genkernel --menuconfig all | The only thing I changed in the configuration was the CPU architecture (to Core 2). The kernel and modules build without any problems, but the build process fails when it gets to initramfs.
I'm following the Handbook as closely as possible, and I repeated the process twice to make sure I wasn't missing a step. Please let me know what else you need to know to help debug this. I can't paste emerge --info unless you can show me how to do that from Links! |
My kernel failed to compile with busybox error I did this to fix the problem.
Busybox problem kerner failure
Changed file /usr/share/genkernel/defaults/busy-config with.
Code:
CONFIG_FEATURE_MOUNT_NFS=n |
|
Back to top |
|
|
botdotcom Tux's lil' helper
Joined: 27 Feb 2012 Posts: 100 Location: where no GTK
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun May 13, 2012 7:59 pm Post subject: |
|
|
Okay, that looks good. Do you have DONAHUE's grub.conf installed into /boot/grub/grub.conf? If so, try to boot. Report any messages.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
botdotcom Tux's lil' helper
Joined: 27 Feb 2012 Posts: 100 Location: where no GTK
|
Posted: Sun May 13, 2012 9:44 pm Post subject: |
|
|
Thx to john and donahue u both r big{dinos} monsters of informatics! plz mark it solved...
for now the last one:(trying to install razorqt)
Code: | The following keyword changes are necessary to proceed:
#required by razorqt (argument)
=x11-wm/razorqt-0.4.1-r2 ~x86 |
/etc/make.conf:
Code: | # These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
VIDEO_CARDS="intel"
USE="qt"
|
_________________ http://images2.wikia.nocookie.net/__cb20070325035909/uncyclopedia/images/a/a3/Long-March.jpg |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun May 13, 2012 10:15 pm Post subject: |
|
|
razorqt package apparently is only in the development tree so
Quote: | mkdir /etc/portage/
echo "=x11-wm/razorqt-0.4.1-r2 ~x86" >> /etc/portage/package.keywords
emerge razorqt |
even though you are up and running, the rest of the handbook is worth reading (even studying).
marking solved is left to the original poster. edit the title of your original post to add [Solved] _________________ Defund the FCC.
Last edited by DONAHUE on Tue May 15, 2012 12:09 am; edited 2 times in total |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun May 13, 2012 10:27 pm Post subject: |
|
|
botdotcom wrote: | /etc/make.conf:
Code: |
...
CFLAGS="-O2 -march=i686 -pipe"
... |
| Dude. Going to all that trouble and not even optimizing your CFLAGS? Check out the Safe CFLAGS page on the Gentoo Wiki to learn how to set up optimal (but safe) compiler optimization.
You mark the thread solved yourself by editing your original post. (I see DONAHUE beat me to it.)
- John
P.S.: Now, did you really need an automated installer? This was easy, right? _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
slugggerzzz n00b
Joined: 07 Mar 2012 Posts: 65 Location: Manchester, UK
|
Posted: Mon May 14, 2012 12:46 pm Post subject: |
|
|
trying to run before you can walk, go through the recommended ways of installing it.
They do it the way you want it.
From what you are saying, i think you should start learning ubuntu. _________________ Slugggerzzz ... |
|
Back to top |
|
|
botdotcom Tux's lil' helper
Joined: 27 Feb 2012 Posts: 100 Location: where no GTK
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon May 14, 2012 11:51 pm Post subject: |
|
|
@botdotcom,
First warning. Such posts are in violation of the Forum Guidelines. Name calling is not allowed. Please remain civil.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
skaumo n00b
Joined: 07 May 2013 Posts: 6
|
Posted: Tue May 07, 2013 10:00 pm Post subject: |
|
|
Hello,
I fixed the "None of the initramfs compression methods we tried" issue by changing /etc/genkernel.conf
COMPRESS_INITRD_TYPE="best"
to the following:
COMPRESS_INITRD_TYPE="gzip"
Hope that helps.
Best,
+-/*_+ |
|
Back to top |
|
|
|