LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-18-2014, 09:00 PM   #1
synbiose
LQ Newbie
 
Registered: Sep 2009
Distribution: Debian
Posts: 2

Rep: Reputation: 0
Partition Scheme for 3 IDE HDD (40gigs) on Debian


Greetings Community,

I have been reading most questions for years on LQ, but never show up.. till today..

I have a old PC P4, 512 + 256 RAM with 3 hdd ide (40gigs each) total 120G

The intention is use this machine to Apache/PHP/MYSQL + ftp + ssh
divide by 3 users (me, my brother and my father)

The major question is, if i can divide home partition between the 2 IDE hdd (1 for each user)

For now i have a fresh install with Debian 7.5 (wheezy)

(use rookie partition scheme on install only 2 partitions root and swap)

sda (40gigs hdd) for main debian install with home/myuser + swap
sdb (40gigs hdd) only for 1 user only (exe: home/mybrother)
sdc (40gigs hdd) only for 1 user only (exe: home/myfather)


can this be done? have 3 home directories on 3 different hdd's?
I read after the install that is better spreed out swap partition between the 3 hdd's (for instance, i have only 500mgs swap on sda, but i can manage to have in the other 2 hdds the same scheme (/home/user + 500mgs swap)
 
Old 06-19-2014, 04:48 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 343Reputation: 343Reputation: 343Reputation: 343
Hi there,

Quote:
Originally Posted by synbiose View Post
I have been reading most questions for years on LQ, but never show up.. till today..
Almost. ;-)

Quote:
Originally Posted by synbiose View Post
I have a old PC P4, 512 + 256 RAM with 3 hdd ide (40gigs each) total 120G

The intention is use this machine to Apache/PHP/MYSQL + ftp + ssh
divide by 3 users (me, my brother and my father)
That would probably call for a rather slim distro, due to that low amount of RAM and CPU power (according to today's standards, anyway). Possibly a Debian with no X, or a minimalist Gentoo.

Quote:
Originally Posted by synbiose View Post
The major question is, if i can divide home partition between the 2 IDE hdd (1 for each user)
That's no problem, I'll get back to that in a moment. For me, the primary question is: Why care for the home directories at all? I'm running a small PC as a SOHO server myself - file server, mail server, Apache with PHP and mySQL, and a few small services. Not something as old as a P4, but an Atom-based machine. I'm accessing it as two different users (private and business), but these users' home directories remain nearly empty because they never log in locally, not even via ssh. Only root does occasionally, for maintenance purposes.

Quote:
Originally Posted by synbiose View Post
For now i have a fresh install with Debian 7.5 (wheezy)
One of what I suggested. Minimal install, no GUI, I guess?

Quote:
Originally Posted by synbiose View Post
sda (40gigs hdd) for main debian install with home/myuser + swap
sdb (40gigs hdd) only for 1 user only (exe: home/mybrother)
sdc (40gigs hdd) only for 1 user only (exe: home/myfather)

can this be done? have 3 home directories on 3 different hdd's?
Easily. Just mount sdb1 and sdc1 to a mountpoint of your choice and specify that directory using the --home switch with adduser when you create the new user(s). That way, you can assign any directory you want as the new user's home. With a little bit of trickery, you can even use /home/~user as the mountpoint, so that the location of ~ appears perfectly normal.

Quote:
Originally Posted by synbiose View Post
I read after the install that is better spreed out swap partition between the 3 hdd's (for instance, i have only 500mgs swap on sda, but i can manage to have in the other 2 hdds the same scheme (/home/user + 500mgs swap)
Basically, with a multi-disk setup it is clever not to put the swap partition on the same drive as the root file system. That way, swap and system files can be accessed independently and simultaneously without blocking each other. I think that might be a noticeable performance improvement especially on a low-performance system like yours.

Finally, bear in mind that the machine you're using is going to produce a considerable footprint on your electricity bill. Let's assume that old P4 has an average power draw of about 150W, that's about 1300kWh per year - more than 250 Euros per year at typical electricity rates in Germany. I don't think it's gonna be much cheaper in Portugal.

[X] Doc CPU
 
  


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
Best filesystem & partition scheme for a 1 TB USB 2.0 HDD for use with Videos? KDHofAvalon Linux - Hardware 7 01-19-2008 10:19 AM
Debian partition scheme Fredstar Linux - Newbie 6 07-09-2005 09:42 PM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 10:50 PM
HDD Partition Scheme rajames429 Linux - Newbie 2 04-09-2005 06:38 PM
debian install from hdd/win partition bxb32001 Linux - Newbie 0 05-24-2001 07:05 AM


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