Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem emerging genkernel
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: 7651
Location: Goose Creek SC

PostPosted: Fri Mar 22, 2013 2:38 pm    Post subject: Reply with quote

Not entering the chroot properly has been reported as a cause of failing to compile cpio.

Your restart procedure should be: boot the cd
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"
Graceful exit should be
Code:
exit
cd
umount -l /mnt/gentoo/dev{/shm,/pts,}
umount -l /mnt/gentoo{/boot,/proc,}
reboot

_________________
Defund the FCC.
Back to top
View user's profile Send private message
adrian87
n00b
n00b


Joined: 16 Mar 2013
Posts: 22

PostPosted: Fri Mar 22, 2013 7:57 pm    Post subject: Reply with quote

gcc-config -l

only 1 choice x86_64-pc-linux-gnu-4.6.3 *

emerge --oneshot libtool failed
http://bpaste.net/show/85689

emerge -1 cpio failed
http://bpaste.net/show/85691
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Fri Mar 22, 2013 8:57 pm    Post subject: Reply with quote

boot cd, mount gentoo partitions,
Code:
 wgetpaste /mnt/gentoo/portage/make.conf
post url
Enter the chroot,
Code:
emerge --sync
emerge portage > /por
emerge --info > /emi
emerge gcc > /gcc
ls  /proc > /pro

exit chroot gracefully except do not reboot,
Code:
wgetpaste /mnt/gentoo/por
wgetpaste /mnt/gentoo/emi
wgetpaste /mnt/gentoo/gcc
wgetpaste /mnt/gentoo/pro
ls -l /mnt/gentoo | wgetpaste
post urls
_________________
Defund the FCC.
Back to top
View user's profile Send private message
adrian87
n00b
n00b


Joined: 16 Mar 2013
Posts: 22

PostPosted: Sat Mar 23, 2013 12:53 pm    Post subject: Reply with quote

wgetpaste /mnt/gentoo/portage/make.conf

file doesn't exist

wgetpaste /mnt/gentoo/por
http://bpaste.net/show/85841

wgetpaste /mnt/gentoo/emi
http://bpaste.net/show/85842

wgetpaste /mnt/gentoo/gcc
http://bpaste.net/show/85843

wgetpaste /mnt/gentoo/pro
http://bpaste.net/show/85844

ls -l /mnt/gentoo | wgetpaste
http://bpaste.net/show/85845
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Sat Mar 23, 2013 3:51 pm    Post subject: Reply with quote

Quote:
wgetpaste /mnt/gentoo/portage/make.conf file doesn't exist
relates to my inability to avoid typos/brain dumps. Should have asked for wgetpaste /mnt/gentoo/portage/make.conf.

boot cd, mount the gentoo partitions, run
Code:
nano  /mnt/gentoo/etc/portage/make.conf
change
Quote:
CFLAGS="march=k8 -O2 -pipe"
to
Quote:
CFLAGS="-march=native -O2 -pipe"
ensure you have
Quote:
CXXFLAGS="${CFLAGS}"
all this trouble over a missing leading hyphen? Maybe, you'll find out. -march=native is currently preferred over -march=k8 and k8 is for an amd processor while you have an intel cpu.

While you're at it, post a copy of /mnt/gentoo/etc/portage/make.conf after you repair it. Then continue to the chroot and
Code:
emerge -1 cpio
emerge genkernel

_________________
Defund the FCC.
Back to top
View user's profile Send private message
adrian87
n00b
n00b


Joined: 16 Mar 2013
Posts: 22

PostPosted: Mon Mar 25, 2013 6:29 pm    Post subject: Reply with quote

aalrighty, everything now emerges ok!

- makes all the difference.


genkernel fails however :( kernel source directory /usr/src/linux not found - sounds like a bit of a fundamental fail :(

http://bpaste.net/show/86472
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Mon Mar 25, 2013 6:35 pm    Post subject: Reply with quote

from chroot
Code:
emerge gentoo-sources
genkernel all

_________________
Defund the FCC.
Back to top
View user's profile Send private message
adrian87
n00b
n00b


Joined: 16 Mar 2013
Posts: 22

PostPosted: Wed Mar 27, 2013 6:14 pm    Post subject: Reply with quote

success! lol, thanks a lot for the help

now for the rest of the install :/
Back to top
View user's profile Send private message
adrian87
n00b
n00b


Joined: 16 Mar 2013
Posts: 22

PostPosted: Wed Mar 27, 2013 8:41 pm    Post subject: Reply with quote

nearly there :P

just did the reboot after installing grub and all that....

got an error cannot open root device sda3 - please append a correct root= boot option

at first i thought this was referring to the fstab file so i went a changed it a bit but got the same error
http://bpaste.net/show/87082 - im still not sure its right

then when i re-read the error i thought it was more likely to be my grub config (root= and all that)

so i had a look and i had root as hd0,0 - which is 1st hard drive first partition, which in my case would be sda1 which is the boot partition not root which is sda3 right?
i changed it to 0,2 hoping this would point the root at sda3 but when i tried to boot with this i got;


root (hd0,2)

filesystem type is ext2fs, partition type 0x83
kernel /boot/kernel-genkernel-x86_64-3.7.10-gentoo root=/dev/sda3 init=/bin/bb
error 15: file not found

heres the grub config
http://bpaste.net/show/87083


any ideas where im going wrong?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Wed Mar 27, 2013 9:20 pm    Post subject: Reply with quote

Quote:
got an error cannot open root device sda3 - please append a correct root= boot option
indicates missing driver for hard drive. this is consistent with using genkernel to build the kernel and initramfs but not having an initrd specified in grub.conf

Quote:
then when i re-read the error i thought it was more likely to be my grub config (root= and all that)
grub.conf 's root=/dev/sda3 could be wrong but does not sound like it

Quote:
so i had a look and i had root as hd0,0 - which is 1st hard drive first partition, which in my case would be sda1 which is the boot partition not root which is sda3 right?
root in grub.conf means location where grub files can be found; thus (hd0,0) was right as proven by the fact that grub ran correctly and loaded and started the kernel

Quote:
filesystem type is ext2fs, partition type 0x83
kernel /boot/kernel-genkernel-x86_64-3.7.10-gentoo root=/dev/sda3 init=/bin/bb
error 15: file not found
proper response to pointing to root (hd0,2) as the location of grub files which it is not

so grub.conf:
Quote:
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.7.10-gentoo root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-3.7.10-gentoo
do check grub.conf spelling is exact match to that in /boot

if your box has no floppy leave the fd0 line out of fstab, if you want cd/dvd automount leave out the cdrom line also
_________________
Defund the FCC.
Back to top
View user's profile Send private message
adrian87
n00b
n00b


Joined: 16 Mar 2013
Posts: 22

PostPosted: Sun Mar 31, 2013 3:42 pm    Post subject: Reply with quote

DONE!

i now have a operating system :P cheers for the help.

just one last question regarding getting my head around where everything is.

when i first boot im at

computername ~ # which according to ls has nothing in it.

if I change directory to / i am now looking at sda3 which is my main partition


so my question is, before I change into the main drives file directory...where am I? what or where is ~# - does it even have a physical location or is it just a virtual space to enter commands?....and what do you call that location ?(assuming that you call / # root)
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Sun Mar 31, 2013 3:49 pm    Post subject: Reply with quote

you are in the "home" directory. In quotes because home does not necessarily or exacly mean /home.
if you are logged in as root you will be in /root
if you are logged in as adrian you will be in /home/adrian
running ls -al may produce an interesting result
_________________
Defund the FCC.
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