public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] newbie install - emerge: command not found
Date: Wed, 24 Aug 2005 12:00:59 +0100	[thread overview]
Message-ID: <20050824120059.7260671b@hactar.digimed.co.uk> (raw)
In-Reply-To: <430C3080.4070606@joli-ciel.com>

[-- 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 --]

  parent reply	other threads:[~2005-08-24 11:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050824120059.7260671b@hactar.digimed.co.uk \
    --to=neil@digimed.co.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox