LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-27-2013, 11:23 PM   #1
DavidLee1A
Member
 
Registered: Dec 2012
Distribution: Debian Wheezy amd64
Posts: 123
Blog Entries: 12

Rep: Reputation: 5
Discussion on partioning/organizing a hard drive


I have a longterm goal of running Debian 7 (Gnome 3), openSuse 12.3 (KDE), a system running XFCE desktop, Back Track, Gentoo, and a Linux from Scratch Project on a hard drive (I selected these for learning purposes). I also plan on eventually compiling a kernel.
I've got 1.5 TB. I believe we are allowed 4 partitions but the Extended portion can be used for the "extra" distro's (?)
What would be the best way to organize the hard drive?
 
Old 05-28-2013, 12:53 AM   #2
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
A common swap for all, followed by two principal partitions(for one OS each), then a extended partition containing the others OS partitions and home partitions.
 
Old 05-28-2013, 05:57 AM   #3
DavidLee1A
Member
 
Registered: Dec 2012
Distribution: Debian Wheezy amd64
Posts: 123

Original Poster
Blog Entries: 12

Rep: Reputation: 5
I have 10 GB RAM so maybe a 12 GB SWAP?

What Partition tool do you think I should use to set this up? (I have Parted Magic but I could make a GPARTED disk)

I have 1.5 TB ... would the following plan be good? :
Primary: 350 GB Debian 7
Primary: 250 GB openSUSE
Extended: about 700 GB (100 GB=Lightweight Distro running XFCE, 100GB=Back Track, 100GB=GENTOO, ?=Linux From Scratch)
SWAP 12 GB

current situation:
Code:
# fdisk -l

Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000f1f36

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048  2889455615  1444726784   83  Linux
/dev/sda2      2889457662  2930276351    20409345    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5      2889457664  2930276351    20409344   82  Linux swap / Solaris
 
Old 05-28-2013, 06:13 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Unless you expect some serious runaway processes or major data sets in memory, swap of eg 4GB should be plenty and probably largely unused.

Conventionally, you can have up to 4 primary partitions.
If you want more, most people have primaries, then an extended partition that contains all the rest (logical) partitions.
http://tldp.org/HOWTO/Partition/

EDIT 'most people have 3 primaries'

Last edited by chrism01; 05-28-2013 at 07:55 AM. Reason: add '3'
 
Old 05-28-2013, 06:40 AM   #5
DavidLee1A
Member
 
Registered: Dec 2012
Distribution: Debian Wheezy amd64
Posts: 123

Original Poster
Blog Entries: 12

Rep: Reputation: 5
I though that if you want to Hibernate then the swap should be slightly larger than the RAM?
 
Old 05-28-2013, 07:28 AM   #6
Stéphane Ascoët
Member
 
Registered: Feb 2004
Location: Fleury-les-Aubrais, 120 km south of Paris
Distribution: Devuan, Debian, Mandrake, Freeduc (the one I used to work on), Slackware, MacOS X
Posts: 251

Rep: Reputation: 49
Thumbs down Partitioning

Quote:
Originally Posted by DavidLee1A View Post
I have 10 GB RAM so maybe a 12 GB SWAP?
I didn't know that you already had partitions, so keep the swap as it is by know. Or have you planed to delete them?
Quote:
What Partition tool do you think I should use to set this up? (I have Parted Magic but I could make a GPARTED disk)
I don't know
Quote:
I have 1.5 TB ... would the following plan be good? :
Primary: 350 GB Debian 7
Primary: 250 GB openSUSE
These sizes are a lot too large for system partition. Keep your space for data partitions.
 
Old 05-28-2013, 07:57 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
I though that if you want to Hibernate then the swap should be slightly larger than the RAM?
That's true; it didn't sound like a system that would be hibernated.
 
Old 05-28-2013, 04:22 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Almost every installer can make partitions. Even if you have a live cd you can usually add gparted to the live boot if needed. Fdisk is still useful.

I think you could easily consider a virtual machine or 6 and not play with all that partition deal. I'd stick with one main OS and then run everything else as virtual.

There is some formula for how much ram if you want to hibernate. I also would have not thought you would use hibernate.
 
Old 05-28-2013, 05:40 PM   #9
DavidLee1A
Member
 
Registered: Dec 2012
Distribution: Debian Wheezy amd64
Posts: 123

Original Poster
Blog Entries: 12

Rep: Reputation: 5
@jefro I am still a newbie so lacking experience I am trying to keep my options open. Debian 7 turned out to be easier to install for me than openSUSE or MINT (go figure). Debian is all on a 350 G primary partition. I left about 200 GB unused right after it and I decided, for educational purposes, to build Gentoo on there (my current project, using a Gentoo minimal install). The rest is about 1 TB of Extended (my swap is at the end of that), an LFS project should be able to go on there, I think. Anybody is welcome to comment on whether this is the best path to learning about Linux. No doubt I will have to study GRUB to get Gentoo to boot properly. There is some pressure to do this right on a real partition. I REALLY APPRECIATE THE HELP AND EDUCATION I AM GETTING FROM LINUXQUESTIONS.ORG! I hope to someday have the knowledge to give back to the Linux community.
 
Old 05-28-2013, 07:40 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
It is my opinion that playing with a lot of different installs on a single system gets more confusing than it would be for a simple one or two OS install. That is why I suggested the virtual machine. It allows you to more easily install many OS's and not get bogged down with chainloading, lilo, grub and such.

In almost every use, a virtual machine client running on a host is just as if you had two computers. Every task you have to do on the vm client is exactly what you'd have to do for a real install.

But, there is no way to say one way to learn is better. Enjoy is best path.


Gentoo and LFS will be a path of nuts and bolts. They are very hands on, details about the steps need to be known or understood to some extent. They are both great ways to learn but it would be self taught for the most part. Fortunately the documentation is easy to get and when read a few times makes sense.
 
1 members found this post helpful.
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble partioning and formatting new hard drive netrambler Linux - General 8 12-31-2006 11:50 AM
Expert opinion partioning hard drive & making raid 1 coskun Linux - General 0 07-07-2003 08:40 PM
hard drive partioning Eskimo Linux - Newbie 24 11-16-2001 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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