LinuxQuestions.org
Review your favorite Linux distribution.
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 04-08-2009, 07:42 AM   #1
nicholls15
Member
 
Registered: Jun 2004
Location: Dublin
Distribution: Ubuntu Intrepid
Posts: 31

Rep: Reputation: 16
Best way to partiton linux (ubuntu)


Hi Folks

I have brand spanking new 250gb hard drive for my latop that I'm going to use for linux(ubuntu) only .

I was thinking of partitioning the hard drive like this

swap : 512
/ : 15gb
/home : the rest


Anybody got any other recommendations or alternatives.
 
Old 04-08-2009, 07:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
well you'll want a seperate /boot at about 50mb, and i'd make swap at least 2gb for fun. other than that that will work just fine.
 
Old 04-08-2009, 07:55 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
You could also give some space to boot just in case? Maybe a gig or two but you would not need so much of space there.
 
Old 04-08-2009, 08:00 AM   #4
hemantm
LQ Newbie
 
Registered: Feb 2006
Distribution: OpenSuse, Ubuntu, Debian, Fedora
Posts: 26

Rep: Reputation: 16
You can also plan to use LVM, with a separate partition for /boot
 
Old 04-08-2009, 08:13 AM   #5
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Actually, could have anything from just 1 partition (just /) or 4-5 (e.g. /boot, /, /home, /var, swap).

The general advice on swap has been about 1.5x size of memory. However many have been arguing that when you approach 3-4 Gb of RAM you don't actually need any swap. This is on the bases any swap is unlikely to be used, but it does depend on how you use the machine.

On a laptop where you don't plan to try out lots of different OSs or boot lots of different Linux kernels, the benefit of having a /boot partition is also limited. So on a general purpose, personal laptop with 1 or 2 Gb of RAM I would have limited myself to swap and /. You'll just waste space by splitting it further.

Mons
 
Old 04-08-2009, 08:49 AM   #6
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,635

Rep: Reputation: 473Reputation: 473Reputation: 473Reputation: 473Reputation: 473
nicholls15:

An old man's advice:

Someday you will grow inquisitive over some distros and you may want to install them for a try in your nice laptop. Or that you will come to need badly a software that only runs over an xp like the nokia pc suite, and you may want a little space for that lame duck from the primary slices since it doesn't install anywhere else.

If I had your nice hard drive I will spare two more primary partitions of 6 GBs each aside from the first partition. The rest you can slice them into logical partitions as many as you can to house your /home /usr and data.

So it looks like this:
1st partition -type Primary 6 Gbs
2nd partition -type Primary 6 Gbs
3rd partition -type Primary 6 Gbs
4th partition -containing logical drives 232 Gbs all

LONG TERM PLAN is necessary in partitioning fresh drives because when time comes you need primary or logical spaces adding new ones will sometimes require moving up and down existing data: you can only imagine what patience you'll need moving 50Gb of data to another span of sectors. Anyway if meantime the other two primary partitions are not yet needed you can use them for some important ubuntu folders like /boot /etc and /usr.

Also allocate two or three separate swap partitions at sizes you want somewhere the beginning sectors of 4th partitions that they be nearer to the primary partitions, just in case someday you'd want to run Slackware or RHL or other distros in your beautiful laptop (although linuxes are really good to install even at the tip of logical drive.)

This is just an old man's advice. I can only show you the door, but you're the one who'll walk through it.

Hope this helps.

Good luck.
 
Old 04-08-2009, 08:53 AM   #7
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,635

Rep: Reputation: 473Reputation: 473Reputation: 473Reputation: 473Reputation: 473
++++++
Edit.
Sorry double posted.
++++++

Last edited by malekmustaq; 04-08-2009 at 09:01 AM. Reason: clicked twice by a shaking finger :)
 
Old 04-08-2009, 01:24 PM   #8
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
You may also want to think about what partitioning can do for your security:

Add a separate /tmp partition, and mount it with noexec, nosuid, nodev options set (don't allow files to be executed, ignore suid and don't treat files as device files).

Mount /home nosuid, nodev

These steps will make it more difficult for an attacker to get a file onto your machine, execute it then escalate privileges.

Rob
 
Old 04-08-2009, 02:26 PM   #9
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
/ root 10Gb
swap 1Gb
20Gb home

and the rest as to what you want, may be keep some for trying out some other Disco's.
 
  


Reply


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
how to make partiton in linux saritha Linux - Newbie 6 01-17-2008 12:41 AM
partiton ubuntu/xp home sound problem repainter Linux - Software 3 12-17-2007 02:58 PM
partiton magic for linux demmylls Linux - General 4 11-29-2003 05:43 PM
Increasing partiton size of linux balanagireddy Linux - General 2 09-20-2003 08:13 AM


All times are GMT -5. The time now is 08:05 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration