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'm learning Linux and am trying to install Mandrake but I don't understand how to make partitions and what /usr, var, /boot and how to make partitions as far as choosing type, mount, and all others if there is a link for a website showing help of this nature please reply.
If youre just starting out, probably the easiest way to partition is:
-twice your RAM size for swap partition
-give the rest to /
This isnt the most secure, but for someone just starting out it is fine, especially since youll end up trying different distros in the future. You can get more advanced with partitioning over time.
Just do a google search for something like 'linux partitioning' and youll come up with gobs of sites.
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
NOOOOOOOOO
You are right in terms of making the swap 2x the size of the RAM,... up to about 512MB as a cap.
As for giving the rest all to "/"...
NOOOOOOOOO
At the very least the /home partition should be its own partition. This is where you will be putting your user data so err on the side of being generous here. Things like WineX like to install Windoze programs in the users subdirectory
If you ever have to re-install the OS, you will thank me for having you make /home a seperate partition, because you can (in expert mode) re-install without re-formatting this partition and keep ALL of your user data (documents, mp3s, pictures, desktop settings, game save files, etc.)
Also,...
/usr should be its own partition - you should also be generous here as well, as this is where you will be installing most of your apps...
/var, /dev and the rest can be left to go with the root partition ( / ) on a home computer or desktop machine.
You don't have to bee too generous to the root partition. The kernal, system settings and variables go there. They don't generally take up as much room as you would think.
I have an 80 GB HD.
It is partitioned as follows:
6 GB to root (ReiserFS)
1.1 GB Swap (I know I said 512 MB, but otherwise I couldn't see the "s" in swap)
25 GB for /usr (ReiserFS)
27 GB for /home (ReiserFS)
14 GB for a FAT32 partition I call /mnt/windoze
I use ReiserFS because it's a journalized file system and a little more robust than EXT3
Don't use EXT2 unless you really need access to the partitioning through a program like Partition Magic.
With Mandrake 9.1 and the diskdrake utility, you shouldn't need Partition Magic for anything
Sorry JaseP but I've gotta disagree. Yes, you are correct, but we are talking about newbies. They don't know what they want to do with their system yet. In a month or 2, they might decide that they want to run a mail server. All of a sudden, / is at 100% yet /usr is still sitting in a nice cool 2%
Nah, I gotta agree with cav here. Choose your swap size, then give all the rest to /
Yes, if the need arises to reinstall, they'll lose anything they didn't backup on external media (such as CDRW) but they won't have to go through the task of resizing (which seems to lead a lot of newbies to the ultimate task of reinstalling).
It's really a good argument to say that having /home and /usr on seperate partitions will help em, but I must say if there is going to be ANY other partitions than swap and / it should only be a seperate one for "data" in general, and not a standard linux directory, something like /mnt/data
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
Quote:
Originally posted by MasterC Sorry JaseP but I've gotta disagree. Yes, you are correct, but we are talking about newbies. They don't know what they want to do with their system yet. In a month or 2, they might decide that they want to run a mail server. All of a sudden, / is at 100% yet /usr is still sitting in a nice cool 2%
....
It's really a good argument to say that having /home and /usr on seperate partitions will help em, but I must say if there is going to be ANY other partitions than swap and / it should only be a seperate one for "data" in general, and not a standard linux directory, something like /mnt/data
Just my 2 cents
Cool
I can see your point, and It's what I did when I first started using Linux. I was afraid of partitions. But Most new users aren't thinking of setting up mail servers. They are getting to know the system as a desktop system. If you want a mail-server, I would say re-install and re-tool specifically for that.
I'm just suggesting making /home seperate because the first bad thing that happened to me is that I screwed up my root partition some-how and ended up losing all my user data for both me and my wife. After than I became and advocate of partitioning.
So I can see where you are coming from, I just don't agree. I think a newbie is better served with at least a seperate /home partition.
Fair enough, the problem lies in that you'll (as the newbie, not you as JaseP) will be faced with then creating the 2 new users again. At which time, if you don't create the same users, or have the same UID, then file ownership will become problematic (uid 501 used to be user1 now it's user2). That's why I usually recommend a /mnt/data if anything. Sharing a /home across 2 distros isn't a good idea for the same reason, linux uses a naming convention for ease of use, but if you look at the guts, all files are owned to a UID not a name It's kind of like the DNS thing for the internet.
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
Quote:
Originally posted by MasterC ...At which time, if you don't create the same users, or have the same UID, then file ownership will become problematic (uid 501 used to be user1 now it's user2). That's why I usually recommend a /mnt/data if anything. Sharing a /home across 2 distros isn't a good idea for the same reason, linux uses a naming convention for ease of use, but if you look at the guts, all files are owned to a UID not a name It's kind of like the DNS thing for the internet.
Cool
I see your point,... but you can always do a file dump to the new user and cahnge the permissions to fit the new user's ID...
Most people won't go to the trouble of doing back-ups (which I can attest to).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.