Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
struggling with install
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
gavin
n00b
n00b


Joined: 05 Jun 2004
Posts: 27

PostPosted: Mon Jun 07, 2004 11:32 am    Post subject: struggling with install Reply with quote

I was hoping it would be easy ( can see why I like OS's which install themselves ;) ).

Spent all weekend trying to do this, Almost ready to give up :\

Basically I am up to the stage of chroot'ing, and i'm getting this error:

Quote:

chroot: /bin/bash no such file or directory exists


Now, by doing cd /bin/ I can see that bash is there, and everything should work fine.

What am I doing wrong?
Back to top
View user's profile Send private message
Raoul_Duke
l33t
l33t


Joined: 15 Dec 2002
Posts: 694
Location: Caerdydd, Wales

PostPosted: Mon Jun 07, 2004 11:37 am    Post subject: Reply with quote

If you're at the chrooting stage, the command should be:

Code:
chroot /mnt/gentoo /bin/bash


If you're doing that ok, check you unpacked the stage tarball to the right place and that you mounted the disc correctly.

What does

Code:
cat /etc/mtab


Show?
_________________
www.iamthepenguin.com
Back to top
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1114
Location: Den Dolder, The Netherlands

PostPosted: Mon Jun 07, 2004 11:39 am    Post subject: Re: struggling with install Reply with quote

gavin wrote:
I was hoping it would be easy ( can see why I like OS's which install themselves ;) ).

Spent all weekend trying to do this, Almost ready to give up :\

Basically I am up to the stage of chroot'ing, and i'm getting this error:

Quote:

chroot: /bin/bash no such file or directory exists


Now, by doing cd /bin/ I can see that bash is there, and everything should work fine.

What am I doing wrong?
Wait, there's no need to give up, it may be easy to solve. I suppose you're following the Installation Handbook, and it appears you're stuck in section 6.a (Installing the Gentoo base system / Chrooting). I have 2 initial questions:

1) have you been able to follow the handbook exactly so far without errors?
2) what is the exact command you're typing now? Is it
Code:
chroot /mnt/gentoo /bin/bash
or something else?
Back to top
View user's profile Send private message
gavin
n00b
n00b


Joined: 05 Jun 2004
Posts: 27

PostPosted: Mon Jun 07, 2004 11:55 am    Post subject: Reply with quote

Hi - thanks for the speedy reply! :)

Yes, I've been following the manual exactly so far, the only error I had so far was transfering some of the portage files (I figure I can emerge them later if needed?).

And yes, I'm typing in that command exactly. :)
Back to top
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1114
Location: Den Dolder, The Netherlands

PostPosted: Mon Jun 07, 2004 12:06 pm    Post subject: Reply with quote

gavin wrote:
Hi - thanks for the speedy reply! :)

Yes, I've been following the manual exactly so far, the only error I had so far was transfering some of the portage files (I figure I can emerge them later if needed?).

And yes, I'm typing in that command exactly. :)
No the portage files may be important! Which ones are you referring to?
Back to top
View user's profile Send private message
gavin
n00b
n00b


Joined: 05 Jun 2004
Posts: 27

PostPosted: Mon Jun 07, 2004 12:29 pm    Post subject: Reply with quote

Okay, I might burn another CD and start again :?
I got some I/O errors on a few files while they were being un-tar'd
Back to top
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1114
Location: Den Dolder, The Netherlands

PostPosted: Mon Jun 07, 2004 1:14 pm    Post subject: Reply with quote

gavin wrote:
Okay, I might burn another CD and start again :?
I got some I/O errors on a few files while they were being un-tar'd
OK, keep posting if you get errors :)
Back to top
View user's profile Send private message
gavin
n00b
n00b


Joined: 05 Jun 2004
Posts: 27

PostPosted: Mon Jun 07, 2004 3:57 pm    Post subject: Reply with quote

Okay, just burnt another CD (did it at 4x speed just to make sure everything was written properly).

I started untaring the stage3-x86... tar, and it works okay for the first part, then it starts giving me errors.

Quote:

could not write 0 or 1024 bytes (I think)
tar: skipping to next header


Is this a hardware problem?
Back to top
View user's profile Send private message
gavin
n00b
n00b


Joined: 05 Jun 2004
Posts: 27

PostPosted: Mon Jun 07, 2004 4:14 pm    Post subject: Reply with quote

heh - I think it was lack of disk space ;)
How large is the complete install for gentoo? I have had mandrake installed before on this machine with no issues.

Basically it's a P200 with quite an old bios which doesn't support large drives, I have to install the base onto a 1.7GB hard drive, and then sitting next to it is a huge 160gb one which will need to be detected by GRUB. Obviously I can't do that until I get this thing installed on the old 1.7 :?
Back to top
View user's profile Send private message
baldeante
Guru
Guru


Joined: 17 Jan 2004
Posts: 498
Location: Caldas da Rainha, Portugal

PostPosted: Mon Jun 07, 2004 7:32 pm    Post subject: Reply with quote

