LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-29-2011, 09:49 AM   #1
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.1 64bit-Gnome 3.10 on ASUS U52F
Posts: 1,417

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Looking for advices on partitioning my HD


Hi Linux users.
I have in mind setting up a dual boot with two Linux distros but I would like to have them sharing Home and swap.
So I am looking for advices on how to partition the HD
the size of the hard drive 120GB.
In the future I might be interested in squeeze a BSD installation too which I will be leaving a 30 GB for it

I dont know if I can segment the hard drive in more than four partitions. The tool I have in mind is Gparted

I will appreciate your advices.
Thank you
 
Old 12-29-2011, 10:17 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,642
Blog Entries: 1

Rep: Reputation: 229Reputation: 229Reputation: 229
Hi

You can only have 4 primary partitions but you can have extended partitions within the primary partitions.

As for sharing Home it,s not a good idea it would be better to have each distro with it,s own home and a data partition shared between each distro.

Swap can be shared by each OS
 
1 members found this post helpful.
Old 12-29-2011, 10:24 AM   #3
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
You can only have 4 primary partitions, but one of these can be an extended partition that can contain several logical partitions (the max # depends on disk type, but at least 11). This is in a simple "hard" partitioning scheme not considering options like LVM or RAID.

30 G seems like a lot to set aside for each OS root on a 120G drive if there is going to be a separate /home partition.

Another consideration is that different distributions' software can be incompatible when it comes to the config files in your home directory. I'm experimenting with workarounds for that problem. Each system has user jimb with the same uid, but only one uses /home/jimb on the home partition. The others have /home/jimb on the root partition, home partition is mounted on /home2, and /home/jimb/Data is a symlink to /home2/jimb. This way the user can access the same data without messing with the configurations. It's ugly but it works!
 
1 members found this post helpful.
Old 12-29-2011, 10:26 AM   #4
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,064

Rep: Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788
Two distros can share swap, because its only being used when it's being used, if you see what I mean. But it may be a bit risky to let them share /home. There's always the chance that you may have different versions of the same program that use different configuration files and so get confused. That's what you might call the received wisdom on the subject. In practice, I suspect nothing would go wrong, but I offer no guarantees!

BIOS only allows 4 partitions, but you can call one an extended partition and then create as many new ones as you like (called logical partitions) inside that. Luckily, Linux can boot from a logical partition: Windows and BSD can't.

P.S. 3 answers at once: it only happens at LQ!

Last edited by DavidMcCann; 12-29-2011 at 10:28 AM.
 
1 members found this post helpful.
Old 12-29-2011, 10:44 AM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
If using more than one distro, maybe define one as primary distro, and others as secondaries

I mean install /, /boot, and swap partitions as primary partitions on the drive, for the main distro
(/boot at start, then swap and /)
Make extended partition for the 4th primary partition, and the rest as logical

Then install secondary distros in logical partitions

Just a thought, that's how I would do it but I am used to use just one distro...

Last edited by Cedrik; 12-29-2011 at 10:46 AM.
 
1 members found this post helpful.
Old 12-29-2011, 11:02 AM   #6
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.1 64bit-Gnome 3.10 on ASUS U52F
Posts: 1,417

Original Poster
Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Thank you.
I am new to the world of UNIX like OSs so I thought to try a couple mainly with the purpose of learning. I understand there are .deb base distros and RPM base and ofcourse there is also the .tar.gz format
Probably installing each distro in its own partition is the easiest route here but I thought I could get more off my hardware by having them share common space.
Perhaps the two Linux distro in one big logical partition divided by two extended partition?

I know BSD uses its own format that is why I am thinking to allocate 30GB for the whole installation (BSD Home + Root)

Thank you, I really appreciate your advices.
 
Old 12-30-2011, 11:14 AM   #7
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,064

Rep: Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788Reputation: 788
There's not all that much difference, really. This shows how similar things look from the user's point of view:
http://distrowatch.com/dwres.php?res...age-management
Of course, if you were a programmer, putting a deb and an rpm together are two different things.

Looking at the various desktops or window managers is interesting. As you can see at this forum, we can get quite emotional over the merits (and otherwise) of KDE, Gnome, Xfce, Fluxbox, etc. You can install several at once in a single distro and select the one you want when you log in.
 
Old 12-30-2011, 11:32 AM   #8
carvaDOS
LQ Newbie
 
Registered: Dec 2011
Location: Indonesia
Distribution: Ubuntu, Linuxmint
Posts: 4

Rep: Reputation: Disabled
to my knowledge until now, disk partition can only hold 4 primary partitions. so if the partition prijer not so necessary. you better be in the form of a logical partition. I installed LinuxMint use partition logic. I use the EPM (Easeus partition master) to repartition my hdd, please leave 100mb for swap space your hdd. in my computer I use 3 operating system. with 10GB of swap space. please download the EPM in http://www.partition-tool.com/download.htm
 
Old 01-01-2012, 10:47 AM   #9
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.1 64bit-Gnome 3.10 on ASUS U52F
Posts: 1,417

Original Poster
Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Thank you for your advices. I was able to install FreeBSD in a primary partition set it up with KDE then I installed SlackWare in a logical partition 10 GB for its /root with Xfce and OpenSuSE in another 10GB logical partition for its /root with Gnome
The two Linux distros are sharing 2GB of swap and I wish they could share 30 GB for /home.
Its been a great learning experience doing this set up thank you to all who replied to this post.
 
  


Reply

Tags
bsd, dual boot, hard drives, hardware, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] upgrade to 13.1 from 12.2 - need advices c0deland Slackware 3 01-14-2011 05:31 AM
Nessus and advices when using it zillah Linux - General 4 01-27-2007 10:47 PM
asking for advices linwenyuan General 1 10-27-2006 04:14 AM
new computer advices kvasarnomad Linux - Hardware 3 05-16-2005 02:52 AM
need some advices, which way is better foxele Programming 4 11-29-2004 12:42 AM


All times are GMT -5. The time now is 06:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration