LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2007, 08:09 PM   #1
ScottReed
Member
 
Registered: Dec 2005
Location: Montana
Distribution: Debian "squeeze"
Posts: 157

Rep: Reputation: 30
Smile Upgrading hardware and OS


Hi all -

Am getting ready to do a fresh install of Slackware 12.0

I have been running and upgrading Slack on the same box since v9.0 and I just feel that moving to the 12.0 release via an upgrade is not the right choice right now.

I'm looking to add a new video card, more ram, but most importantly two new SATA 300gb Seagate drives to my box. Then, perform a fresh install of 12.0

Was trying to put together spec sheet for myself before I perform the install and was wondering about partitions...

I do not have a very good RAID controller on my MS-6702 (K8T-NEOFISR2) mb. So, i'll basically be running two drives, sda and sdb. How would you all recommend I go about partitioning the new drives?

One of the biggest things I do, and always notice a performance increase during the process, is transfer large amounts of data from customers hard drives to my local drive for backup purposes. This is basically IEEE1394 to sda# (my only drive). I want to be able to perform these tasks and not have to worry about slowness during the process. I'd assume I would just copy the data to sdb# and keep all the OS related data on sda#

So how does this layout look:

/dev/sda - 300gb
sda1 - /boot - 40mb
sda2 - / - 296000mb
sda3 - SWAP - 4000mb

Note: I have 2gb physical RAM, so I always just double the total amount to determine SWAP...

/dev/sdb - 300gb
sdb1 - /home/scott/tuneage - 200gb
sdb2 - /Customer_Backups - 100gb

Any input is appreciated,
Thanks,
Scott
 
Old 07-28-2007, 08:49 PM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by ScottReed

So how does this layout look:

/dev/sda - 300gb
sda1 - /boot - 40mb
sda2 - / - 296000mb
sda3 - SWAP - 4000mb

Note: I have 2gb physical RAM, so I always just double the total amount to determine SWAP...

Any input is appreciated,
Thanks,
Scott
2Gb RAM!!! you actually don't need any SWAP. Thats very old thumb rule to have SWAP = 2 X RAM when physical memory used to be in few Mb's only, like 32mb/64mb/128mb or 256mb. even 512mb is sufficient.
2Gb is more than enough. So i won't advice you to keep so much for SWAP.
Still people would advice you to have some, so just keep around 200mb-300mb space (personally i would never do this) and don't waste 4-8 Gb for it.

regards
 
Old 07-28-2007, 10:31 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
The amount of swap depends on what you are doing. If you have a lot of memory intensive programs then the 2X rules still applies. I have 2gb of ram and have on occasion used up 3 of the 4gb of swap I have available.

I usually add a /home directory in there too(on the first drive). Then I just mount the next drive into /home with all users having read/write privileges. Since the bus still has to carry the bandwidth you do see some lag but not nearly as bad as it would be if you were using the OS drive.

Good Luck
Lazlow
 
Old 07-28-2007, 10:35 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
I actually have an OS on each of my four drives: whenever I need to do some serious moving around, I use a disk that isn't in any way involved. The advantage: I get to use all of my space whereas Scott would be "wasting" a couple hundred GBs on his first disk (/ could be cut down to 10 GB and the rest could then be used as additional storage). Also I never have to worry about an OS breaking down; plenty left to choose from.

Last edited by jay73; 07-28-2007 at 10:36 PM.
 
Old 07-29-2007, 10:40 AM   #5
ScottReed
Member
 
Registered: Dec 2005
Location: Montana
Distribution: Debian "squeeze"
Posts: 157

Original Poster
Rep: Reputation: 30
Question

thanks for the replies so far.

Quote:
2Gb RAM!!! you actually don't need any SWAP.
I will stick with the 4gb swap space, as I do perform intensive tasks. I know though, it is an old rule of thumb - I agree!

Quote:
I usually add a /home directory in there too(on the first drive).
I don't see a reason to put my /home on sdb

Quote:
I get to use all of my space whereas Scott would be "wasting" a couple hundred GBs on his first disk (/ could be cut down to 10 GB and the rest could then be used as additional storage).
Could you go into more detail here? I like this idea, but i'm hesitant on "guessing" about the size of /

