LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-09-2009, 03:03 PM   #1
Rick069
Member
 
Registered: Feb 2005
Distribution: Arch Linux
Posts: 204

Rep: Reputation: 30
What's the best partition setup


Is the default partition setup for the latest version of Mandriva necessarily the best? I have 8 gigs of ram and I'm wondering if I should set it up differently.
 
Old 11-09-2009, 03:20 PM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Errm, which religion is best? brand of cars? brand of intoxicant liquor?

When you get unanimous agreement on those you can confidently expect agreement on this question.

Quote:
Originally Posted by Rick069 View Post
Is the default partition setup for the latest version of Mandriva necessarily the best?
I'm pretty sure that I can argue that it isn't necessarily the best, given the amount of different conditions and set-ups it has to cope with.

Quote:
I have 8 gigs of ram
The amount of ram really isn't relevant top partitioning in any way except for swap. Assuming this is a desktop, you shouldn't end up using much swap, if any at all, most of the time, but I'd still go for a small amount, in any case (for the 'fail gracefully' reason).

If you want to suspend to disk, that would need more swap, but with modern disk sizes that probably isn't a problem.
 
Old 11-10-2009, 06:41 AM   #3
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
The initial partitioning scheme I use here is as follows:

First Linux Partition - for root of file system (/) - about 10 GB
Second Linux Partition - for swap - about 2 GB
Third Linux Partition - for user space (/home) - all available remaining hard drive space

My reasoning is as follows:

Setting the system partition (/) at 10 GB results in about 50% free space so the system does not lose efficiency due to a shortage of free hsrd drive space. Even though the system can usually run efficiently with as little as 20% free space, I chose this size to allow for future installation of additional software.

Setting the swap partition at 2 GB allows for room to suspend to ram - my system has 2 GB RAM. I have never read that there is any correlation between the amount of ram on a system and the best size of the swap partition for this purpose, but since I have more than 100 GB at my disposal, I did not want to be too stingy with swap space. With 8 GB, you may want to consider using an 8 GB swap partition if you see my logic as sensible. Others with greater knowledge derived from formal training may provide dissenting input, and you should give their opinions more weight than mine because I have no formal training even though I have more than a decade of experience using Mandriva Linux. I started using Linux late in 1998 when I installed Mandrake Linux 6.1.

Giving all the remaining storage space to the /home partition allows for as much user space as possible. The /home partition is where your user settings are stored, and it is where you will store all those things you download such as music, video, and whatever else catches your attention. With your system's user space on its own partition, user settings and data survive the installation process, although you will have to install any software packages that are not installed by default. Mandriva publishes two releases each year. The initial release of a new version (currently 2010.0) usually comes out in November, and the spring edition (2010.1) is usually released in April. Using a separate user space (/home) partition can greatly simplify the transition, although I strongly recommend a good back up regimen to safeguard anything you keep on your computer that is important to you.

As stated in the previous post, you will get as many opinions as responses to your inquiry. I hope my opinion and the reasoning behind it will be helpful to you in developing a partitioning scheme that works well for you,
 
Old 11-10-2009, 07:01 AM   #4
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Code:
/ -> 10
swap -> 2
/var -> 20 or more 
/home -> as much you want
 
Old 11-10-2009, 12:04 PM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,146

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Contrary to what some old sources tell you, you don't need a swap partition unless you want to hibernate or have a RAM shortage (hardly the case for you!) And hibernating doesn't save much time on a big computer: it takes time to shift 8GB.

I use 10GB for root; you'll never run short on space, and things will stay tidy.

A separate /home partition is always worth making, enabling you to reinstall if you ever have a nasty accident. Other partitions are only needed on servers.
 
Old 11-10-2009, 01:23 PM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Things to consider ...

If you may have more than one distro you may want to split the file systems into distro-specific and not-distro-specific so you can mount the not-distro-specific file systems under all OSes.

If you want to snapshot file systems so you can a) back up sets of files (such as multi-file databases) at a point-in-time and b) verify backups despite changing backed up files during the backup then LVM is a solution (this is not really about file system sizes but does come into planning file systems).

If you want to make your system robust against applications that may fill /tmp then you may want a separate /tmp file system (1 GB should be enough). Similar for /var because that's where logs go and they can be very big. In both cases the reason is to avoid / filling which can be difficult to cope with.
 
Old 11-10-2009, 02:08 PM   #7
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by DavidMcCann View Post
I use 10GB for root; you'll never run short on space, and things will stay tidy.
On this laptop, where I do lots of miscellaneous 'non-serious' stuff, I have a 20G / partition of which I have used 59%, so if you are an 'install-everything' type, 10G might prove just a bit tight.

Note that the amount of space that you need for / depends on what gets shuffled off into other partitions; the laptop referred to above has a separate /home, but nothing else (/var, /tmp, /usr...) is separate.

The OP has not said anything about the size of disk being used (or, if there is another/are other OSs on the disk, how much is available for this install) nor what the machine is used for (the recommendations could be different for a server compared to those for a desktop).
 
Old 11-10-2009, 09:24 PM   #8
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,658
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, I'm continually breaking my system and therefore have secured my data with separate partitions.

I'm not looking for any corrections, but I believe that a fresh install requires the formatting of / and /usr, at the least.

I have 2 other HD's on this machine, I leave them out of this as they are fat32 or vm(VBox) drive space.

Here's what I have done, and it works quite well. Although I am planning on an upgrade to ext4....

Code:
/dev/sda1 /mnt/win_c ntfs 23Gb		winxpsp2 native
/dev/sda5 /boot ext3 538Mb		boot
/dev/sda6 / ext3 7.5Gb			root,  will be formatted on re-install
/dev/sda7 /var ext3 19Gb		var
/dev/sda8 /home/glenn/local/vm1 ext3 21Gb		vBox virtual machine(winxpsp2, boot)
/dev/sda15 /var/www ext3 21Gb		internal web server
/dev/sda9 /tmp ext3 4.2Gb		heaps of space, recycle bin
/dev/sda10 /mnt/win_d vfat 21Gb		Shared docs and data
/dev/sda11 /home/glenn/local/Music ext3 17Gb	mp3's
/dev/sda12 /home/glenn/local/Archive ext3 47Gb	Shared docs and data, linux
/dev/sda13 /var/spool ext3 10Gb		squid proxy cache
/dev/sda14 /home/glenn/local/Spare ext3 46Gb	Backups, archives and vBox virtual machine(dos622)


/dev/sdb2 swap	3.8Gb			linux swap partition
/dev/sdb5 /usr ext3 8.4Gb		usr, will be formatted on re-install
/dev/sdb6 /var/ftp ext3 32Gb		rpm storage and backups of complete games packages
/dev/sdb7 /home/glenn/local/vm2 ext3 15Gb		vBox virtual machine(winxpsp2, swap and arch.)
/dev/sdb8 /mnt/win_c2 vfat 21Gb		Shared docs and data
/dev/sdb9 /mnt/win_d2 vfat 14Gb		Shared docs and data
/dev/sdb10 /home ext3 53Gb		Home
/dev/sdb11 /usr/local 5Gb		source program installs
/dev/sdb12 /opt ext3 5Gb		vbox and printer install
Regards Glenn

Last edited by GlennsPref; 11-10-2009 at 09:25 PM. Reason: spelling
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-distro partition setup; does this sound like a good setup? Twilight in Zero Linux - General 5 02-22-2009 12:15 AM
Partition Setup for Mandriva linuxbewbie2 Linux - Newbie 3 01-20-2006 11:43 PM
Partition Setup bobby_hawk Slackware 14 12-31-2005 12:02 PM
partition setup cxtech Slackware 4 03-05-2004 01:30 AM
Help with setup/partition Netrack Linux - General 7 01-15-2003 08:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration