You are not logged in.

#1 2012-05-28 06:09:07

Don Coyote
Member
From: Great Lakes Region
Registered: 2010-09-06
Posts: 110

[SOLVED] Root Partition Size

I did my install using the default settings from the auto-prepare format option and my root partition is about 7.5 G. That has been filled up and i'm running into memory problems with increasing frequency, scraping for things to delete to make room. I just ran

pacman -Qdtq | pacman -Rs -

and made enough room for a system upgrade, just barely.

The biggest chunk of the partition is 2.9G still in the pacman cache. Is it a good idea to clear that out any further, or do i need to shrink /home to expand /? I see the Beginners' Guide recommends / be at least 15G and /var at least 8, but i'm on a laptop with a 41G SSD, so would like to maximize available space for /home. Why does the auto-prepare default to 7.5G for /?

Last edited by Don Coyote (2012-05-30 02:35:24)

Offline

#2 2012-05-28 06:20:26

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [SOLVED] Root Partition Size

Don Coyote wrote:

I did my install using the default settings from the auto-prepare format option and my root partition is about 7.5 G. That has been filled up and i'm running into memory problems with increasing frequency, scraping for things to delete to make room. I just ran

pacman -Qdtq | pacman -Rs -

and made enough room for a system upgrade, just barely.

The biggest chunk of the partition is 2.9G still in the pacman cache. Is it a good idea to clear that out any further, or do i need to shrink /home to expand /? I see the Beginners' Guide recommends / be at least 15G and /var at least 8, but i'm on a laptop with a 41G SSD, so would like to maximize available space for /home. Why does the auto-prepare default to 7.5G for /?

Lots of threads get started about this issue. I suspect the reason 7.5G is considered a good default is that Arch Linux is meant to be kept simple; if you think a different size should be default, you probably need to take it up with the Arch Linux devs. I agree that 7.5G is a little small. My system is fairly minimalistic but I've used 15G on my root partition.

In future, using LVMs will make it easy for you to do this kind of resizing, or you can just put /home on the same partition as /, or you can choose some non-default size. I think these are your only options.

Offline

#3 2012-05-28 06:48:16

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Root Partition Size

My netbook has a 4GB / partition: I just rsync my pacman cache to an external drive every couple of weeks and then pacman -Scc.

For desktops, I go with a 20GB / (on LVM)...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2012-05-28 07:11:50

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: [SOLVED] Root Partition Size

I keep my pacman cache on the home partition for the very same reason. Just check the CacheDir option in pacman.conf.

Offline

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

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] Root Partition Size

There have been a lot of threads like this over the years. Maybe this will help: https://bbs.archlinux.org/viewtopic.php?id=139157

Install and use ncdu to find out what's eating all the space:

$ ncdu / --exclude /media --exclude /home

Also, logrotate wouldn't hurt either (check the above link).


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-05-28 09:08:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Root Partition Size

The last official Arch iso has been created last year and IIRC it autopartitions with 7.5 GB / . The wiki has been edited but I don't know if the changes have been incorporated into the testbuilds.
You can always partition the drive yourself.

7.5 GB is all I need (I clean pacman cache once a year).

Offline

#7 2012-05-28 16:21:09

Don Coyote
Member
From: Great Lakes Region
Registered: 2010-09-06
Posts: 110

Re: [SOLVED] Root Partition Size

karol wrote:

The last official Arch iso has been created last year and IIRC it autopartitions with 7.5 GB / . The wiki has been edited but I don't know if the changes have been incorporated into the testbuilds.
You can always partition the drive yourself.

I don't think there was much advice on this in the guides when i installed, but it has been elaborated on some since.

7.5 GB is all I need (I clean pacman cache once a year).

'clean' as in "pacman -Scc", or something more selective?

I think xduugu's suggestion of remapping the cache to /home would work best for my current situation. Is it as simple as editing the one line in the conf file?

Offline

#8 2012-05-28 16:40:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Root Partition Size

Cacheclean is useful.  You can keep the most recent packages in case of a problem, but it cleans out older versions.  I'd also second the vote for ncdu as really good at tracking down what's using the space.

I'm at 4.5Gb in my root parition and I have a couple of pretty heavy-weight (in terms of package size) apps including all the texlive-most packages (~1Gb), inkscape, and libreoffice.  But then those are what I consider heavy-weight!  I have dwm as my only WM.

I think 7.5Gb is a good starting point, but perhaps the installer should include a note on forethought: if you are going to install a fullsized DE with all its bells and whistles, 7.5Gb can quickly fill up and that should be increased.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2012-05-28 17:33:14

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

Re: [SOLVED] Root Partition Size

I have a 5G root and have never used more than 3.5Gs of space in it. Granted I have my /var as a separate partition and my system is fairly minimalistic with no kde/gnome/xfce related stuff which brings in a shitload of apps.


Forum Rules

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

Offline

#10 2012-05-28 17:41:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Root Partition Size

Don Coyote wrote:
karol wrote:

7.5 GB is all I need (I clean pacman cache once a year).

'clean' as in "pacman -Scc", or something more selective?

Just 'pacman -Sc' :-)

Offline

#11 2012-05-29 06:38:37

Don Coyote
Member
From: Great Lakes Region
Registered: 2010-09-06
Posts: 110

Re: [SOLVED] Root Partition Size

Trilby wrote:

I'd also second the vote for ncdu as really good at tracking down what's using the space.

I've been getting more comfortable with CLI the longer i've used Arch, but the Baobab/DUA grapical representation of files is worth a thousand ncurses (and prabably takes at least that much more space to get running in XFCE...) Or maybe i'm just being too big of a Masamune Shirow fanboy.

Um, not sure if this was more of a discussion than a problem, should i still mark it "solved"?

Last edited by Don Coyote (2012-05-29 06:39:37)

Offline

#12 2012-05-29 06:57:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Root Partition Size

Don Coyote wrote:

Um, not sure if this was more of a discussion than a problem, should i still mark it "solved"?

Please do. Newbie Corner is for problem solving, not discussion...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB