All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Smith <sos22@cam.ac.uk>
To: Abhijit Vijay <abhijit_v@yahoo.com>
Cc: linux-newbie <linux-newbie@vger.kernel.org>
Subject: Re: Linux Mount Partitions
Date: Fri, 25 Oct 2002 15:12:07 +0100	[thread overview]
Message-ID: <20021025141207.GA382@cam.ac.uk> (raw)
In-Reply-To: <20021025130434.49227.qmail@web13402.mail.yahoo.com>

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

> You have the kernel image which is located
> at /boot (?)
By convention, the partition which contains the kernel image
is mounted on /boot.  The kernel image itself is just an
ordinary file in that partition.

> But why is it that /dev/cdrom is mounted by default on
> /mnt/cdrom? Why not reduce confusion and mount it on
> /dev/cdrom itself?
/dev/cdrom and /mnt/cdrom provide different interfaces to similar,
but not identical, information.  The device file, which will usually
be /dev/cdrom, is intended for low-level access to the CD itself,
with very little translation (e.g. read 10 sectors starting from
sector 5000), whereas /mnt/cdrom provides a nice view of the files
on the CD.

While it would be possible, in principle, to mount the CD drve
on /dev/cdrom and call the device file something else, any program
which doesn't treat CD as filesystems (like, say, a player for
music CDs) would probably stop working.

> Also, what are the other partitions
> that are mounted by default and their default
> locations?
Have a look in /etc/fstab and ``man fstab''.

Various filesystems are mounted by convention automatically.  These
are virtual, and so don't need a backing partition (the kernel makes
the files up when needed).

The only one you really need is /proc, type proc, which contains
various kernel parameters and information on running processes.  If
you don't have this, ps, top, uptime, and plenty of other programs
stop working.

A filesystem of type shm is also usually mounted on later kernels.
For various arcane reasons, it doesn't actually matter where this
one gets mounted, but /var/shm is common.  A few programs assume
that such a filesystem is mounted somewhere, but very few (the only
one which I can immediately think of is cdrecord).

Depending on the distribution, you may also need to mount devfs
on /dev.  This provides a slightly nicer way of translating
between user-accessible device names (e.g. /dev/cdrom) and the
kernel's internal representations, but isn't really necessary.
If you have it, leave it alone, and if you don't, don't bother
setting it up.

Some programs perform better if a tmpfs filesystem is mounted
on /tmp.  Files created on a tmpfs filesystem are only ever stored
in memory, rather than on disk, so should be far faster.  On the
other hand, they get zapped if you reboot.  Unlike the previous three,
tmpfs can be ignored and, in theory, nothing will actually break,
just run a little slower.

Steven Smith,
sos22@cam.ac.uk.

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

      parent reply	other threads:[~2002-10-25 14:12 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <MSGID_110=3a10=2f1.2_8d16c3d8@linuxnet>
2002-10-22 13:25 ` CD-ROM settings and hardware resources Robert Couture
2002-10-22 19:45   ` Bryan Simmons
2002-10-23 15:49     ` pa3gcu
2002-10-23 19:20       ` Bryan Simmons
2002-10-23 19:34         ` Ray Olszewski
2002-10-23 20:36         ` pa3gcu
2002-10-23 21:51           ` Bryan Simmons
2002-10-24  6:40             ` pa3gcu
2002-10-24 10:35               ` Bryan Simmons
2002-10-24 14:04                 ` pa3gcu
2002-10-24  7:01             ` Ray Olszewski
2002-10-24 10:40               ` Bryan Simmons
     [not found]           ` <1035409609.31016.29.camel@localhost.localdomain>
2002-10-24  6:35             ` pa3gcu
2002-10-24 16:04               ` jbradford
2002-10-24 16:10                 ` Ray Olszewski
2002-10-24 11:11           ` jbradford
2002-10-24 13:24             ` Bryan Simmons
2002-10-25  8:42               ` Jude DaShiell
2002-10-25 10:00                 ` Bryan Simmons
2002-10-25 10:06                   ` Bryan Simmons
2002-10-25 13:04                 ` Linux Mount Partitions Abhijit Vijay
2002-10-25 13:32                   ` Paul Furness
2002-10-25 14:12                   ` Steven Smith [this message]

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=20021025141207.GA382@cam.ac.uk \
    --to=sos22@cam.ac.uk \
    --cc=abhijit_v@yahoo.com \
    --cc=linux-newbie@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.