You are not logged in.

#1 2012-05-25 16:36:57

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Does my partition structure look suitable for a fresh install of Arch?

I'm doing a fresh install of 64-bit Arch on my primary machine, but I want to make sure my partition structure is suitable for a long-term install (since ideally, I plan to only install Arch once). So far, this is what I plan to use on a 500 GB hard disk:

/dev/sda1 - ntfs - 70 GB (dual boot with win7)
/dev/sda2 - ntfs - 100 GB (shared between linux and win7, primarily for music)
/dev/sda3 - ext4 - 20 GB - for /
/dev/sda4 - ext4/ReiserFS - 12GB - for /var
/dev/sda5 - ext4 - for /home (sized to include the rest of the disk except for 4-8 GB of swap)
/dev/sda6 - swap - is 8GB too large? My system has 4GB, and I heard the rule of thumb that twice the memory is good to have as swap space for use with suspend/hibernate

Since I'm setting up a separate /var partition, I have a quick related question about ReiserFS. According to the wiki (https://wiki.archlinux.org/index.php/Be … stem_types) ReiserFS is a good choice for /var because it works well with many small files. Is this still the case? Since ReiserFS isn't being actively developed at the moment, I want to make the best choice now so I don't need to worry about reinstalling down the road.

Last edited by pythonscript (2012-05-25 16:52:20)


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#2 2012-05-25 16:42:38

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: Does my partition structure look suitable for a fresh install of Arch?

The partition scheme looks good to me. You probably don't need 8 GB of swap. One you exceed 2 GB of RAM the rule of thumb is released a bit. However, it depends on what you intend to do with the machine. For hibernation, you should have at least a swap partition that is a big as you have RAM, maybe a bit more to compensate for bad sectors.

Personally, I wouldn't use ReiserFS because of the uncertain situation regarding the development, but that is mostly my personal opinion. I am using ext4 for /var which is fine so far.

Offline

#3 2012-05-25 16:48:11

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: Does my partition structure look suitable for a fresh install of Arch?

Thanks for the tip on both aspects. I'll probably stick with 6 GB for swap, since this is my production machine and I sometimes get close to the 4 GB limit before hibernating to err on the side of caution. I'm hesistant to use ReiserFS because of that very reason, and I've never had issues with ext4, but I normally defer to the wiki because of limited experience.


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#4 2012-05-25 17:56:55

Awebb
Member
Registered: 2010-05-06
Posts: 6,293

Re: Does my partition structure look suitable for a fresh install of Arch?

If you intend to hibernate, RAM*2 is mandatory. If not, depending on what you are going to do, with 4GB ram, 256MB swap might be enough. I have 4GB in this machine and I have yet to see it swap. That old rule of thumb probably became obsolete the day the 512MB mark was exceeded.

Offline

#5 2012-05-25 18:07:18

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Does my partition structure look suitable for a fresh install of Arch?

reiserfs did seem to make my machine snappier than using ext3 (for pacman purposes) -- I haven't since changed to ext4 to compare it with reiserfs, but my var partition is still reiserfs and the rest are ext4.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2012-05-25 18:30:32

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: Does my partition structure look suitable for a fresh install of Arch?

I use reiser for /var and /home.  I think 12G may be excessive for /var though.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#7 2012-05-25 18:37:46

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Does my partition structure look suitable for a fresh install of Arch?

alphaniner wrote:

I use reiser for /var and /home.  I think 12G may be excessive for /var though.

Well that depends on how much he is planning to install -- or not clean his cache.

I have 4GB of var and i rarely have seen its size more than 700MB


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#8 2012-05-25 21:03:47

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: Does my partition structure look suitable for a fresh install of Arch?

On my Arch netbook, I regularly run pacman -Sc and my cache is right about 1.5 GB. 12 GB may be excessive for /var, but I can always resize later without a great deal of trouble. As for swap, I can probably resize that if I need to, but as I thought back more, I haven't uesd hibernate in a fair while so it's not terrible if I don't have enough space for it.


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

#9 2012-05-25 21:41:07

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Does my partition structure look suitable for a fresh install of Arch?

Awebb wrote:

If you intend to hibernate, RAM*2 is mandatory. If not, depending on what you are going to do, with 4GB ram, 256MB swap might be enough. I have 4GB in this machine and I have yet to see it swap. That old rule of thumb probably became obsolete the day the 512MB mark was exceeded.

Is this really true?

I can hibernate to disk OK and I don't have anything near twice RAM for swap. I have a little more for swap than I have RAM - that's all.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#10 2012-05-26 11:04:46

Awebb
Member
Registered: 2010-05-06
Posts: 6,293

Re: Does my partition structure look suitable for a fresh install of Arch?

@cfr: Uhm, now you're saying it… probably not. You will, however, need at least what's in your swap right now + the size of your ram. Or it used to be like that. It has been years smile

Offline

#11 2012-05-26 11:23:20

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Does my partition structure look suitable for a fresh install of Arch?

Awebb wrote:

@cfr: Uhm, now you're saying it… probably not. You will, however, need at least what's in your swap right now + the size of your ram. Or it used to be like that. It has been years smile

The mainline kernel compresses the ram data before writing it to swap since 2.6.37 [1]. I can successfully hibernate my laptop which has 4GB ram and only 1.9GB swap. Of course, only the amount of ram that is actually used by programs is written to swap, all caches and such are just dropped.

[1] https://git.kernel.org/?p=linux/kernel/ … fe3d0e418f

Offline

#12 2012-05-27 17:56:27

pythonscript
Member
From: Edinburgh, Scotland
Registered: 2009-07-10
Posts: 68

Re: Does my partition structure look suitable for a fresh install of Arch?

I only allocated 6 GB for swap, but with the 12 GB I allocated to /var, I should have more than enough... After installing virtually all of the packages I often use and running

sudo pacman -Sc

on my laptop, my /var is only taking up 2.4 GB of space, so I may resize /var down to around 5-6 GB sometime in the future. Apart from

sudo pacman -Scc

are there any other commands I should know for cleaning up /var?


Lenovo SL510 Thinkpad / Asus EEEPC 1005HA
No hables a menos que puedas mejorar el silencio. - Neruda
La sabiduría nos llega cuando ya no nos sirve de nada. - Márquez

Offline

Board footer

Powered by FluxBB