LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2005, 06:05 PM   #1
rajames429
LQ Newbie
 
Registered: Apr 2005
Location: Virginia
Posts: 3

Rep: Reputation: 0
HDD Partition Scheme


I have a PC on which I want to Install Linux (Fedora ??) as a file server and I would like some advice on how to partition my hard disk drives. This would be a stand alone Linux system. (no dual boot).

This PC has two 80 GB HDDs.

I have searched numerous websites for advice and most seem focused on partitioning in order to coexist with another OS, or to fit in as small a space as possible.

As I recall, from my days past in a Linux Users Group, there were some limitations on the sizes of certain partitions, and also that if you separated certain partitions from others, then backup/recovery would be much more efficient??

It seems from all that I have read, that /boot and /root should go on hda,
and that /swap and /user and /home should go on hdb.

Also, possibly putting /var on hdb, but this is why I would like some advice.

Do any of these partitions, other than swap, have any sort of maximum size restrictions?
 
Old 04-09-2005, 06:18 PM   #2
PhuckFonix
Member
 
Registered: Mar 2004
Location: United States of Bush
Distribution: Knoppix 3.7, Debian Sarge
Posts: 297

Rep: Reputation: 30
Quote:
Do any of these partitions, other than swap, have any sort of maximum size restrictions?
To my knowledge, there are no reasonable restrictions within the bounds of two 80 gig hds. Though, you don't want to waste space with ridiculously large partitions for folders such as /boot (if I recall correctly should be 32-64mb only).

Quote:
It seems from all that I have read, that /boot and /root should go on hda,
and that /swap and /user and /home should go on hdb.
I have never tried to over complicate things so I have a root paritiontion, a swap, and another partition just for files.

What I would do in your direction is, make a swap (sized based on how much RAM you already have), a root, and a /home. If you want to go extra cautious, you can add /boot (as I had done before with Gentoo).

I think that making too many partitions is tedious and that you can run into problems such as too little space or wasted space since your partitions are only used for single purposes and maybe over or underestimated in size needed.

Again:
/(root), swap, /home
or /, /boot, swap, /home

sound reasonable.

Quote:
I have a PC on which I want to Install Linux (Fedora ??) as a file server
I wish I read that earlier. Maybe for security reasons, someone may recommend another way to partition your harddisk for the purposes of a file server.
 
Old 04-09-2005, 06:38 PM   #3
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Re: HDD Partition Scheme

Well, I can tell you how I think you should do it, but you know what they say about opinions

Code:
Mount    Size       FSType       Device
/        1GB        ext2         hda1
/boot    128MB      ext2         hda2
/usr     2GB        ext3         hda3
/tmp     512MB      ext3         hda5
/var     2GB        ext3         hda6
SWAP     1xRAM      swap         hda7
/home    2GB        ext3         hda8
/fserve1  *         ext3         hda9
/fserve2  *         ext3         hdb1
/ and /boot can (and likely should) be mounted read only unless you're actively engaged in something that requires changes to them. /boot can additionally have no-exec if you like. /usr can (and again likely should) be mounted read only as well, as there shouldn't be a need to change anything on it once the box is installed (other than updates, but since you'll most likely be interactive with the machine at that point, mount it rw when you're doing that).

Note that /home is 2GB. With a file server (assuming no shell logins) that's probably too much, and you might not need a separate partition at all.

Also, if you're not going to have a bunch of stuff cluttering up /opt, you can go with an even smaller /.

/var should just have log files, so 2GB should be more than enough.

1xRAM means "How much ram you have". So for 512M, swap would be 512M (though you'll probably *never* use that much).

Use the rest of the space for your file serving. THe stuff about /usr and swap being on seperate disks (hda/hdb) and all that is pretty pointless. IDE isn't going to win any races, regardless of how you bust up the partitioning (especially when you break up the FS over two disks on the same cable ...). The reasons to partition wisely are many, but a good one is so that if one FS gets corrupted, it (hopefully) doesn't screw up the whole machine while it's at it. It also makes it easier to change things around and add/remove disks later.

See man hier for more info (I think Linux still has a hier(7) page ...)

Edit: In case it's not obvious, /fserve1 and /fserve2 are intended to use whatever space is available and be used to store the files you're going to serve. They should probably be no-exec, and maybe read only, but I don't know the specifics of your situation.

Last edited by sigsegv; 04-09-2005 at 06:44 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition Scheme Randall Slack Slackware 17 11-08-2005 09:49 AM
Partition Scheme mschwartz3377 Linux - Hardware 3 04-09-2005 02:36 AM
Partition Scheme Jaster Debian 6 11-13-2004 04:28 PM
partition scheme leeman_s Slackware 2 05-23-2004 12:41 PM
partition scheme -- why does it this way ??? Bluesuperman Slackware 2 10-31-2003 08:09 PM


All times are GMT -5. The time now is 06:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration