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

Reply via email to