Re: [gentoo-user] newbie install - emerge: command not found

2005-08-24 Thread Assaf Urieli
Neil Bothwick wrote:

On Tue, 23 Aug 2005 17:52:22 +0200, Assaf Urieli wrote:
  

BTW, /usr/bin doesn't even exist - all /usr contains is lost+found


Do you have a separate partition for /usr? If so, is it mounted?

What you describe is a classic symptom of installing /usr on its own
partition and forgetting to add it to /etc/fstab.
  

Oy vey, that was it! I knew I must be doing something stupid.
Feeling adventurous, I decided to create a 4th partition and mount /usr
onto it in my /etc/fstab, but on the other hand I didn't mount it while
installing gentoo (I thought somehow the fstab would be enough)...
So everything got installed on the root partition.
I corrected the problem by changing my /etc/fstab to mount /dev/hda4
somewhere else, and now when I reboot my /usr/bin directory contains
everything that was installed on it.

So, just a couple of questions to get things organised in my brain:
If I wanted to mount the /usr partition while installing, would this
have been the right command? Would I have to make the directory first?
# mount -t ext3 /dev/hda4 /mnt/gentoo/usr

In fact, I'm not even quite sure that I understand the whole concept of
mounting...
When I type:
# mount -t ext3 /dev/hda3 /mnt/gentoo
Does the /mnt/gentoo directory already exist somewhere? If it didn't, I
imagine this statement would throw an error. But where can it exist if
it isn't yet associated with any partition (i.e. /dev/hda3)?
# mkdir /mnt/gentoo/boot
Where am I making this directory? I would assume this statement creates
the directory on /dev/hda3. But then, in the next statement, I'm
associating it with /dev/hda4!
# mount /dev/hda1 /mnt/gentoo/boot

Another question:
Now that I've got an unused /dev/hda4 partition, what should I mount on
it? I can't mount /usr onto it cause /usr already exists on the root
partition  is full of stuff. Can I just invent any old name for
mounting (like say, /home), and then use it for storing data?

Sorry for the naive questions, but I'm trying to get my head around some
of these concepts...

Best regards,
Assaf


  

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] newbie install - emerge: command not found

2005-08-24 Thread Frank Schafer
On Wed, 2005-08-24 at 10:32 +0200, Assaf Urieli wrote:
 Neil Bothwick wrote:
 
 On Tue, 23 Aug 2005 17:52:22 +0200, Assaf Urieli wrote:
   
 
 BTW, /usr/bin doesn't even exist - all /usr contains is lost+found
 
 
 Do you have a separate partition for /usr? If so, is it mounted?
 
 What you describe is a classic symptom of installing /usr on its own
 partition and forgetting to add it to /etc/fstab.
   
 
 Oy vey, that was it! I knew I must be doing something stupid.
 Feeling adventurous, I decided to create a 4th partition and mount /usr
 onto it in my /etc/fstab, but on the other hand I didn't mount it while
 installing gentoo (I thought somehow the fstab would be enough)...
 So everything got installed on the root partition.
 I corrected the problem by changing my /etc/fstab to mount /dev/hda4
 somewhere else, and now when I reboot my /usr/bin directory contains
 everything that was installed on it.
 
 So, just a couple of questions to get things organised in my brain:
 If I wanted to mount the /usr partition while installing, would this
 have been the right command? Would I have to make the directory first?
 # mount -t ext3 /dev/hda4 /mnt/gentoo/usr

Former: yes, latter: yes

 
 In fact, I'm not even quite sure that I understand the whole concept of
 mounting...
 When I type:
 # mount -t ext3 /dev/hda3 /mnt/gentoo
 Does the /mnt/gentoo directory already exist somewhere? If it didn't, I
 imagine this statement would throw an error. But where can it exist if
 it isn't yet associated with any partition (i.e. /dev/hda3)?

First: it has to exist
Second: you imagine right
Third: A bolt hole can exist without a bolt in it, can't it?

 # mkdir /mnt/gentoo/boot
 Where am I making this directory? I would assume this statement creates
 the directory on /dev/hda3. But then, in the next statement, I'm

yes

 associating it with /dev/hda4!

right

/mnt/
   |
   +- gentoo/  this is a mountpoint (bolt hole) on /dev/hda3
