LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
Thread Tools
Old 10-07-2004, 11:57 AM   #1
deSelby
LQ Newbie
 
Registered: Oct 2004
Posts: 2
Thanked: 0
Adding space to /home - General HD question


[Log in to get rid of this advertisement]
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,
deSelby
deSelby is offline     Reply With Quote
Old 10-07-2004, 03:05 PM   #2
tokyoeye
Member
 
Registered: Oct 2003
Location: Amsterdam
Distribution: gentoo,debian
Posts: 47
Thanked: 0
Hi,

I think this site will be helpfull:

http://www.linux-usb.org/USB-guide/x498.html


You will probably have to use something like

mount /dev/sda /home/username/whereeveryouwantit
tokyoeye is offline     Reply With Quote
Old 10-07-2004, 04:25 PM   #3
MS3FGX
Senior Member
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 4,218
Thanked: 80
You should take that swap partition down to about 128 MB and use that left over space for /home as well.
MS3FGX is offline     Reply With Quote
Old 10-07-2004, 06:28 PM   #4
J.W.
Moderator
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Slack v12, SuSE v11.1, Mint v7
Posts: 6,620
Thanked: 5
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.
J.W. is offline     Reply With Quote
Old 10-07-2004, 06:34 PM   #5
deSelby
LQ Newbie
 
Registered: Oct 2004
Posts: 2
Thanked: 0

Original Poster
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?
deSelby is offline     Reply With Quote
Old 10-07-2004, 06:43 PM   #6
J.W.
Moderator
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Slack v12, SuSE v11.1, Mint v7
Posts: 6,620
Thanked: 5
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.
J.W. is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 07:45 PM
adding space kwickcut Mandriva 9 10-14-2005 05:44 PM
Adding more hd space zaipher Linux - General 9 09-28-2004 11:26 AM
adding swap space jamaso Slackware 6 06-21-2004 12:05 AM
Adding space to a partiion Maistre Linux - Newbie 5 02-26-2004 03:05 PM


All times are GMT -5. The time now is 11:58 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration