Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-18-2005, 04:20 AM
|
#1
|
Member
Registered: Mar 2005
Location: USA
Distribution: Kubuntu Breezy
Posts: 79
Rep:
|
Partition sizes??
Hi,
I'm about to repartition my XP-only laptop and install Slackware. This laptop is for purely everyday, desktop use. I was planning on using the following partitions:
37 GB HD:
1: Windows 5GB
2: Linux system files ?
3: /home/ user files ?
4: swap 1GB
Every how-to tells me I should have about 2x my memory in swap, but nobody tells me anything about how large the home or system partitions should be! I've never installed Linux before, so I don't know where most of my data should go. I will be the only user on this computer if that makes a difference. Which partition will require the most data, and why? What exactly will go on each partition? Thanks for all of your help, guys.
--C
|
|
|
03-18-2005, 04:32 AM
|
#2
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
The size of root (/) and /home is something that you have to determine yourself. Assess what you will be installing on your computer and how much disk space you will need for everyday use and come up with a suitable partitioning scheme.
|
|
|
03-18-2005, 10:53 AM
|
#3
|
Member
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808
Rep:
|
And if you want *numbers* to start from, figure 2GB - 5GB for "/", depending on how "full" an install you plan to have, and put everything else into "/home". (Of course, keep a swap partition - 512MB is probably sufficient.)
|
|
|
03-18-2005, 12:53 PM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
One thing you can do to feel more at ease with having allocated the correct amount of space would to simply make a swap and allocate the rest to /. The /home directory can safely reside on the / directory and will be created during installation.
Doing it this way means no problems with having made / too small or /home too big. No wasted space or insufficient disk space problems.
The only partitions I have on my machine are
/boot 32M
/swap 512M
/ the rest of the drive
|
|
|
03-18-2005, 01:35 PM
|
#5
|
LQ Newbie
Registered: Jan 2005
Location: Midwest
Distribution: Slackware/FC/CentOS/Ubuntu
Posts: 5
Rep:
|
The first couple of times, I just had a swap (2XRAM in size) partition, and the rest was /. It is, I guess, not technically ideal for security, but I did not care because I was new at Linux anyway... I reinstalled quite a few times.
After a while, I got a good feel for how big certain directories can get. You can use the command 'du' to check the size of a directory. For example:
$ du -sh /usr/local
whould tell you how much space is used by your /usr/local. After that, I just kinda 'scaled' the sizes of different directories based on the total disk usage. so, for example, if /usr/local comprised 20% of my disk usage, I partitioned 20% of the disk to /usr/local.
I don't pretend to know if this is the best way, but it seemed safe. There are some exceptions like /boot or /var. They probably don't need a whole lot of space.
|
|
|
03-18-2005, 03:21 PM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
The only time having a single / partition on a desktop machine instead of a seperate /home partition will cause a problem is when performing an upgrade or installing a new distro (amounts to same thing with some distros) where there /home directory will be over-written.
This is solved if one does the smart thing and makes back-ups of the personal files to be kept. Good practice to back up the personal stuff any time doing an upgrade. Gotta love those CD-RWs.
If you don't want to back up your personal files because you don't have a cd writer or are just lazy, then make a /home partition and leave intact when upgrading or changing distros.
Personally, I think a single / partition makes better use of disc space but your mileage may vary.
|
|
|
03-18-2005, 04:43 PM
|
#7
|
LQ Newbie
Registered: Jan 2005
Location: Midwest
Distribution: Slackware/FC/CentOS/Ubuntu
Posts: 5
Rep:
|
Something I have wondered, and tried... Is is a good idea to use a single partition for /home if you have multiple distros? Then you still have all your personal stuff in your /home easily accessible no matter which distro you have booted up. Are there any ill effects?
|
|
|
All times are GMT -5. The time now is 03:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|