What's a good medium that is leaving room for growth?

Thanks,
Scott
 
Old 07-29-2007, 02:48 PM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Quote:
Could you go into more detail here? I like this idea, but i'm hesitant on "guessing" about the size of /
Even 10GB is a lot of space for a KDE or XFCE desktop (I don't know which you prefer). I have Debian with both KDE and Gnome and it takes up only 6.5GB. Having some free space is a good idea, though. I also give tmp and var partitions of their own and I have an opt partition to hold my third-party IDES and other software. So what I have in mind would be something like:

disk 1: (swap) tmp var / (opt) home (data)
disk 2: (swap) tmp var / (opt) home (data)

The I/O intensive partitions (swap, tmp, var) come first to boost performance; this is becoming less of a requirement with today's hardware, however. I have 1GB tmp and 3 to 4GB var but if you are uncertain about the size of tmp and var, you can just leave them under /. Making var even bigger makes sense for mail or database servers.
Then comes /. I would suggest 8 to 10 GB, or 15 if it holds tmp and var too. There is no better guide than your current setup. Take a look at your / directory and verify how much space it actually occupies.
An optional separate opt partition to contain third-party software but this may as well be left under /. The only reason I give it a partition of its own is that I have some software in there that takes quite a long time to set up and I don't want to reinstall it every time I upgrade my / partition. Some distributions used opt to install some of their own software (for example Suse used to place KDE under opt) but most modern distributions don't use it at all. As said, Leave under / if uncertain.
Then a home partition to hold your personal data. As I share a lot of data between my operating systems, I tend to leave it under /; it functions just as a container for certain configuration files (firefox, mplayer, bash etc) and the actual data are saved to another partition that is mounted under each of my OSes = minimal risk of one OS screwing up another + maximum accessibility of data. This is the optional data partition placed at the end of each disk. I just created mount points under each OS (media1, media2, etc) to mount each of those data partitions. Having a separate home partition is a good idea when you need to separate your own files from the files in your data partition. I personally wouldn't leave something like, say, invoices in a partition that undergoes frequent deleting.
The advantage of this setup is that you can have two 200GB+ data partitions. If you are using the OS on disk1, you can use disk2 to manage your data; as disk2 fills up, you reboot into your OS on disk2 and you can continue work with a fresh data partition on disk1. OS and data are on different disks = minimal risk of lagging. I know it's twice the work installing but then you do get two systems in one.
 
Old 07-30-2007, 11:11 AM   #7
ScottReed
Member
 
Registered: Dec 2005
Location: Montana
Distribution: Debian "squeeze"
Posts: 157

Original Poster
Rep: Reputation: 30
Quote:
There is no better guide than your current setup. Take a look at your / directory and verify how much space it actually occupies.
Good thought...

Thanks for all your help.

Scott
 
Old 07-30-2007, 12:21 PM   #8
ScottReed
Member
 
Registered: Dec 2005
Location: Montana
Distribution: Debian "squeeze"
Posts: 157

Original Poster
Rep: Reputation: 30
Did some research with the 'du' tool and came up with this, I hope final, layout:

SDA - 300G
SDA1 - /boot - 40M
SDA2 - /home - 266G
SDA3 - / - 30G
SDA4 - SWAP - 4G

SDB - 300G
SDB1 - /home/scott/tunes - 150G
SDB2 - /Customer_Backups - 150G

Not including /home and /boot (and music/customer data), my current setup was only taking up 10G on /

So I figure 30G is more than enough growth/breathing room.

Thanks
Scott
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
replacing/upgrading hardware travm Debian 6 03-13-2007 07:20 PM
Upgrading hardware to AMD 64 redoaks Linux - Newbie 2 02-11-2006 01:28 PM
Upgrading Hardware Strategies confused_bof SUSE / openSUSE 3 06-24-2005 01:27 PM
upgrading drivers / swapping hardware fatherg Linux - Hardware 1 09-08-2004 05:29 PM
Upgrading hardware with Linux? cexshun Linux - Hardware 3 02-03-2003 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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