#mount /dev/hda4 /mnt/gentoo  (here's the bolt)
|
+ usr/  this is a normal directory
|
+ boot/  further bolt hole
 # mount /dev/hda1 /mnt/gentoo/boot
(with bolt from here on)

Well, every normal directory can act as a bolt hole. If it contains
something when you screw the bolt in (mount something) the content of
the directory will be hidden (that's why the commands weren't found).

 
 Another question:
 Now that I've got an unused /dev/hda4 partition, what should I mount on
 it? I can't mount /usr onto it cause /usr already exists on the root
 partition  is full of stuff. Can I just invent any old name for
 mounting (like say, /home), and then use it for storing data?

yes

 
 Sorry for the naive questions, but I'm trying to get my head around some
 of these concepts...

Don't worry, we all began some (ancient ;) time ago.

 
 Best regards,
 Assaf
 
 
   
 

Regards
Frank
-- 
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] newbie install - emerge: command not found

2005-08-24 Thread Michael Kintzios
 -Original Message-
 From: Frank Schafer [mailto:[EMAIL PROTECTED] 
 Sent: 24 August 2005 09:59
 To: gentoo-user@lists.gentoo.org
 Subject: Re: [gentoo-user] newbie install - emerge: command not found
 
 
 On Wed, 2005-08-24 at 10:32 +0200, Assaf Urieli wrote:
  Neil Bothwick wrote:
  
  On Tue, 23 Aug 2005 17:52:22 +0200, Assaf Urieli wrote:

  
  In fact, I'm not even quite sure that I understand the 
  whole concept of
  mounting...
  When I type:
  # mount -t ext3 /dev/hda3 /mnt/gentoo
  Does the /mnt/gentoo directory already exist somewhere? If 
  it didn't, I
  imagine this statement would throw an error. But where can 
  it exist if
  it isn't yet associated with any partition (i.e. /dev/hda3)?
 
 First: it has to exist
 Second: you imagine right
 Third: A bolt hole can exist without a bolt in it, can't it?

Perhaps it would help if you for a minute try to break the assumed and
transparent (from a M$Windoze user perspective) linkage between
filesystem components (e.g. a directory like /mnt/gentoo) and device
components (e.g. a partition like /dev/hda3).  The physical device which
contains actual data will only be connected to the software entity of a
directory, after it is mounted (linked) to it by means of # mount
device path.  After that linkage (mounting) is established your OS
can access and read the data stored on that device.

 
  # mkdir /mnt/gentoo/boot
  Where am I making this directory? I would assume this 
  statement creates the directory on /dev/hda3. 

Not as you understand it:  directories are software entities, /dev/hda3
is a physical device (hardware).  In other words, you are creating a
subdirectory within your /mnt/gentoo directory - a software path in your
filesystem.  As long as your /mnt/gentoo directory has been linked to
the physical device of /dev/hda3 then this
directory/subdirectory/.../files structure and its contents will be
stored (saved) in the mounted /dev/hda3.

  But then, in the next statement, I'm 
  associating it with /dev/hda4!

OK, if you were to mount your /dev/hda4 to your /mnt/gentoo/usr then any
relevant data produced thereafter will no longer be stored on the
previously mounted device (/dev/hda3), but on the newly mounted
/dev/hda4.

I hope this helps.
-- 
Regards,
Mick

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] newbie install - emerge: command not found

2005-08-24 Thread Neil Bothwick
On Wed, 24 Aug 2005 10:32:00 +0200, Assaf Urieli wrote:

 In fact, I'm not even quite sure that I understand the whole concept of
 mounting...
 When I type:
 # mount -t ext3 /dev/hda3 /mnt/gentoo
 Does the /mnt/gentoo directory already exist somewhere? If it didn't, I
 imagine this statement would throw an error. But where can it exist if
 it isn't yet associated with any partition (i.e. /dev/hda3)?

It must exist, and it exists as a normal directory within /mnt.

 # mkdir /mnt/gentoo/boot
 Where am I making this directory? I would assume this statement creates
 the directory on /dev/hda3. But then, in the next statement, I'm
 associating it with /dev/hda4!

You are creating it in whatever filesystem contains /mnt/gentoo. At this
point, it is simply an empty directory in that filesystem. Only when you
mount it does it have any content.

