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.
As it stands know, the entire distro ins in one h.u.g.e. partition 240 GB worth...
So, I'm thinking it might be better to put the install in 3(?) separate partitions. <- As far as that goes, and the videos I've seen, they seem to be making only 3 partitions.(Root, Home, and Swap).
At any rate, I was thinking of these sizes, and in this order...
Root 40GB
Home 50GB
Swap 32GB
With over a 100 GB's unalllocated space, I presume I could always shrink/expand the partitions, if required, right?
If you have any suggestions for improvement, or what have you, don't be shy...
As it stands know, the entire distro ins in one h.u.g.e. partition 240 GB worth...
So, I'm thinking it might be better to put the install in 3(?) separate partitions. <- As far as that goes, and the videos I've seen, they seem to be making only 3 partitions.(Root, Home, and Swap).
At any rate, I was thinking of these sizes, and in this order...
Root 40GB
Home 50GB
Swap 32GB
With over a 100 GB's unalllocated space, I presume I could always shrink/expand the partitions, if required, right?
If you have any suggestions for improvement, or what have you, don't be shy...
There's nothing inherently wrong with your idea, but after allocating space for / and swap I'd use the rest for /home up front. Growing a filesystem should be relatively safe, but why risk it on /home? Also, if you're only going to use 40GB for /, be sure to read the manual for apt and clean out /var/cache/apt/archives every so often so you don't run out of space.
So, what a) size(s) would you recommend, and b) order should the partitions go in?
As far as I know providing the boot flag is set to the root partition, the order of the partitions isn't particulary important, as long as all the partitions are correctly listed in the /etc/fstab file.
I've also heard/read that the swap partition should be, at least, equal to, or perhaps double, the amount of ram the computer has.
On the HDD of the distro I am currently using, my root partition is about 80 G and includes the home folder.
On a seperate partition, which, minus the root and swap partitons, is the rest of the drive goes my data under a name I assign it. This partition is also in my /etc/fstab file, so it mounts during the computer's boot.
A Linux Mint operating system takes about 15GB and grows as you install additional software. If you can spare the size, give it 100GB. Keep most of your free space for the home partition. User data (downloads, videos, pictures) takes a lot more space.
Are they talking about "/" (root) partition, or entire install, from soup to nuts? (i.e. everything)
from my experience with lots of ubuntu and mint vm's, that is everything. often the initial install is around 8 gb. i used to just create 15 gb vm's, but that was a little close so now i use 20.
That's far too large a swap partition. I have 16 GB of RAM in this machine and a 4 GB swap partition. Right now, with an uptime of about two days and regular usage, my swap partition is still completely free.
How much RAM do you have?
If you have 8 GB or more, 4 GB of swap will likely more than enough, unless you intend to hibernate. In that case, swap should slightly exceed RAM at a minimum.
frankbell I have 16 GB of RAM, however, I'm a heavy user, with an up time of hours and hours and hours. What I've heard/read is, that the size of your swap file should be 1.5 to 2 times larger than the amount of RAM your computer holds.
Or, I could put the /home directory on my external, (WD Passport), where I have 1.4x TB of unallocated space, where I intend to put my backups. I would partition off however much you thought would be enough. Bear in mind, I'm only on my 8th day of using Linux, hardly a seasoned pro...
Don't forget, Linux Mint (according to the LM manual, takes up 15GB of the "root" partition space, leaving me with 89 or 85 GB of free space, respectively...
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,496
Rep:
My set ups have enough room for the distros system plus a couple of GBs extra for any additional programs that I may want to add, for the / partition - (a swap partition, but only if really needed, like a laptop for suspending) - & the rest of the disk for my /home partition.
Worked for me these past 20 odd years of using Linux.
Back in the day when machines were small and RAM was in MB, 1.5 - 2 x RAM for swap made perfect sense, in fact it likely couldn't manage with less.
With a modern system, as per post #8, 4GB swap should be fine.
If you find your system leaking enough to swallow that up, more swap isn't going to help, it'll just take slightly longer till the oom-killer kicks in...
If the book recommends 15 - 100 GB for root partition, I'd go 30 or 40 GB, given the space you have.
As the book notes, it really depends on how much extra SW you install, not inc data which you would put elsewhere.
If you are thinking of running services like databases, have a separate partition for that and you might want to separate out /var which is where all the logs go.
Basically 'it depends'....
For a first home machine, go a bit generous and say 8GB swap, 50 GB root (/) and the rest in /home.
In 6 - 12 mths, you'll get a much better feel for your usage patterns and you can rebuild if necessary to match.
Most first time users eventually make a drastic error and need to rebuild anyway, which also enables you to clean out the cruft which you'll get experimenting (which you should do).
My set ups have enough room for the distros system plus a couple of GBs extra for any additional programs that I may want to add, for the / partition - (a swap partition, but only if really needed, like a laptop for suspending) - & the rest of the disk for my /home partition.
Worked for me these past 20 odd years of using Linux.
That's great news! It's unfortunate that you didn't include any numbers to indicate the size of your partitions.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.