gavin wrote:
Okay, I might burn another CD and start again :?
I got some I/O errors on a few files while they were being un-tar'd


I had I/O erros at my bootstap once, i had to add "ide=nodma" at the initial prompt when Gentoo live cd boots up to solve it , then to boot my kernel after install i add the same to my kernel parameters in lilo.conf and i had no more problems like those.
_________________
Never Quit, Never Get Mad, Get Even
Back to top
View user's profile Send private message
baldeante
Guru
Guru


Joined: 17 Jan 2004
Posts: 498
Location: Caldas da Rainha, Portugal

PostPosted: Mon Jun 07, 2004 7:41 pm    Post subject: Reply with quote

gavin wrote:
heh - I think it was lack of disk space ;)
How large is the complete install for gentoo? I have had mandrake installed before on this machine with no issues.

Basically it's a P200 with quite an old bios which doesn't support large drives, I have to install the base onto a 1.7GB hard drive, and then sitting next to it is a huge 160gb one which will need to be detected by GRUB. Obviously I can't do that until I get this thing installed on the old 1.7 :?



i did one install in a small disk once but them i didn't had space for the grafical interface my advice is to reduce yout USE flags so that the boostap and emerge system add minimal packages.

Also add :

Code:

AUTOCLEAN="YES"


to your /etc/make.conf

This will remove package compilation files after a sucessfull compilation and there fore freeing space in your hard drive.
_________________
Never Quit, Never Get Mad, Get Even
Back to top
View user's profile Send private message
gavin
n00b
n00b


Joined: 05 Jun 2004
Posts: 27

PostPosted: Tue Jun 08, 2004 1:08 am    Post subject: Reply with quote

ok - thanks, but I'm not even up to the boot strapping yet, still trying to unpack the tarballs!

Should I use a stage 1 install then? Any other tips on getting a small install (this is going to be an internet and file server, so I definatly don't need any GUI's, openoffice, mozilla, etc pre-packaged). :(
Back to top
View user's profile Send private message
zoom
n00b
n00b


Joined: 26 Jan 2004
Posts: 46

PostPosted: Tue Jun 08, 2004 5:42 am    Post subject: Reply with quote

Gavin,
Since this is your first time and to ease the frustration try using the Stage3 tarball for the install. That way you can avoid alot of the more custom aspects of Gentoo. I'm using a Stage3 install on one of my servers and it works just great and was easy to setup as well. Stage3 really isn't that big either.
Back to top
View user's profile Send private message
gavin
n00b
n00b


Joined: 05 Jun 2004
Posts: 27

PostPosted: Tue Jun 08, 2004 8:15 am    Post subject: Reply with quote

yes, I am using the stage3 at the moment :)

hda3 should have around a gig of space free, surely that is enough? Just seem to be stuck on this step which should be very straight forward!
Back to top
View user's profile Send private message
toddrblade
n00b
n00b


Joined: 08 Jun 2004
Posts: 2
Location: phoenix

PostPosted: Tue Jun 08, 2004 12:18 pm    Post subject: Reply with quote

I don't think the problem is disk space or bad install disks.

I've had the same problem. I used a purchased copy of the i386 dual CD from Gentoo (this is about 2 months ago). I tried doing a Stage 3 install on a 20G drive. I followed instructions exactly, at least to my ability. No errors were encountered. At the step

chroot /mnt/gentoo /bin/bash

I got the same error: /bin/bash no such file or directory exists. But it does exist.

Repeated about 2 weeks later an 80G drive (so I wouldn't have to set up my 20G drive on RH9 again). I was even more careful, if possible, in following the instructions for surely I had done something wrong. Again I got no errors till the chroot step and got /bin/bash no such file or directory exists again.

The only thing I know of which I might be doing wrong is that I'm installing on a i686 machine (AMD Duron) using i386 Gentoo disks. I have an older i386 also on which I want to install Gentoo.

Any help or suggestions would be appreciated.

-Todd
Back to top
View user's profile Send private message
baldeante
Guru
Guru


Joined: 17 Jan 2004
Posts: 498
Location: Caldas da Rainha, Portugal

PostPosted: Tue Jun 08, 2004 12:21 pm    Post subject: Reply with quote

gavin wrote:
yes, I am using the stage3 at the moment :)

hda3 should have around a gig of space free, surely that is enough? Just seem to be stuck on this step which should be very straight forward!



Maybe stage 3 is your problem in stage 3 you copy all distfiles from the cd in to the harddrive if you folow the indications, there for to install and compile them you will have 1 GB less the distfiles you copy to unpack and compile the packges so you may not have all the space you need to install.
_________________
Never Quit, Never Get Mad, Get Even
Back to top
View user's profile Send private message
servant
n00b
n00b


Joined: 03 Jun 2004
Posts: 17

PostPosted: Tue Jun 08, 2004 12:45 pm    Post subject: Reply with quote

i've had some unpacking problems as well. i think it was with the stage3 tarball.

the problem was that i was unpacking them into the wrong directory. make sure you are in the proper /mnt/gentoo directory, before unpacking nething.

