Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 10-07-2004, 10:57 AM   #1
LQ Newbie
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Adding space to /home - General HD question

Hello all,

Very new linux user here and a fairly simple question (perhaps annoyingly so), though one I've found difficult to answer on my own.

I run a Debian-based distrobution (Ubuntu "Warty Warthog") on my laptop and I have fairly large disc space requirements due to my filetrading addiction. I have three partitions on my current HD - hda1 for /, hda2 for /home, and a 1GB swap partition. I'm thinking of adding a USB hard drive (or IDE) but I'm not sure exactly how to make the new space available to /home, which is where I want it.

Can someone suggest a site or good tutorial that will explain the basics of adding space to an existing directory? From the perspective of a new linux user, this is by no means a trivial task!

Many thanks in advance,
Old 10-07-2004, 02:05 PM   #2
Registered: Oct 2003
Location: Amsterdam
Distribution: gentoo,debian
Posts: 47

Rep: Reputation: 15

I think this site will be helpfull:

You will probably have to use something like

mount /dev/sda /home/username/whereeveryouwantit
Old 10-07-2004, 03:25 PM   #3
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
You should take that swap partition down to about 128 MB and use that left over space for /home as well.
Old 10-07-2004, 05:28 PM   #4
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
IBM put together a great article on how to move the /home partition, read it here Naturally, the idea here is that you could add space to /home by moving it to a bigger partition. -- J.W.
Old 10-07-2004, 05:34 PM   #5
LQ Newbie
Registered: Oct 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the info everyone, just what I was looking for.

ps. The reason I have a 1GB swap is that I have been told several times that the swap should be roughly double the size of RAM, which is 512MB. Is this not correct or efficient?
Old 10-07-2004, 05:43 PM   #6
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
The "swap = twice RAM" guideline is obsolete, and applied during the days where 32Mg of RAM was leading edge. Assuming you've got a modern machine (such as yours is) I'd say 256Mg is plenty for swap. Keep in mind that the only time swap even gets used is when RAM is pushed past capacity and the system is forced to write memory pages out to disk. The more RAM you have, the less likely that event will be.

It's not so much that having a big swap space would be inefficient, it's just a waste of disk space since it will never get used -- J.W.


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
adding space - can it be 'spanned' danimalz Linux - Hardware 1 10-22-2005 06:45 PM
adding space kwickcut Mandriva 9 10-14-2005 04:44 PM
Adding more hd space zaipher Linux - General 9 09-28-2004 10:26 AM
adding swap space jamaso Slackware 6 06-20-2004 11:05 PM
Adding space to a partiion Maistre Linux - Newbie 5 02-26-2004 02:05 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration