LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-07-2011, 11:38 PM   #1
jim_d
Member
 
Registered: May 2010
Posts: 50

Rep: Reputation: 0
Comment on partitioning strategy?


I'm planning to partition a new hard drive to dual-boot Mint+Mepis. I've read partitioning tutorials and posts, and want to check my understanding--I'd appreciate input from an experienced person.

For 500GB hard drive, dual-boot Mint+Mepis:
--Mint: / root partition for OS; /home partition for ease of upgrading
--Mepis: same as Mint
= four partitions

And:
/swap partition to be shared between Mint+Mepis
/shared partition for shared data
= two partitions

Total = six partitions

Since four primary partitions are allowed, I should use three primary partitions and one extended partition containing three logical partitions.

Is that correct?

If so, what should go where? I assume there's an optimal strategy--Should each /root of Mint+Mepis go in a primary? What should go in the other primary, and in the three logicals? Or maybe I don't need three primaries?--use two primaries and four logicals?

Any suggestions about partition size for /root OS? With 4GB RAM, should swap file = 8GB?

Am I thinking about this correctly?

Thx for input--
 
Old 03-08-2011, 01:11 AM   #2
tommyttt
Member
 
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

Rep: Reputation: 34
Hi Jim D;

Quote:
And:
/swap partition to be shared between Mint+Mepis
/shared partition for shared data
= two partitions

Total = six partitions

Since four primary partitions are allowed, I should use three primary partitions and one extended partition containing three logical partitions.

Is that correct?
Yes, that would work. Here is what I did that is similar.

My partitions: Drive size = 500 GB
Number Size Mount File Flags
Point System
1 41.9GB /windows 7 ntfs type=07
2 15.7GB /shared-win ntfs type=07 << shared between windows and linux
3 41.9GB /BSD ext3 type=83
4 400GB Extended extended type=05
5 370MB /boot ext3 type=83 << I use a common boot which requires editing
6 4294MB swap linux-swap type=82 << /boot/grub/menu.lst
7 21.5GB /downloads ext3 type=83
8 10.7GB /source ext3 type=83
9 52.6GB /temp ext3 type=83
10 33.6GB /SuSU 11.4 ext3 type=83
11 31.5GB /SuSE 11.3 ext3 type=83
12 8390MB /opt ext3 type=83
13 238GB /Common ext3 type=83

/home/user is kept in root (/) for each distro with symlinks to data and common
configuration files/folders in /Common (Documents, Pictures, Music, etc.). One
needs to ensure that each user has the same UID in each distro for this to be
efective. This allows for new installs and upgrades without loosing personal
data (but back it up anyway). This also saves space as the symlinked directories
are the ones which tend to grow huge.

You also have to be aware of version variations between distros. When this
occurs, the config files should remain in /home/user.

The above partitioning allows me to use a common /boot partition. I use legacy
Grub as the bootloader which I must occassionally edit when testing a new distro.
If you do this, be sure to back up the /boot partition (actually, I backup
everything before any install or upgrade to be safe).

Tom

Last edited by tommyttt; 03-08-2011 at 01:13 AM.
 
Old 03-08-2011, 02:35 AM   #3
kevinbenko
Member
 
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Stable {Probably forever}
Posts: 629

Rep: Reputation: 174Reputation: 174
I've been using LVM (Logical Volume Management) since about 2006, and the only problems I've had with it were self-inflicted (when a command-line application warns you that doing something is not a good idea, listen to it!).

I've got "/" and "/boot" as legitimate physical partitions, with a bunch of logical volumes mounted on "/".
 
Old 03-08-2011, 09:28 AM   #4
jim_d
Member
 
Registered: May 2010
Posts: 50

Original Poster
Rep: Reputation: 0
Thx for info.

I recall reading it's best to put the OS /root in a primary partition, because primaries are closer to the center of the hdisk so the reads are faster. Is this significant?

tommyttt, as a newb, your setup looks complex but I think I get it. I want to keep my setup as simple as possible while I learn, so will deal with symlinks later.

Would it be safest to make all my partitions ext3? I've seen this recommended. This hdrive is Linux-only.

Is a 30GB partition for each OS adequate?

So if I make Primary1-Mint and Primary2-mepis each 30GB; make Primary3=Extended and put /home-Mint, /home-mepis, swap, and shared, as logicals in Extended. Does this seem reasonable?

I'm not clear how unused disk space works. I'll have alot of extra space on this 500GB drive, as I don't have many video/photo/music files. Should I have a partition for future use, if I want to try an additional distro?
 
Old 03-09-2011, 03:08 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
You might also think about a dedicated /boot partition with a boot loader for all later distros, like it was described here: http://www.linuxquestions.org/questi...tition-698193/. Size about 100 - 150 MB.

Quote:
Originally Posted by jim_d View Post
...I recall reading it's best to put the OS /root in a primary partition, because primaries are closer to the center of the hdisk so the reads are faster. Is this significant?
I never noticed a measurable effect, but if you feel better about it ... at least it can't hurt. (I hope ).

Quote:
Originally Posted by jim_d View Post
...Would it be safest to make all my partitions ext3? I've seen this recommended. This hdrive is Linux-only.
I suggest ext4. That is faster particularly during the obligatory file system checks.

Quote:
Originally Posted by jim_d View Post
...Is a 30GB partition for each OS adequate?
It is excessive . You will have a shared data partition, after all. 10 GB will do comfortably from my experience.

Quote:
Originally Posted by jim_d View Post
So if I make Primary1-Mint and Primary2-mepis each 30GB; make Primary3=Extended and put /home-Mint, /home-mepis, swap, and shared, as logicals in Extended. Does this seem reasonable?
Yep. With the adjusted size and possibly a /boot partition, as suggested above.

Quote:
Originally Posted by jim_d View Post
I'm not clear how unused disk space works. ... Should I have a partition for future use, if I want to try an additional distro?
It doesn't "work" at all. It just awaits future use. You can partition it any time you like, now or later or just ignore it. It is more sensible to create partitions according to your actual needs at the moment you need them in the size you need and with the file system of your choice. HTH.

Last edited by JZL240I-U; 03-09-2011 at 03:13 AM.
 
  


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
no post really just a comment lonewitch Linux - Newbie 2 11-27-2009 11:12 PM
Partitioning Strategy for Dual Boot With openSuse PointToVerify Ubuntu 12 11-19-2009 01:34 PM
just a comment me99 Linux - Distributions 4 04-13-2009 09:48 PM
Just a comment... arobic Linux - Newbie 20 08-22-2003 01:46 PM
comment wardrazer *BSD 2 07-14-2003 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:41 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