Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo start error[Solved]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Thu Aug 02, 2007 9:49 am    Post subject: Gentoo start error[Solved] Reply with quote

mounted /mnt/gentoo and tried to download stage 3 tarball 2007 when I try to save it to /mnt/gentoo says access denied. I followed the guide correctly to this point. Thanx!

Last edited by paradox6996 on Fri Aug 03, 2007 1:03 pm; edited 3 times in total
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 633
Location: The Big H, a bit SSW

PostPosted: Thu Aug 02, 2007 10:58 am    Post subject: Reply with quote

Try wget http://gentoo.osuosl.org/releases/<targetprocessor>/2007.0/stages/stage3-<targetprocessor>-2007.0.tar.bz2, substituting amd64, x86, etc., for <targetprocessor>. Thus if you're trying to grab amd64, open a bash shell and try
Code:
# cd /mnt/gentoo
# wget http://gentoo.osuosl.org/releases/amd64/2007.0/stages/stage3-amd64-2007.0.tar.bz2
Alternatively, if grabbing x86/i686, try
Code:
# cd /mnt/gentoo
# wget http://gentoo.osuosl.org/releases/x86/2007.0/stages/stage3-i686-2007.0.tar.bz2
Same result? If so, could use list the results of
Code:
# mount
# ls  -la /mnt/gentoo
Back to top
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Thu Aug 02, 2007 6:39 pm    Post subject: Reply with quote

ya that worked thanx!
Back to top
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Thu Aug 02, 2007 7:13 pm    Post subject: Reply with quote

I have a new problem now; after I edit the make.conf file with MAKEOPTS="-j2". I go to the next page in the guide which is selecting a mirror using mirror select. I enter the bash cmd:mi.rrorselect -i -o >> /mnt/gentoo/etc/make.conf, and it says: bash: mi.rrorselect: command not found. If anyone knows the problem thanx in advance!
Back to top
View user's profile Send private message
Dirk.R.Gently
Guru
Guru


Joined: 29 Jan 2007
Posts: 546
Location: Titan

PostPosted: Thu Aug 02, 2007 7:56 pm    Post subject: Reply with quote

pardox6996,
I just select what mirrors are nearest to me and put them into /etc/make.conf, e.g. mine looks like this:
Code:
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/"

Also be syntax in Linux is very important, one digit forgotten, accidentally capitalized... will error, a probable result.
_________________
Helpful Linux Tidbits
Back to top
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Thu Aug 02, 2007 8:20 pm    Post subject: Reply with quote

Dirk.R.Gently wrote:
pardox6996,
I just select what mirrors are nearest to me and put them into /etc/make.conf, e.g. mine looks like this:
Code:
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/"

Also be syntax in Linux is very important, one digit forgotten, accidentally capitalized... will error, a probable result.


Just to make sure I don't mess this up my make.conf looks like this:

(start)
//notes
//notes
//notes
CFLAGS="-02 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
//notes
//notes
CHOST="i686-pc-linux-gnu"

MAKEOPTS="-j2"

GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cities.uiuc.edu/pub/gentoo/"

SYNC="rsync://rsync.gentoo.org/gentoo-portage"
(end)

should it look like this or should it be different I just want the default setup for now, and if it should be different please post how it should look and I'll copy that. For the gentoo mirrors; if anyone knows a better mirror for ft. collins colorado please post it. Thanx in advance!
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 633
Location: The Big H, a bit SSW

PostPosted: Thu Aug 02, 2007 9:59 pm    Post subject: Reply with quote

Hi pardox6996,
Code:
CFLAGS="-02 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cities.uiuc.edu/pub/gentoo/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
looks fine. Just keep following the gentoo handbook for your processor, it's very well written. What processor do you have in your machine?
Back to top
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Thu Aug 02, 2007 10:02 pm    Post subject: Reply with quote

rsa4046 wrote:
Hi pardox6996,
Code:
CFLAGS="-02 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.cities.uiuc.edu/pub/gentoo/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
looks fine. Just keep following the gentoo handbook for your processor, it's very well written. What processor do you have in your machine?


