public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] newbie install - emerge: command not found
@ 2005-08-23 14:30 Assaf Urieli
  2005-08-23 14:55 ` Nagatoro
  2005-08-23 15:12 ` Holly Bostick
  0 siblings, 2 replies; 14+ messages in thread
From: Assaf Urieli @ 2005-08-23 14:30 UTC (permalink / raw
  To: gentoo-user

Hi all,

I've followed the installation instructions at:
http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml

I've manually configured the kernel.
Since I have an ATI graphics card, I used the configuration parameters
as per:
http://gentoo-wiki.com/HOWTO_ATI_Drivers
All other kernel configuration parameters were left at the default (I
think).

I decided to use GRUB. My grub.conf looks like this:
**********
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.12-r6
root (hd0,0)
kernel /kernel-2.6.12-gentoo-r6 root=/dev/hda3
**********

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).

So, I went back to the installation CD, chrooted back into my
installation environment, and did "emerge portage".
The emerge portage claimed to work, but when I rebooted again without
the CD, I still get the same message.
(PS the adduser command described in the installation docs,
http://www.gentoo.org/doc/en/handbook/2005.1/handbook-x86.xml?part=1&chap=11
is missing as well)

Have I missed a step?

Best regards,
-----------------------------------
Assaf Urieli
Joliciel Informatique
http://www.joli-ciel.com

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-23 14:30 [gentoo-user] newbie install - emerge: command not found Assaf Urieli
@ 2005-08-23 14:55 ` Nagatoro
  2005-08-23 15:52   ` Assaf Urieli
  2005-08-23 15:12 ` Holly Bostick
  1 sibling, 1 reply; 14+ messages in thread
From: Nagatoro @ 2005-08-23 14:55 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-23 14:30 [gentoo-user] newbie install - emerge: command not found Assaf Urieli
  2005-08-23 14:55 ` Nagatoro
@ 2005-08-23 15:12 ` Holly Bostick
  2005-08-23 15:49   ` Assaf Urieli
  1 sibling, 1 reply; 14+ messages in thread
From: Holly Bostick @ 2005-08-23 15:12 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-23 15:12 ` Holly Bostick
@ 2005-08-23 15:49   ` Assaf Urieli
  2005-08-23 16:10     ` Ben Munat
  0 siblings, 1 reply; 14+ messages in thread
From: Assaf Urieli @ 2005-08-23 15:49 UTC (permalink / raw
  To: gentoo-user

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.

>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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-23 14:55 ` Nagatoro
@ 2005-08-23 15:52   ` Assaf Urieli
  2005-08-23 16:19     ` Neil Bothwick
  2005-08-23 16:38     ` Jason Cooper
  0 siblings, 2 replies; 14+ messages in thread
From: Assaf Urieli @ 2005-08-23 15:52 UTC (permalink / raw
  To: gentoo-user


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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-23 15:49   ` Assaf Urieli
@ 2005-08-23 16:10     ` Ben Munat
  2005-08-23 16:25       ` Assaf Urieli
  0 siblings, 1 reply; 14+ messages in thread
From: Ben Munat @ 2005-08-23 16:10 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-23 15:52   ` Assaf Urieli
@ 2005-08-23 16:19     ` Neil Bothwick
  2005-08-24  8:32       ` Assaf Urieli
  2005-08-23 16:38     ` Jason Cooper
  1 sibling, 1 reply; 14+ messages in thread
From: Neil Bothwick @ 2005-08-23 16:19 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

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.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-23 16:10     ` Ben Munat
@ 2005-08-23 16:25       ` Assaf Urieli
  2005-08-23 17:41         ` Willie Wong
  0 siblings, 1 reply; 14+ messages in thread
From: Assaf Urieli @ 2005-08-23 16:25 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-23 15:52   ` Assaf Urieli
  2005-08-23 16:19     ` Neil Bothwick
@ 2005-08-23 16:38     ` Jason Cooper
  1 sibling, 0 replies; 14+ messages in thread
From: Jason Cooper @ 2005-08-23 16:38 UTC (permalink / raw
  To: gentoo-user

Assaf Urieli (assaf@joli-ciel.com) 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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-23 16:25       ` Assaf Urieli
@ 2005-08-23 17:41         ` Willie Wong
  0 siblings, 0 replies; 14+ messages in thread
From: Willie Wong @ 2005-08-23 17:41 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-23 16:19     ` Neil Bothwick
@ 2005-08-24  8:32       ` Assaf Urieli
  2005-08-24  8:59         ` Frank Schafer
  2005-08-24 11:00         ` Neil Bothwick
  0 siblings, 2 replies; 14+ messages in thread
From: Assaf Urieli @ 2005-08-24  8:32 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-24  8:32       ` Assaf Urieli
@ 2005-08-24  8:59         ` Frank Schafer
  2005-08-24 10:56           ` Michael Kintzios
  2005-08-24 11:00         ` Neil Bothwick
  1 sibling, 1 reply; 14+ messages in thread
From: Frank Schafer @ 2005-08-24  8:59 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [gentoo-user] newbie install - emerge: command not found
  2005-08-24  8:59         ` Frank Schafer
@ 2005-08-24 10:56           ` Michael Kintzios
  0 siblings, 0 replies; 14+ messages in thread
From: Michael Kintzios @ 2005-08-24 10:56 UTC (permalink / raw
  To: gentoo-user

> -----Original Message-----
> From: Frank Schafer [mailto:frank.schafer@t-systems.cz] 
> 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



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] newbie install - emerge: command not found
  2005-08-24  8:32       ` Assaf Urieli
  2005-08-24  8:59         ` Frank Schafer
@ 2005-08-24 11:00         ` Neil Bothwick
  1 sibling, 0 replies; 14+ messages in thread
From: Neil Bothwick @ 2005-08-24 11:00 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1856 bytes --]

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.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-08-24 11:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-23 14:30 [gentoo-user] newbie install - emerge: command not found Assaf Urieli
2005-08-23 14:55 ` Nagatoro
2005-08-23 15:52   ` Assaf Urieli
2005-08-23 16:19     ` Neil Bothwick
2005-08-24  8:32       ` Assaf Urieli
2005-08-24  8:59         ` Frank Schafer
2005-08-24 10:56           ` Michael Kintzios
2005-08-24 11:00         ` Neil Bothwick
2005-08-23 16:38     ` Jason Cooper
2005-08-23 15:12 ` Holly Bostick
2005-08-23 15:49   ` Assaf Urieli
2005-08-23 16:10     ` Ben Munat
2005-08-23 16:25       ` Assaf Urieli
2005-08-23 17:41         ` Willie Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox