Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I usually don't split root and home on desktop systems anymore. I don't like to have wasted space in my root partition.
I generally allocate it like this:
512mb for boot: This is quite a lot for most people, but I recompile my kernel a lot and save everything 128mb should be fine unless you use a fat bootloader like grub.
6GB for swap: Even performing gigantic iterative calculation in matlab, I rarely use up my 4gb of ram and get in to my swap space. However, I like to be able to hibernate my system which requires swap space. In my case 4gb was too small. 6gb worked just fine.
Thats pretty much it. If you really want to separate your home partition on a system you aren't sure how much root is going to occupy, you can always do this:
-Install the system without splitting home and root, make your root partition your last partition on the drive.
-Install everything you want to run on your system. There may be more in the future but the majority will probably be installed
initially.
-Use parted or gparted to shrink the partition. Give yourself a small buffer, maybe 5 - 10 gb, for future software.
-create another partition out of the free space.
-move everything in your home directory to this partition.
-update /etc/fstab to mount the partition at mount point /home
-reboot
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I'd set root to about 30GB or so, in case you want to install a few desktop environments and the like. I'm currently using around 20GB of my 30GB root partition on my desktop due to installing a large amount of software.
On my EEE PC I'm only using just over 5GB of my root partition but that's a very frugal install of Debian using XFCE and even has the office suite removed to save space.
I have root or / at size of 4GB, /home 8GB, /usr 8GB all on different SSDs (16 ones I bought for peanuts), it makes things FAST.
I also have /mnt/LData (local data) for storage with /home/andre/Downloads and /home/andre/Documents, symlinked to /mnt/LData/Downloads, and /mnt/LData/Document, etc
I run SuSE13.1 and my system partitions are all at low percentages (/usr is biggest at 44%) if you like installing a lot of additional software make /usr bigger. It is where your applications, X and libraries live....
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I can't be the only one for whom the root partition easily grows beyond 15GB?
don't get me wrong, I know you can have a full install in around 9GB but my Debian install always goes above 15GB once I've installed XFCE, Gnome, KDE and a few others.
I have one separate partition (30GB) for only trying out different OS. Once, I had 2 OS and one of them had Gnome 2 and another had Gnome 3. And I used a common home partition. This messed up lots of my settings. So, In case you wanted to try something like this, you may have to think about not sharing the home partition.
* Think about whether you are going to install any 3rd party software?
* What kind of data you are going to keep (personal/official/entertainment....)
* Are you planning for any VMs?
* Will you be sharing data/content with others?
* If you are working on any java projects and using maven to build, the dependencies will be downloaded to home folder. (May be you can create links or "may be" configure maven to use some other place as repository.. But have a plan in place.)
+ swap (Good practice to have 1.5 to 2 times of your RAM)
+ root
May be I might have missed somethings. But this might help you organize your data.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by TroN-0074
16GB for /root is plenty, 2GB for swap is enough too, the rest for /home
If your root partition is getting full keep on eye on directories /usr and /var. These directories tent to grow because junk accumulates there.
Good luck to you
Indeed, most of my space is used in /usr/lib and /usr/share. My point is that you can't remove anything in there in a package-managed system to trim the excess so when you have a few DEs, window managers and themes as well as multilib you can easily get over 15GB -- there's nothing unorthodox about my install, I just happen to have a lot installed. So, with 1TB to play with I'd recommend giving over at least 20GB to the root partition for "future expansion" if nothing else.
I concur with the point made above about sharing home partitions though -- I now have a small home drive for each OS when I'm dual booting and mount some data drives in them for things like VirtualBox and my music and video collections.
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444
Rep:
OP didn't say dualboot was desired here. But I find the best way to dual or triple boot is by sharing /home and swap among all distros but create different user for each distribution and also different password. I even use different format for each /root partition
I'm with 273, if you've got 2TB to play with then you can afford to over allocate.
My starting point is:
/ 16GB
/var 16GB
/home whatever
/tmp on tmpfs.
My / is currently ~36% used. (Slackware 14.1, with xfce, no kde)
On my build box, I add a separate /usr/src as that can get quite big.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.