Actually, a mount point can have content of its own, which becomes
invisible when another filesystem is mounted on it. For
example, in Gentoo /mnt/cdrom normally contains a single file
called .keep, which you no longer see when you mount a CD, you see the
contents of that disc instead. When you unmount the CD, the underlying
directory becomes visible again and you can see .keep.

 Now that I've got an unused /dev/hda4 partition, what should I mount on
 it? I can't mount /usr onto it cause /usr already exists on the root
 partition  is full of stuff. Can I just invent any old name for
 mounting (like say, /home), and then use it for storing data?

Yes, and you could also mount /usr on it. 

mkdir /mnt/tmp
mount /dev/hda4 /mnt/tmp
rsync -a /usr/ /mnt/tmp/
umount /mnt/tmp
mount /dev/hda4 /usr
mount --bind / /mnt/tmp
rm -fr /mnt/tmp/usr/*
umount /mnt/tmp


-- 
Neil Bothwick

Due to inflation, all clouds will now be lined with zinc.


pgpMfstaydkxJ.pgp
Description: PGP signature


Re: [gentoo-user] newbie install - emerge: command not found

2005-08-23 Thread Nagatoro

Assaf Urieli wrote:


But when I try to run the emerge command, I get:
emerge: command not found (no surprise, it's not in /bin).


[2000] $ whereis emerge
emerge: /usr/bin/emerge /usr/X11R6/bin/emerge /usr/bin/X11/emerge 
/usr/man/man1/emerge.1.gz /usr/share/man/man1/emerge.1.gz


At least here it should be in /usr/bin, might it be a $PATH problem?
--
Naga
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] newbie install - emerge: command not found

2005-08-23 Thread Holly Bostick
Assaf Urieli schreef:
 Hi all,
snip
 So, when I restart, everything looks allright. Grub asks me to choose
 Gentoo Linux 2.6.12-r6, which I do. I can then login fine.
 But when I try to run the emerge command, I get:
 emerge: command not found (no surprise, it's not in /bin).
 
 Have I missed a step?

Are you trying to run emerge as a user? It can only be run as root
('command not found' often indicates that, assuming that the application
is installed, which in this case we know it is. The command cannot be
found in the user's $PATH-- because and so that the user cannot use it--
but in root's $PATH).

So if you missed a step, it was the step of su-ing to root before trying
to run emerge.

HTH,
Holly
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] newbie install - emerge: command not found

2005-08-23 Thread Assaf Urieli

Nagatoro wrote:

 Assaf Urieli wrote:

 But when I try to run the emerge command, I get:
 emerge: command not found (no surprise, it's not in /bin).


 [2000] $ whereis emerge
 emerge: /usr/bin/emerge /usr/X11R6/bin/emerge /usr/bin/X11/emerge
 /usr/man/man1/emerge.1.gz /usr/share/man/man1/emerge.1.gz

 At least here it should be in /usr/bin, might it be a $PATH problem?

There is no whereis or find command either.
I'm logging in as root, so I should have access to everything (couldn't
adduser anyway).
BTW, /usr/bin doesn't even exist - all /usr contains is lost+found

Best regards,
Assaf
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] newbie install - emerge: command not found

2005-08-23 Thread Ben Munat

Assaf Urieli wrote:

Holly Bostick wrote:



So, when I restart, everything looks allright. Grub asks me to choose
Gentoo Linux 2.6.12-r6, which I do. I can then login fine.
But when I try to run the emerge command, I get:
emerge: command not found (no surprise, it's not in /bin).

Have I missed a step?
  



Are you trying to run emerge as a user? It can only be run as root
('command not found' often indicates that, assuming that the application
is installed, which in this case we know it is. The command cannot be
found in the user's $PATH-- because and so that the user cannot use it--
but in root's $PATH).




Nope, I tried to create a user, but the adduser command couldn't be
found either. Neither can the find and whereis commands.



Apologies if this is completely obvious, but you did say newbie... :-)

After you select Gentoo Linux 2.6.12-r6 do you see a lengthy boot process or do you get 
a command line instantly?


It occured to me that you could somehow be getting to the grub command line, which has 
about a dozen commands... definitely no emerge, adduser, etc.


Ben

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] newbie install - emerge: command not found

2005-08-23 Thread Neil Bothwick
On Tue, 23 Aug 2005 17:52:22 +0200, Assaf Urieli wrote:

 BTW, /usr/bin doesn't even exist - all /usr contains is lost+found

Do you have a separate partition for /usr? If so, is it mounted?

What you describe is a classic symptom of installing /usr on its own
partition and forgetting to add it to /etc/fstab.


-- 
Neil Bothwick

8088 = model T Ford. Pentium = supercharged 400 horsepower model T Ford.


pgpA7oOP9Zhjr.pgp
Description: PGP signature


Re: [gentoo-user] newbie install - emerge: command not found

2005-08-23 Thread Assaf Urieli
Ben Munat wrote:

 Assaf Urieli wrote:

 Holly Bostick wrote:

 So, when I restart, everything looks allright. Grub asks me to choose
 Gentoo Linux 2.6.12-r6, which I do. I can then login fine.
 But when I try to run the emerge command, I get:
 emerge: command not found (no surprise, it's not in /bin).

 Are you trying to run emerge as a user? It can only be run as root
 ('command not found' often indicates that, assuming that the
 application
 is installed, which in this case we know it is. The command cannot be
 found in the user's $PATH-- because and so that the user cannot use
 it--
 but in root's $PATH).

 Nope, I tried to create a user, but the adduser command couldn't be
 found either. Neither can the find and whereis commands.

 Apologies if this is completely obvious, but you did say newbie... :-)

 After you select Gentoo Linux 2.6.12-r6 do you see a lengthy boot
 process or do you get a command line instantly?

 It occured to me that you could somehow be getting to the grub command
 line, which has about a dozen commands... definitely no emerge,
 adduser, etc.

Please don't apologise and do point out anything you think could be
useful! I am a complete newbie to the whole Linux world - been trying to
get this install working afterhours for over a week now.

To answer your question, there is a lengthy boot process after selecting
the OS. It seems to be doing what it's supposed to (apart from a couple
of warnings).
What's more, other things I emerged while working chrooted from the
install CD are available  working (e.g. dhcpcd).

Is there anything (config file, directory listing, ???) I could post
here to help the troubleshooting?

- Assaf


 Ben

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] newbie install - emerge: command not found

2005-08-23 Thread Jason Cooper
Assaf Urieli ([EMAIL PROTECTED]) scribbled:
 Nagatoro wrote:
  Assaf Urieli wrote:
  But when I try to run the emerge command, I get:
  emerge: command not found (no surprise, it's not in /bin).
 
  [2000] $ whereis emerge
  emerge: /usr/bin/emerge /usr/X11R6/bin/emerge /usr/bin/X11/emerge
  /usr/man/man1/emerge.1.gz /usr/share/man/man1/emerge.1.gz
 
  At least here it should be in /usr/bin, might it be a $PATH problem?
 
 There is no whereis or find command either.
 I'm logging in as root, so I should have access to everything (couldn't
 adduser anyway).
 BTW, /usr/bin doesn't even exist - all /usr contains is lost+found

did you try to set up /usr/bin as a separate partition?  if so, was it
mounted properly during install? And, is it mounted properly now?

cooper.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] newbie install - emerge: command not found

2005-08-23 Thread Willie Wong
On Tue, Aug 23, 2005 at 06:25:10PM +0200, Assaf Urieli wrote:
  Apologies if this is completely obvious, but you did say newbie... :-)
 
  After you select Gentoo Linux 2.6.12-r6 do you see a lengthy boot
  process or do you get a command line instantly?
 
  It occured to me that you could somehow be getting to the grub command
  line, which has about a dozen commands... definitely no emerge,
  adduser, etc.
 
 Please don't apologise and do point out anything you think could be
 useful! I am a complete newbie to the whole Linux world - been trying to
 get this install working afterhours for over a week now.
 
 To answer your question, there is a lengthy boot process after selecting
 the OS. It seems to be doing what it's supposed to (apart from a couple
 of warnings).
 What's more, other things I emerged while working chrooted from the
 install CD are available  working (e.g. dhcpcd).
 
 Is there anything (config file, directory listing, ???) I could post
 here to help the troubleshooting?

Post the results of the following 4 from the commandline

  mount
  cat /etc/fstab
  fdisk -l /dev/hda
  echo $PATH

W
-- 
Ford grabbed him by the lapels of his dressing gown and 
spoke to him as slowly and distinctly and patiently as if 
he were somebody from a telephone company accounts 
department. 

- Ford trying to rectify that situation. 
Sortir en Pantoufles: up 11 days, 20:42
-- 
gentoo-user@gentoo.org mailing list