to be sure use cd to /mnt/gentoo and ls.

u should have 3 folders. boot; lost&found; proc.
Back to top
View user's profile Send private message
gavin
n00b
n00b


Joined: 05 Jun 2004
Posts: 27

PostPosted: Tue Jun 08, 2004 12:59 pm    Post subject: Reply with quote

servant wrote:
to be sure use cd to /mnt/gentoo and ls.

u should have 3 folders. boot; lost&found; proc.


Yes, those 3 folders are there, and I am definatly in the right directory :\
Back to top
View user's profile Send private message
servant
n00b
n00b


Joined: 03 Jun 2004
Posts: 17

PostPosted: Tue Jun 08, 2004 2:14 pm    Post subject: Reply with quote

have u mounted all your partitions? i'm assuming so but just in case. also, everytime you reboot, if say ur machine hangs, or aliens invade your house, u must remount the partitions.
Back to top
View user's profile Send private message
toddrblade
n00b
n00b


Joined: 08 Jun 2004
Posts: 2
Location: phoenix

PostPosted: Tue Jun 08, 2004 2:28 pm    Post subject: Reply with quote

Shouldn't the chroot command be:
chroot /mnt/gentoo/bin/bash
rather than
chroot /mnt/gentoo /bin/bash ?

As I read the man page chroot has the form
chroot NewDirectory Command
This changes "/" to be NewDirectory and optionally executes Command.
It does not have the form
chroot directory1 directory2

If this is correct then the problem may be
1) the real command is chroot /mnt/gentoo/bin/bash and
2) /mnt/gentoo/bin/bash has to exist.

The statement
chroot /mnt/gentoo /bin/bash
would chroot to /mnt/gentoo and then try to execute /bin/bash which is a command (file or directory) that does not exist.

Am I out to lunch on this?

-Todd
Back to top
View user's profile Send private message
az_zel
n00b
n00b


Joined: 12 May 2004
Posts: 69

PostPosted: Tue Jun 08, 2004 2:39 pm    Post subject: Reply with quote

There is supposed to be a space betweehn gentoo and /, so the correct code is:

Code:

chroot /mnt/gentoo  /bin/bash


I had the same problem and it was just a case of not having unpacked my tarball (I had a Stage 1 tarball). The problem is that you are probably not finding the /mnt/gentoo/bin/bash command.
Back to top
View user's profile Send private message
Red_Weasel
n00b
n00b


Joined: 11 Jun 2003
Posts: 35
Location: Portland, OR

PostPosted: Tue Jun 08, 2004 2:42 pm    Post subject: Reply with quote

I seem to recall having this error. Be sure that you are in a directory that is r/w by root. I seem to remember that this will not really work if you are in /proc, /dev, and the like. Try this set of commands and replace with your known partitions:

Code:

swapon /dev/hda2
mount /dev/hda3 /mnt/gentoo
mount /dev/hda1 /mnt/gentoo/boot
mount -o bind /proc /mnt/gentoo/proc
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
cd /
chroot /mnt/gentoo /bin/bash


You might also try doing a `file /bin/bash` and make sure it comes back with something similar to "ELF 32-bit LSB executible".
Back to top
View user's profile Send private message
gavin
n00b
n00b


Joined: 05 Jun 2004
Posts: 27

PostPosted: Tue Jun 08, 2004 4:02 pm    Post subject: Reply with quote

thanks for the help! :)

I realised I could mount my 160gb hard drive using /dev/hdb :oops:
So I've done that, created a 5gb partition for the main files, and they copied accross fine. The chroot appeared to work as well. :)

Now for the next step heh ;)
Back to top
View user's profile Send private message
gavin
n00b
n00b


Joined: 05 Jun 2004
Posts: 27

PostPosted: Tue Jun 08, 2004 4:49 pm    Post subject: Reply with quote

okay next question (Sorry!).

I copied all the files correctly (no errors) from the stage3-x86 package, and the portage tarball.

Following the manual exactly, the portage files all seemed to be located in /usr/snapshots/ :? rather than /usr/portage as the manual uses later on.

And the /usr/src/ directory is empty?
Back to top
View user's profile Send private message
baldeante
Guru
Guru


Joined: 17 Jan 2004
Posts: 498
Location: Caldas da Rainha, Portugal

PostPosted: Tue Jun 08, 2004 7:42 pm    Post subject: Reply with quote

gavin wrote:
okay next question (Sorry!).

I copied all the files correctly (no errors) from the stage3-x86 package, and the portage tarball.

Following the manual exactly, the portage files all seemed to be located in /usr/snapshots/ :? rather than /usr/portage as the manual uses later on.

And the /usr/src/ directory is empty?


Should be a portage directory on /usr like this /usr/portage

Did you use the command :

Code:

tar -xvjf /mnt/cdrom/snapshots/portage-xxxxxxxx.tar.bz2 -C /mnt/gentoo/usr


Note that -C is capital "C" not "c"

You can see it on this link :

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=5#doc_chap4
_________________
Never Quit, Never Get Mad, Get Even
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