Amd Athlon xp 3200+

so should it say on this line:

CFLAGS="-02 -march=athlon-xp -pipe"

or

CFLAGS="-02 -march=athlon-xp 3200+ -pipe"

EDIT:
I'll just Keep adding my questions here:
ok so I'm on the part where you define the USE Flags in the make.conf, I wanted to know what would be the easiest way to take out all the gnome stuff and have the kde stuff compile. So I guess for example could I do:

USE=" -gtk -gnome"

and it will compile all the kde libaries, or do I have to add/subtract every flag in the varible USE to have it compile right. Can I leave it at default and after the install redo the make.conf and recompile once I have a better understanding of the USE flags. Thanx!

little confused on this part
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 633
Location: The Big H, a bit SSW

PostPosted: Fri Aug 03, 2007 12:40 am    Post subject: Reply with quote

Not athlon-xp 3200+, just
Code:
CFLAGS="-02 -march=athlon-xp -pipe"
See this link.
Selecting kde as a USE flag simply enables support for kde in a given component:
Code:
$ euse -i -g kde
global use flags (searching: kde)
************************************************************
[+ C  ] kde - Adds support for kde-base/kde (K Desktop Enviroment)

Enabling such support is distinct from compiling kde (e.g., kde-base/kdebase-meta) itself. See the KDE/gentoo links: http://www.gentoo.org/doc/en/kde-split-ebuilds.xml and http://www.gentoo.org/doc/en/kde-config.xml
If you don't anticipate using gnome desktop, or gnome apps then, yes,
Code:
-gtk -gnome
is suitable (I use KDE exclusively, so this is what I've declared, too).


Edit: later added, and yes, if you change USE flags, then
Code:
# emerge -vaDNu world
will recompile according to new USE flags where appropriate.
_________________
I love gentoo, but I am certainly no guru, despite what it says above.
Back to top
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Fri Aug 03, 2007 3:49 am    Post subject: Reply with quote

I made it to the end, rebooted, and entered the correct Gentoo kernel to get this:

root (hd0,0)

filesystem type ext2fs, partition type 0x83
kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda3

error 15: file not found

Can I get some help on this to end my misery, Thanx!

edit: just wondering for this line in the handbook:

cp arch/i386/boot/bzImage /boot/kernel-2.6.19-gentoo-r5

should it be:

cp arch/i686/boot/bzImage /boot/kernel-<version>

I was trying to get back into the gentoo system but I don't know how, and all the mount steps in the handbook ive tried says file not found so if I need to check stuff to fix this problem. Can someone post how to chroot into the gentoo dir from knoppix. thanx!
Back to top
View user's profile Send private message
kleinerfreak
n00b
n00b


Joined: 28 Jan 2005
Posts: 33
Location: Hessen/Germany

PostPosted: Fri Aug 03, 2007 8:58 am    Post subject: Reply with quote

paradox6996 wrote:
I made it to the end, rebooted, and entered the correct Gentoo kernel to get this:

root (hd0,0)

filesystem type ext2fs, partition type 0x83
kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda3

error 15: file not found

Can I get some help on this to end my misery, Thanx!


Yes, look at this Gentoo Doc and try to solve the error 15 problem (it tells you multiple ways how to do that), but it seems like the name of the kernel-image is wrong in grub.conf

Quote:

edit: just wondering for this line in the handbook:

cp arch/i386/boot/bzImage /boot/kernel-2.6.19-gentoo-r5

should it be:

cp arch/i686/boot/bzImage /boot/kernel-<version>

I'm quite sure that this is not wrong, as far as I know there has never been a seperate support for i686. You could try it by the way, but I doubt that there is a folder named i686...
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 693
Location: Brooklyn, New York

PostPosted: Fri Aug 03, 2007 9:05 am    Post subject: Reply with quote

paradox6996 wrote:
I made it to the end, rebooted, and entered the correct Gentoo kernel to get this:

root (hd0,0)

filesystem type ext2fs, partition type 0x83
kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda3

error 15: file not found

Can I get some help on this to end my misery, Thanx!

edit: just wondering for this line in the handbook:

cp arch/i386/boot/bzImage /boot/kernel-2.6.19-gentoo-r5

check kernel image name matches grub.conf, if it doesn't try adding (hd0,0) in from of that kernel line.
i.e (hd0,0)/boot/kernel-2.6.21-gentoo-r4

paradox6996 wrote:

should it be:

cp arch/i686/boot/bzImage /boot/kernel-<version>

I was trying to get back into the gentoo system but I don't know how, and all the mount steps in the handbook ive tried says file not found so if I need to check stuff to fix this problem. Can someone post how to chroot into the gentoo dir from knoppix. thanx!

[/quote]

there is not /usr/src/linux/arch/i686 folder. only i386 or x86_64 for 64bit. and whatever other arches are available.
Back to top
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Fri Aug 03, 2007 9:29 am    Post subject: Reply with quote

ya I checked the grub.conf it's all correct and ok then I did the arch right, which sucks because I did everything else exactly to the guide so idk...

I also checked the fstab.conf and it's correct too!

grub.conf
default 0

timeout 30

splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.21-r4
root (hd0,0)
kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda3

title=Gentoo Linux 2.6.21-r4 (rescue)
root (hd0,0)
kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda3 init=/bin/bb


edit: I also checked fstab.conf and it is correct too

fstab:
/dev/hda1 /boot ext2 defaults,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,user 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
Back to top
View user's profile Send private message
kleinerfreak
n00b
n00b


Joined: 28 Jan 2005
Posts: 33
Location: Hessen/Germany

PostPosted: Fri Aug 03, 2007 9:57 am    Post subject: Reply with quote

paradox: Maybe you should focus on one thread instead of running two with the same question at the same time. Just have one closed.
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 633
Location: The Big H, a bit SSW

PostPosted: Fri Aug 03, 2007 10:31 am    Post subject: Reply with quote

Grub is clearly installed in the boot sector of the drive, because it loads its image ok. However, are you sure that the boot partition was mounted during kernel copying and grub-install? You only have to repeat these steps (20-odd lines):
    1. boot install CD, for the sake of speed, avoid entering X:
    Code:
    gentoo-nofb nox
    2. Once at the bash prompt, do
    Code:
    # mount /dev/hda3 /mnt/gentoo
    # mount /dev/hda1 /mnt/gentoo/boot
    # mount -t proc none /mnt/gentoo/proc
    # mount -o bind /dev /mnt/gentoo/dev
    # chroot /mnt/gentoo /bin/bash
    # env-update
    # source /etc/profile
    # export PS1="(chroot) $PS1"
    # cd /usr/src/linux
    3. If you want to rebuild the kernel as a check, do so now:
    Code:
    # make && make modules_install

    4. Copy the kernel image and System.map to /boot
    Code:
    # cp -iv `find . -name bzImage` /boot/kernel-2.6.21-gentoo-r4
    # cp -iv System.map /boot
    5. Repeat grub-install:
    Code:
    # grep -v rootfs /proc/mounts > /etc/mtab
    # grub-install --no-floppy /dev/hda
    6. Check that your /boot/grub/grub.conf kernel line is correct. Your kernel file can have any name you want, but it must agree with that given in the kernel line:
    Code:
    default 0
    timeout 30
    title=Gentoo Linux kernel-2.6.21-gentoo-r4
      root (hd0,0)
      kernel /boot/kernel-2.6.21-gentoo-r4 root=/dev/hda3
    7. Then exit the chroot, unmount, reboot, and remove the CD.
    Code:
    # exit
    # cd
    # umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
    # reboot
Did that work?

Edit: Fixed typos, missing words
_________________
I love gentoo, but I am certainly no guru, despite what it says above.
Back to top
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Fri Aug 03, 2007 10:48 am    Post subject: Reply with quote

I don't have the install cd I have knoppix and it works differently then the way you posted:

gentoo-nofb nox

# mount /dev/hda3 /mnt/gentoo
# mount /dev/hda1 /mnt/gentoo/boot
# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev
# chroot /mnt/gentoo /bin/bash
# env-update
# source /etc/profile
# export PS1="(chroot) $PS1"
# cd /usr/src/linux

I recompiled the kernel I checked grub to make sure it was the correct version all that, I made sure image was copied to boot, I made sure the kernels in grub.conf matched the kernel in usr/src/linux I did a couple other things I can't think of because because its 5am and I've been at this for a long time. The only thing I've never done that isn't in the handbook is this:

# cp -iv `find . -name bzImage` /boot/kernel-2.6.21-gentoo-r4
# cp -iv System.map /boot

yay!

Edit: did those too lines up their cp -iv --->
on line1: cp: target `/boot/kernel-2.6.21-gentoo-r4` is not a directory
line2:(system.map one) cp: cannot stat `system.map` : no such file or directory

if your going to ask if i did cp arch ---> line after i /make the kernel yes i did /boot only shows bzImage.

P.S ya it was mounted like I said I followed the handbook to the tee, so the error isn't me. owned!
_________________
Paradox(>")>

Everyone has to start somewhere, it just depends on where you end up that counts! (>")>


Last edited by paradox6996 on Fri Aug 03, 2007 11:02 am; edited 1 time in total
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 633
Location: The Big H, a bit SSW

PostPosted: Fri Aug 03, 2007 11:02 am    Post subject: Reply with quote

Check the syntax exactly:
Code:
# cp -iv `find . -name bzImage` /boot/kernel-2.6.21-gentoo-r4
# cp -iv System.map /boot
Note cap on System.map, and backticks.
_________________
I love gentoo, but I am certainly no guru, despite what it says above.
Back to top
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Fri Aug 03, 2007 11:04 am    Post subject: Reply with quote

rsa4046 wrote:
Check the syntax exactly:
Code:
# cp -iv `find . -name bzImage` /boot/kernel-2.6.21-gentoo-r4
# cp -iv System.map /boot
Note cap on System.map, and backticks.


i did the syntax right

just to make sure i did find<space>.<space>-name, and tilde key in front of find and at the end of bzImage <space> /boot ---->
is the kernel image in ls -l usr/src/linux suppose to be linux-2.6.21-gentoo-r4
_________________
Paradox(>")>

Everyone has to start somewhere, it just depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 633
Location: The Big H, a bit SSW

PostPosted: Fri Aug 03, 2007 11:14 am    Post subject: Reply with quote

It's not a tilde, it's a backtick (below the tilde on my keyboard). Yes, your /usr/src/linux should map to /usr/src/linux-2.6.21-gentoo-r4. The code
Code:
# find /usr/src/linux -name bzImage
will find the kernel image; surrounding this command with backticks makes the result available to cp.

Edit, fixed typos
_________________
I love gentoo, but I am certainly no guru, despite what it says above.


Last edited by rsa4046 on Fri Aug 03, 2007 11:44 am; edited 1 time in total
Back to top
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Fri Aug 03, 2007 11:16 am    Post subject: Reply with quote

rsa4046 wrote:
It's not a tilde, it's a backtick (below the tilde on my keyboard). Yes, your /usr/src/linux should map to /usr/src/ to usr/src/linux-2.6.21-gentoo-r4. The code
Code:
# find /usr/src/linux -name bzImage
will find the kernel image; surrounding this command with backticks makes the result available to cp.


ya i meant that! sorry
_________________
Paradox(>")>

Everyone has to start somewhere, it just depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 633
Location: The Big H, a bit SSW

PostPosted: Fri Aug 03, 2007 11:33 am    Post subject: Reply with quote

If you rec'd
Quote:
on line1:
Code:
cp: target `/boot/kernel-2.6.21-gentoo-r4` is not a directory
then find isn't finding a kernel image. Do this and post the result:
Code:
# cd /usr/src/linux
# ls -la ../
# find . -name bzImage

_________________
I love gentoo, but I am certainly no guru, despite what it says above.
Back to top
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Fri Aug 03, 2007 11:37 am    Post subject: Reply with quote

Knoppix linux # ls -la ../
total 12
drwxr-xr-x 3 root root 4096 Aug 2 22:47 .
drwxr-xr-x 13 root root 4096 Aug 2 16:36 ..
-rw-r--r-- 1 root root 0 Apr 19 23:54 .keep
lrwxrwxrwx 1 root root 22 Aug 2 22:47 linux -> linux-2.6.21-gentoo-r4
drwxr-xr-x 20 root root 4096 Aug 3 08:06 linux-2.6.21-gentoo-r4
Knoppix linux # find . -name bzImage
./arch/i386/boot/bzImage
Knoppix linux #
_________________
Paradox(>")>

Everyone has to start somewhere, it just depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 633
Location: The Big H, a bit SSW

PostPosted: Fri Aug 03, 2007 11:40 am    Post subject: Reply with quote

paradox6996 wrote:
Knoppix linux # ls -la ../
total 12
drwxr-xr-x 3 root root 4096 Aug 2 22:47 .
drwxr-xr-x 13 root root 4096 Aug 2 16:36 ..
-rw-r--r-- 1 root root 0 Apr 19 23:54 .keep
lrwxrwxrwx 1 root root 22 Aug 2 22:47 linux -> linux-2.6.21-gentoo-r4
drwxr-xr-x 20 root root 4096 Aug 3 08:06 linux-2.6.21-gentoo-r4
Knoppix linux # find . -name bzImage
./arch/i386/boot/bzImage
Knoppix linux #
OK, looks good, now post the results of
Code:
# mount
# ls -la /boot

_________________
I love gentoo, but I am certainly no guru, despite what it says above.
Back to top
View user's profile Send private message
paradox6996
l33t
l33t


Joined: 01 Aug 2007
Posts: 914
Location: BFE CO

PostPosted: Fri Aug 03, 2007 11:43 am    Post subject: Reply with quote

Knoppix linux # mount
/dev/root.old on / type ext2 (rw)
/proc on /proc type proc (rw,nodiratime)
/sys on /sys type sysfs (rw)
/dev/hdd on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/dev/cloop2 on /KNOPPIX2 type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw)
/UNIONFS on /UNIONFS type unionfs (rw,dirs=/ramdisk=rw:/KNOPPIX=ro:/KNOPPIX2=ro,debug=0,delete=all,copyup=preserve)
/dev/pts on /UNIONFS/dev/pts type devpts (rw)
/proc/bus/usb on /proc/bus/usb type usbfs (rw)
automount(pid2262) on /mnt/auto type autofs (rw)
/dev/hda3 on / type ext3 (rw)
/proc on /proc type proc (rw,nodiratime)
/UNIONFS on /dev type unionfs (rw,dirs=/ramdisk=rw:/KNOPPIX=ro:/KNOPPIX2=ro,debug=0,delete=all,copyup=preserve)
Knoppix linux # ls -la /boot
total 2528
drwxr-xr-x 3 root root 4096 Aug 3 08:36 .
drwxr-xr-x 18 root root 4096 Aug 2 16:33 ..
drwxr-xr-x 3 root root 4096 Aug 3 08:36 boot
-rw-r--r-- 1 root root 2569936 Aug 3 08:08 bzImage
Knoppix linux #
_________________
Paradox(>")>

Everyone has to start somewhere, it just depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 633
Location: The Big H, a bit SSW

PostPosted: Fri Aug 03, 2007 11:49 am    Post subject: Reply with quote

I don't think your boot partition is mounted (I don't see /dev/hda1 in the mount list). See if you can do
Code:
# mount -v /dev/hda1 /boot
You can confirm it's mounted with
Code:
#mount -v | grep boot
What does that do?
_________________
I love gentoo, but I am certainly no guru, despite what it says above.
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 1, 2  Next
Page 1 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