Article View: uk.comp.os.linux
Article #53Re: root filesystem v. different directories
From: Roger Leigh
Date: Tue, 26 Dec 2000 19:07
Date: Tue, 26 Dec 2000 19:07
55 lines
3817 bytes
3817 bytes
On Tue, 26 Dec 2000 09:26:51 +0800, Jacko <jacko@fastnet.co.uk> wrote: >Hi, > >I have built a new Debian2.2 for my personal website. I am the only >local user and I can use the whole 9G hard disk. It will run DNS, >Apache, qmail and mySQL only. > >When I install the Debian, I created the root filesystem only: >/boot 100MB >/ 8GB >Swap 128MB x 8 (cuz, I've got 4 x 128MB physical memory) > >After I read the "The Linux System Administrators' Guide", it suggest us >to add the following filesystems /bin, /lib, /etc, /dev, /home etc� I would keep /bin, /lib and /etc as part of the root filesystem, as they are all needed before any other filesystems are mounted. The same applies to others e.g. /dev. >My question is... > >Why the book suggests different filesystems instead of one root >filesystem"/"? (It looks easier to handle one root filesystem?!) >Which method is works better? It's all a matter of personal preference. I have /dev/hda3 none swap sw 0 0 /dev/hda5 / ext2 defaults,errors=remount-ro 0 1 proc /proc proc defaults 0 0 none /dev/pts devpts gid=5,mode=620,noauto 0 0 /dev/hda6 /var ext2 defaults,grpquota 0 2 /dev/hda7 /home ext2 defaults,usrquota,grpquota 0 2 /dev/hda8 /usr ext2 defaults 0 2 /dev/hda4 /var/tmp ext2 defaults 0 2 /dev/hda1 /mnt/windows vfat defaults,ro 0 0 I would also like to have a /tmp partition, but using something like Solaris tmpfs (uses VM) if such a beast has been written for Linux. /usr/local and /var/cvs would also be possibilities in the future, if my CVS repositories get too big, or if I install a lot of software I compile myself (but this would only be for big stuff, like X, as I make Debian packages out of everything else, if one does not exist, so most stuff goes under /usr). An advantage of partitions is splitting stuff up into functional units, and a big bonus is that you can specify different user and group quotas for each different partition. Basically, its up to you. HTH and Happy Christmas!, Roger -- Roger Leigh ** Registration Number: 151826, http://counter.li.org ** Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/ For GPG Public Key: finger rl117@tower.york.ac.uk or see public keyservers.
Technical Details
Message-ID:
<slrn94hr30.j0s.rl117@whinlatter.uklinux.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.infoave.net!HSNX.atgi.net!headwall.stanford.edu!newsfeed.esat.net!news.heanet.ie!server5.netnews.ja.net!news.york.ac.uk!rl117References:
<3A47F3DB.B676BA34@fastnet.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 102983,f2c26602154df4c2 X-Google-Attributes: gid102983,public X-Google-Thread: faa64,f2c26602154df4c2 X-Google-Attributes: gidfaa64,public X-Google-Thread: 10d8ad,f2c26602154df4c2 X-Google-Attributes: gid10d8ad,public X-Google-ArrivalTime: 2000-12-27 16:21:24 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.infoave.net!HSNX.atgi.net!headwall.stanford.edu!newsfeed.esat.net!news.heanet.ie!server5.netnews.ja.net!news.york.ac.uk!rl117 From: rl117@york.ac.uk (Roger Leigh) Newsgroups: uk.comp.os.linux,aus.computers.linux,alt.os.linux Subject: Re: root filesystem v. different directories Date: Tue, 26 Dec 2000 19:07:12 +0000 Organization: The University of York, UK Lines: 55 Sender: rl117@york.ac.uk Message-ID: <slrn94hr30.j0s.rl117@whinlatter.uklinux.net> References: <3A47F3DB.B676BA34@fastnet.co.uk> Reply-To: rl117@york.ac.uk NNTP-Posting-Host: ppp-2-44.cvx2.telinco.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: pump1.york.ac.uk 977962813 29036 212.1.141.44 (28 Dec 2000 00:20:13 GMT) X-Complaints-To: abuse@york.ac.uk NNTP-Posting-Date: 28 Dec 2000 00:20:13 GMT User-Agent: slrn/0.9.6.2 (Linux)