Topic: my disk partition set up

What are your thoughts on this manual disk partition setup?

1TB hard drive

/root = 50GB (EXT4 file system)

/swap = 3GB = installed RAM

/home = 947GB = remainder of disk (EXT4 file system)

/root and /home are set as 'primary' partitions.

Re: my disk partition set up

seems fine, i would point out that i would be very surprised if you needed 50gb for /root, but then again space isn't exactly at a premium

- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Re: my disk partition set up

I would use for / (root) partition up to 15 GB, 50 GB is definitely too much (:

#404378

Re: my disk partition set up

@benj1 thanks for your input.
Yes I would be suprised if I needed 50GB for /root yikes
It is a fact that in buiding machines these days the hard drives are so much cheaper/GB than just a few years ago.
I am paricularly interested in the fact that I have a sensible partition setup/file system as ext4/swap=RAM etc ...

Re: my disk partition set up

@Hadret thanks for your input.

Re: my disk partition set up

it sounds fine to me, even though I think there will be a bit less than 1000gb available as there is some overhead to the file system, which on a drive that size takes up a few GB I am sure.

I personally make a 32MB ext2 partition for /boot this doesn't have to be automounted and can actually be portable between distros. I also probably wouldn't go with ext4, I have found xfs to work quicker for me and jfs to consume less resources so I usually choose xfs for powerful computers and jfs for weaker ones.

I have played around a bit with ext4 and I really cannot seem to get it to perform much if any better than ext3 for my uses and at that point why not run ext3 more things are compatible with it, even though ext4 is supposed to be backward compatible and ext3 forward compatible in practice this isn't always so. (Obviously if you need nanosecond time stamps, more than 32k subdirectories you would want ext4 over 3) That being said I have an ext4 / and /home on my karmic system and I can say that I don't have any real complaints.

Re: my disk partition set up

@Val_B thanks for your input.
Your point about a /boot partition is interesting.
I think I am correct in saying that Arch and Arch based distros create a small boot partition on install.
Why do some distros do this? Is it just portability?
I might give xfs a try in the future...

Re: my disk partition set up

chameleon wrote:

@Val_B thanks for your input.
Your point about a /boot partition is interesting.
I think I am correct in saying that Arch and Arch based distros create a small boot partition on install.
Why do some distros do this? Is it just portability?
I might give xfs a try in the future...

Your welcome; Currently I dual boot Gentoo and Ubuntu. The main reason why I do it is to run my Karmic system with grub .97 rather than grub2. I have had several problems with the new grub and this is a pretty good solution for me. Now, Gentoo documentation recommends the /boot not be mounted at all unless you need to edit it, but when I wrote my fstab I decided to mount it like normal as security isn't a real concern on a household computer, as everyone that uses either knows what they are doing or don't have rights to access it.

I don't think any distro requires it, but many recommend it, here is a discussion from the Arch forum on this issue which you may find illuminating: http://bbs.archlinux.org/viewtopic.php?id=85728

This article on filesystems which is pretty old, still has some interesting information: http://www.debian-administration.org/articles/388

Re: my disk partition set up

chameleon wrote:

@benj1 thanks for your input.
Yes I would be suprised if I needed 50GB for /root yikes
It is a fact that in buiding machines these days the hard drives are so much cheaper/GB than just a few years ago.
I am paricularly interested in the fact that I have a sensible partition setup/file system as ext4/swap=RAM etc ...

swap should be fine, the received wisdom these days is to go with swap the same size as ram if you have plenty of ram, basically so youre guaranteed to be able to hibernate properley.

@val_B
can't really say i take much notice of file systems but how do you measure resource usage (you say jfs uses less resources), i havent done any measurements, but ive never noticed speed diffs between filesystems, except integrity checks on ext4 being significantly faster.
also what compatibility issues are there in ext4, its something ive never heard any reports of.

- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Re: my disk partition set up

I just partition my drave as all /
and then have 1GB of swap

The following statement is false.
The above statement is true.
Now solve for X

Re: my disk partition set up

and why do you need 50GB for root?
nothing goes in there?

The following statement is false.
The above statement is true.
Now solve for X

Re: my disk partition set up

andrews wrote:

and why do you need 50GB for root?
nothing goes in there?

Everything that is not put in other partitions (typically /boot and /home) is all put in what is set aside for root (i.e. /bin, /dev, /etc, /lib...)
In short, programs go in / and user files go in /home and so appropriate partitions sizes should be decided based on this.

Edit this is assuming that the OP meant '/' when they wrote "/root" You are right, little to nothing should go in the actual "/root" folder
/ != /root != root
All VERY different roots

Last edited by valbaca (2010-07-15 00:49:29)

For the love of freedom.
Thinkpad X200s CrunchBang 10a2 amd64
Get Counted  #498874

Re: my disk partition set up

@andrews: The Operating system and programs go in / but, the bulk of files on most systems are in /home. Linux works fine with just one partition you don't need swap or /home or anything else but, there are several benefits to partitioning schemes. Most people want /home separate from / that way they can reinstall or even install a whole different distro while preserving their files and many settings.

@Benji:
jfs doesn't use less resources per se, it does use less cpu on average though. If you read the link I posted to debian-administration in the previous post you will see the specific operations where jfs used less cpu, IIRC there are some operations where jfs doesn't win cpu wise.

Xfs on the other hand tended to use more cpu however had better speed especially when handling large files, the Arch wiki says xfs is noted for worse performance with many small files or removing files. Here is some backup to that: http://t2-project.org/zine/4/

My own tests have shown xfs to be great however, at dealing with few large files such as .iso files and anime, which is probably more indicative of the types of date most people are working with in /home however, that is a bit presumptions on my part, people could be spending their time moving thousands of text files around but, I know I never do.

That being said both my own tests and the benchmarks on the web can be manipulated as different files systems are better at different things, and the tools themselves are a bit suspect. That and that none of them have tested latency in a satisfactory matter for me. I have noticed jfs and ext3/4 tend to 'feel' more sluggish  to start certain operations while reiserfs and xfs rarely do, I attempting to write a tool to time it, but I can't help but to feel the results were biased as they came out exactly as it feels, and I have learned not to trust my feelings.

As far as ext4 and compatibility goes, I had a few issues with backup and recovering software. Things that don't support ext4 are supposed to detect it as ext3 and use it like that however, certain features when enabled on ext4 systems break compatibility. That and the 1-2 combo of grub2 + ext4 has failed at least 3 times in my personal experience from errors that break the file system in such a way that it is reported that it is an unknown fs; even a live cd reports it as unknown file system even if it was the live cd that created the system.

Last edited by Val_B (2010-07-15 01:19:14)

Re: my disk partition set up

BTW if you don't plan on hibernating, I think its safe to use a smaller swap. 1GB at the most.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: my disk partition set up

...or even no swap; that's how I always have my netbook set up.  (Yes, both Ubiquity and the Debian Installer have scolded me about this; I just tell them to be quiet and proceed.)  This could cause trouble on systems with less physical memory, but since you have 3GB...

while ( ! ( succeed = try() ) );

Re: my disk partition set up

Or even completely remove swap partition. If you have 3 GB of RAM, as I see it, swap is really unnecessary. I've got 2 GB of RAM, yet still I didn't create swap partition and my system is working fine (:

#404378

Re: my disk partition set up

thanks all-points noted;)

Re: my disk partition set up

Just for my 2 cents worth, I like to use a swap file rather than a swap partition, ok there is a small overhead but can make life simpler for people who are used to a windows set up of the classic one big c: drive, You can then backup a single partition and not worry about restoring a file system and swap partitions.
The other useful advantage is it is very easy to either grow, shrink, move to another disk or create more than 1 swapfile, It's a lot easier than trying to move partitions around later on.

I also agree with above comment 50GB for /root is very generous, 15GB is a good size for most people, remember this is #! it's meant to be a small footprint. smile

Re: my disk partition set up

pobman wrote:

I also agree with above comment 50GB for /root is very generous, 15GB is a good size for most people, remember this is #! it's meant to be a small footprint. smile

Last week I fiddled around with HD videos. Since they had such a high quality, I actually needed 30 GiB in /tmp. My /tmp resides on it's own 250 GiB HDD for performance gain. If you don't need much space in /tmp, 15 GiB are more than enough.

I'm so meta, even this acronym