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 am not an expert, not by a long shot. This is just what I have and what I have read.
I have read that a person should have a separate USR partition so if a reload of the OS is necessary all the programs and data will not be overwritten since they will be on a partition that will no be overwritten during install.
I do not have that.
I have 1/2 my hard drive for Windows XP Pro, the other half is for Slackware with a swap partition of about 1GB.
It has been pointed out in various places that the old "rule" of having a swap partition twice the size of RAM is passe in the era of systems with large amounts of memory.
Partitioning has nothing to do with programming itself, per sa'.
But if you are just looking for partitioning or Programming as separated entities advice then you came to the right place.
I'd go with the split system scenario for ease in saving user data if the system goes down to the point of needing a reinstall of said system. Taking into the concideration of the option of hibernation vs no hybernation swap dive size varitable.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by sagxam
My laptop has following specifications:
HARD DISK: 1 TB
RAM : 4 GB
PROCESSOR: INTEL CORE I5 2.20GHz
SYSTEM TYPE: 64 BIT, x64 based processor
i want to install DEBIAN-AMD64
PLEASE SUGGEST ME THE RIGHT PARTITIONS
(REQUIRED FOR PROGRAMMING)
While there is not really a black and white answer, you need to think about first;
A) How many apps apart from the system itself do you intend on installing?
B) Do you want to be able to hibernate your system?
C) How much data would you be planning on housing in your 'home' partition?
If the answer to question A is not much extra than the system itself (and lets say that the system itself and bundled apps you get with Debian, come to say 15GB all up) you could probably have a 'root' partition of 30GB and be fine. You also need to factor in updates as well.
If the answer to question B is yes, then you will need at least a 4GB 'SWAP' partition.
And therefore you could allocate the remaining space to your 'home' partition.
Just take the defaults. I know many favor having /home on a separate partition, but I don't.
My systems are set up as follows:
8gig /swap
35gig /
The rest of the drive /storage.
In the event I reinstall, I just make sure to move what I want to keep to /storage, and reinstall and the only partition that gets overwritten is /. Some stuff, like virtual drives, stay on /storage.
Been doing it that way for years, can't bring myself to change.
Last edited by IndyGunFreak; 12-30-2016 at 04:50 AM.
Distribution: Mainly Devuan with some Tiny Core, Fatdog, Haiku, & BSD thrown in.
Posts: 5,279
Rep:
You need a / partition for all your programs you intend to install, with a bit more just in case you later decide to install something you didn't think of - I personally use about 4GB for a normal system, but I would suggest 10GB as you have plenty of disk space.
You are on a laptop, so have at least as much swap as you have ram, so /swap 4GB.
All the rest of the disk can be given to /home.
By having a separate /home, you safeguard your data should you need to reinstall, or even change distro.
If it's not a laptop or you'll never hibernate / suspend you can leave out the swap partition and use a swap file of about 2GB just to slow you down enough to take action when you run out of RAM. This should allow you to have a 32 bit install and a 64 bit install. Which should help test things, play around, recover, and stuff. After a year+ of going that route I'd invert the partition order to wear out the other half of the media.
700GB storage
8GB swap
128GB distro
164GB distro
But mostly I use 32GB fast usb3 sticks for distros. And use fresh ones every 6-ish months. Cause they got cheaper and I don't trust the media type. Plus it's nice to rsync a bootable install to them when you need to otherwise wipe the main drive to do something that requires another ugly bloated OS that shall not be named. Most of my large disks are external for my uses and spend most of their lives disconnected and powered off.
Marked in bold are my / - root or OS only partitions.
I've found around ~50GB for / OS leaves me with plenty of room for added apps and I'd like to try that installs
my home is shared with all three of my Linux OS'es - I know the drill - "that's not safe", but if you know what you're doing it is ok to share the same /home/user between distros.
For added storage
with externals that just happened to be plugged in as I am working with them . 1 internal laptop 2.5 " and 1 wd encased external
I've found that getting an internal laptop 2.5 inexpensive and useful for external HDD's
last is in the red: windows - just in case and it was free so why not keep it install.
Plus I have a chunk on sdb 36.37GB of unallocated that I need to merge back into my /home whenever I get around to it, or install another Linux Distro. Haven't decided yet.
Trial and error is a big part in figuring out what Sizes you'll actually be needing because it goes in accordance with your needs.That you'll eventually figure out after you get into Linux and get done trying everything under the sun that you can install then settle down to just installing what you use. Still remembering to keep a little extra space for them, I'd like to try that installs as well.
The first HDD is a KINGSTON SVP200S 120GB SSD SATA3, with three partitions on it (that I use for the OS and home partition).
As you can see the first one (sda1) is for the SWAP partition (used for hibernating the system and has currently broke on me, the software side of things not the partition itself).
But moving on... sda2 is the root (/) partition where the OS and installed apps are housed.
sda3 as the word crypt suggests, is my encrypted home (/home) partition.
The second HDD is a Western Digital 200GB non-SSD SATA, with one partition (sdb1) on it that takes up 100% of the drive. I use it for clone my first HDD onto (using Clonezilla to take a 'disk' image of the first HDD. And restore the 'disk' image back from, if needed).
The third HDD is a Seagate Barracuda 7200.14 (AF) 2TB non-SSD SATA3, with one partition (sdc1) on it that takes up once again 100% of the drive. I use just for video/multimedia related stuff, the reason I brought it for in the first place.
The reason I have not taken my own advice is because my first HDD is only 120GB. And with PCLinuxOS as my distro, it's barely pushing 14-15GB in used space. And I should also say/ should have said first, apart from VM's, I don't need a hell of a lotta space for the /home partition.
BTW. They are all internal SATA/SATA3 drives, connected to the motherboard/mainboard's integrated SATA controller and there are therefore, no external drives in the above output.
Last edited by jsbjsb001; 12-31-2016 at 01:00 PM.
Reason: fix up mistakes
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.