-   Linux - Newbie (
-   -   What size and what type of partitions? (

ReSync 06-16-2002 12:05 PM

What size and what type of partitions?

I'm trying to install RedHat 6.1 but I don't what type of partionion's I should make ond how big they should be... Could anybody please help me?

MartBrooks 06-16-2002 12:11 PM

Unless you have multiple hard drives, there's very little value in having more than two partitions. One that is twice as big as your physical memory for swap, and the rest mounted at /


basd 06-16-2002 12:17 PM

There are different concepts about this. Absolute minimum, you need /root and /swap. Some writers recommend making different partitions for the standard user areas, such as /var, /home. The advantage is that you can then re-do the /root partition without redoing the others. Whatever I "guess" as the right size for my linux /root, I always guess wrong and run out of space, so I like to give it everything but the swap space. Swap should be roughly 2x your ram unless you have more than 512megs. I have 256megs., 512megs swap, but it doesn't really seem to get used very much -- when I check, the swap is usually empty.

There are several file systems and I am no expert. This is what I seem to have found out: EXT2 is obsolete unless you have something requires specifically EXT2. EXT3 and ReiserFS have replaced EXT2 (and there some other ones as well.) EXT3 and ReiserFS are "journaling" systems that allegedly avoid the need to "scandisk" and "defragment" that you end up with on a VFAT (Windows) partition. "Journaling" sort of caches disk transactions and cleans them up in the background. Some people have nevertheless reported "fragmentation" issues under journaling systems, but so far it ReiserFS is working fine for me.

If you are installing to an existing Windows harddisk, there may be some problems. I did one install (partitioned by the Mandrake partitioner) and when I ran Windows defrag it killed the Linux partition. I then used Partition Magic to make partitions before installing Linux -- I made EXT2 and swap partitions with Partition Magic and then changed EXT2 at install time. Seems to be working -- anyway, has survived "thorough scan" and "defrag" on the Windows partition.

ReSync 06-16-2002 12:17 PM

and how big should the swap be?

ReSync 06-16-2002 12:19 PM

Whoops. Thanks basd! You I didn't see you're replie because I was writing mine..... :P

MartBrooks 06-16-2002 12:23 PM

[QUOTE]Originally posted by basd
EXT2 is obsolete unless you have something requires specifically EXT2. EXT3 and ReiserFS have replaced EXT2 (and there some other ones as well.) EXT3 and ReiserFS are "journaling" systems that allegedly avoid the need to "scandisk" and "defragment"QUOTE]

1) ext2 is not obselete. ext2 is an extremely well tested filesystem. If you want stability, use it.

2) rfs and ext3 do not avoid the need to "scandisk", they just alter the conditions which would make it necessary.

3) Fragmentation is a natural occurance on any filesystem. ext2 and ext3 make intelligent guesses that reduce fragmentation. Some reiserfs options (clustered tails, for example) can help reduce fragmentation. None of these filesystems can eliminate it.

basd 06-16-2002 01:21 PM

I think those are accurate corrections of my earlier post.

For instance, my Mandrake install will do a scan if there has been an abnormal shutdown.

Martin -- can you identify linux scan and defragment tools? I put this question to support for one Linux distribution and got told they were unnecessary. I haven't been able to find anything on it with various web searches. (My discussion of file systems was based on information from the same source). Also, aren't reiserFS and EXT3 more compact than EXT2?

MartBrooks 06-16-2002 01:59 PM

The ext2 or 3 equivalent of scandisk is "fsck" with the appropriate parameters.

Both ext2 and ext3 make intelligent guesses to reduce fragmentation. You are unlikely to be in a situation where file fragmentation is the major cause of reduction of performance with ext2 or ext3.

I'm not sure what you mean by "more compact". Reiser has an approach to file storage that can reduce inode wastage by clustering the "tail" of several files on the same inode. This can increase the usable storage area of a filesystem. As you may have read in previous posts, I do not yet believe rfs to be stable.

ext3 does not offer this type of filesystem space saving.


Jalorathalis 06-17-2002 01:20 AM

when installing redhat 7.0 i found it had problems installing with less than 100 mb swap i had heaps of ram fast cpu etc but i think if you have heaps of ram 512mb 100 mb swap will get you by.

All times are GMT -5. The time now is 03:36 PM.