LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-28-2004, 06:13 PM   #1
new2server
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Rep: Reputation: 0
partitioning confusion


I hope you don't mind giving me some advise on my partitioning set up since I am going to install cpanel whm. I have been searching for partitioning set up and have found the cpanel tips website. BUT, I am left puzzled why as setting up my partitioning in red hat 9 text mode, I was given this partitioning setup. Will you kindly be glad to offer assistance?

Device Start End Size Type Mount point

/dev/hda1 1 13 101m ext3 /boot
/dev/hda2 14 274 2047m swap
/dev/hda3 275 14437 111097m ext3 /home
/dev/hda4 14438 19929 43080m Extended
..../dev/hda5 14438 16987 20002m ext3 /var
..../dev/hda6 16988 19537 20002m ext3 /usr
..../dev/hda7 19538 19798 2047m ext3 /
..../dev/hda8 19799 19929 1027m ext3 /tmp


This is for a 120GB Hard drive

I appreciate hearing from you,
Vince

I did get some advise to set up a 120gb hd as:
/ 2048
/boot 100M
/usr 8192M
/var 8192M
/tmp 1024M
swap (x2 RAM, Max 2048M)
/home fill to disk

I tried to set up partioning in order as listed and recieved the result above...
 
Old 03-28-2004, 07:21 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
How you partition depends on your needs. Here are some reasons to make certain directories as separate partitions ( on a single hard drive. The situation is different when you have multiple hard drives). It the reason does not apply to you then don't make that directory a separate partition.

/boot - If you are using a very old BIOS then you may have to place /boot at the beginning of the hard drive in order to be able to boot.

swap - Swap as a separate partition runs much faster than a swap file.

/home - When you upgrade your Linux distribution it is easier to preserve your personal data if /home is a separate partition.

/var - If you get a lot of log messages then the logs will consume all of the free space in the partition. When this happens Linux will crash. If /var is on its own partition then only logging will cease. This problem happens sometimes to servers.

/usr - There is no advantage to having a separate /usr partition on a single hard drive system.

/ - A slash partition is required.

/tmp - Similar to /var. It is possible for a rogue program to fill up an entire partition's free space with garbage in /tmp. Linux is less likely to crash if /tmp is a separate partition.

"I did get some advise to set up a 120gb hd as:
swap (x2 RAM, Max 2048M)"

Swap being 2x RAM is a rule of thumb developed when RAM and hard drives were much smaller. If you have 1024M RAM then 512M swap is more than enough.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 03-28-2004, 07:28 PM   #3
new2server
LQ Newbie
 
Registered: Feb 2004
Posts: 19

Original Poster
Rep: Reputation: 0
I'm a complete dork.... it not a 120gb. it is a 160gb. sorry me bad...
 
Old 03-28-2004, 07:36 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"it not a 120gb. it is a 160gb"

In either case you have space to burn. I suggest that you create enough spare partitions for a second install. That way when you upgrade Linux you can install the new system in parallel with the old and run both until the new system is stable. You do not need two swap partitions. Different Linux systems can all use the same swap partition.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


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
Firefox - much confusion millsey Linux - Software 4 08-28-2005 03:31 PM
a little confusion..... b0nd Linux - Newbie 1 02-17-2005 06:45 AM
WM Confusion phoeniXflame Slackware 3 02-16-2003 05:19 AM
Some confusion about RH 7.3 psyklops Linux - Distributions 2 05-08-2002 03:08 PM
A small partitioning confusion concoran Linux - General 4 01-07-2002 01:59 PM

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

All times are GMT -5. The time now is 08:19 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
Open Source Consulting | Domain Registration