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 11-24-2012, 09:13 AM   #1
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Rep: Reputation: 5
question about partitions and hdds


Hello,

Iím not having any trouble on my system but have been wondering if there would be any benefit of having different drives for different directories.

For example:
/boot and / on sda1
swap on sdb1
/opt on sdc1
/home on sdd1
etc...

Would it actually improve your system because of unloading data from different hdds for a particular task, instead of scanning different sectors of 1 hdd for the same task?
 
Old 11-24-2012, 09:23 AM   #2
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 418

Rep: Reputation: 20
In general, yes separation between drives helps. These days I find that much of what is do is not bound by disk performance though, and I have gone to a model where I have a small disk with boot, system, and swap. Then I have a NFS server with a /home and /common area.

If you have older, smaller drives, you might consider having boot and swap on one drive. Then you could, for example, have the system drive be a USB stick if you were playing with different distributions, etc.

You might also want to have a partition large enough for you to periodically snap a mirror of your /etc and /home areas.

What type of hardware, and disk drives are you planning on using...that would impact how one might lay things out?
 
Old 11-24-2012, 09:25 AM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hi,

it is useful to have data which are at once written/read on different disks. I have two disks in my server, when I move data from one disk to another that's faster than moving data from one partition to another on the same disk.

If you have a system with few of RAM and therefore the Swapspace is often used, your system would profit if you put the swapspace on another disk than your /usr or /home directory.

Markus
 
Old 11-24-2012, 06:38 PM   #4
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Original Poster
Rep: Reputation: 5
Thank you for your replies.

I’m not currently in the process of implementing this idea but I may do it in my next system build.

Maybe not a different hdd for every directory but just separate my swap and and other frequently written to directories.
 
Old 11-25-2012, 03:14 AM   #5
Slyke
LQ Newbie
 
Registered: Jul 2012
Posts: 19

Rep: Reputation: Disabled
Wouldn't this help with speed, as you are retrieving data from 2 separate disks? Kind of like how RAID 0 works. That is, assume the data you're after is over 2 different disks.
 
Old 11-25-2012, 03:18 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,807

Rep: Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168Reputation: 2168
Quote:
Originally Posted by Adol View Post
... but just separate my swap and and other frequently written to directories.
Fix the problem, not the symptom.
So what is your swap rate - say in pages per second/minute/hour ?.
 
Old 11-25-2012, 06:07 AM   #7
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by syg00 View Post
Fix the problem, not the symptom.
So what is your swap rate - say in pages per second/minute/hour ?.
Actually there is no problem. My system is working well as it is with all main directories on different partitions of 1 disk. I was just wondering if performance would be better with splitting it across disks. I cant help but try to improve on something even if its miniscule.

Also, how would you go about benchmarking swap?
 
Old 11-25-2012, 09:58 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
It is very common to have a separate /home partition. This allows retaining your personal files between reinstalls.
A /boot partition is needed if you use raid or lvm volumes.

For servers, separate partitions allow the file systems to be mounted differently, and prevent logs from filing up the root partition.
 
  


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
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 05:02 PM
Accessing other HDDs/Booting from other HDDs Namatacka Ubuntu 2 05-07-2006 11:21 AM
Partitions question mebrelith Linux - General 2 01-28-2005 05:07 PM
dont know how to find my hdds with linux (mandrake10, ntfs partitions) booomups Linux - Newbie 8 03-14-2004 04:57 PM
2 hdds win+linux 1 question. tiger7007 Linux - Newbie 6 08-10-2003 10:26 AM

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

All times are GMT -5. The time now is 01:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration