Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]* ERROR: Failed to compile the "all" target...
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6250
Location: Goose Creek SC

PostPosted: Sun May 13, 2012 6:45 am    Post subject: Reply with quote

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
View user's profile Send private message
botdotcom
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2012
Posts: 100
Location: where no GTK

PostPosted: Sun May 13, 2012 1:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7398
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun May 13, 2012 1:29 pm    Post subject: Reply with quote

@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
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
botdotcom
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2012
Posts: 100
Location: where no GTK

PostPosted: Sun May 13, 2012 1:35 pm    Post subject: Reply with quote

yep! I changed partitioning scheme:

sda1 ntfs

sda2 swap

sda3 ext4 /

sda4 ext4 /home

error:

Code:
booting 'Gentoo Linux'

root (hd0,0)

 Filesystem tipe unknown partition type 0x7

kenel /boot/linux-3.2.12-gentoo

Error 17: Cannot mount selected partition

press any key to continue...

_________________
http://images2.wikia.nocookie.net/__cb20070325035909/uncyclopedia/images/a/a3/Long-March.jpg
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6250
Location: Goose Creek SC

PostPosted: Sun May 13, 2012 1:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7398
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun May 13, 2012 2:02 pm    Post subject: Reply with quote

Okay, good to know. Let's go through the problems.
Code:
root (hd0,0)
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
Code:
root (hd0,2)

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! :wink:

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
botdotcom
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2012
Posts: 100
Location: where no GTK

PostPosted: Sun May 13, 2012 6:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7398
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun May 13, 2012 7:13 pm    Post subject: Reply with quote

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 of
Code:
ls /boot
please.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
botdotcom
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2012
Posts: 100
Location: where no GTK

PostPosted: Sun May 13, 2012 7:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6250
Location: Goose Creek SC

PostPosted: Sun May 13, 2012 7:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7398
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun May 13, 2012 7:21 pm    Post subject: Reply with quote

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
Code:
ls /boot
- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
botdotcom
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2012
Posts: 100
Location: where no GTK

PostPosted: Sun May 13, 2012 7:25 pm    Post subject: Reply with quote

DONAHUE wrote:

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




I'm going to copy\paste it!
_________________
http://images2.wikia.nocookie.net/__cb20070325035909/uncyclopedia/images/a/a3/Long-March.jpg
Back to top
View user's profile Send private message
krodrigue
n00b
n00b


Joined: 06 Jun 2009
Posts: 14
Location: New Orleans, LA

PostPosted: Sun May 13, 2012 7:40 pm    Post subject: Re: "genkernel initramfs" crashes on fresh install Reply with quote

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
View user's profile Send private message
botdotcom
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2012
Posts: 100
Location: where no GTK

PostPosted: Sun May 13, 2012 7:48 pm    Post subject: Reply with quote

homie...I got plenty of errors that I need to solve so please open U own post...

Code:
 ls /boot
boot  grub  linux-3.2.12-gentoo

_________________
http://images2.wikia.nocookie.net/__cb20070325035909/uncyclopedia/images/a/a3/Long-March.jpg
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7398
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun May 13, 2012 7:59 pm    Post subject: Reply with quote

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
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
botdotcom
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2012
Posts: 100
Location: where no GTK

PostPosted: Sun May 13, 2012 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6250
Location: Goose Creek SC

PostPosted: Sun May 13, 2012 10:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7398
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun May 13, 2012 10:27 pm    Post subject: Reply with quote

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? :wink:
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
slugggerzzz
n00b
n00b


Joined: 07 Mar 2012
Posts: 57
Location: Manchester, UK

PostPosted: Mon May 14, 2012 12:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
botdotcom
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2012
Posts: 100
Location: where no GTK

PostPosted: Mon May 14, 2012 11:18 pm    Post subject: Reply with quote

whatever major loser!
_________________
http://images2.wikia.nocookie.net/__cb20070325035909/uncyclopedia/images/a/a3/Long-March.jpg
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7398
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon May 14, 2012 11:51 pm    Post subject: Reply with quote

@botdotcom,

First warning. Such posts are in violation of the Forum Guidelines. Name calling is not allowed. Please remain civil.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
skaumo
n00b
n00b


Joined: 07 May 2013
Posts: 3

PostPosted: Tue May 07, 2013 10:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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