Help answer threads with 0 replies.
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 12-04-2003, 09:20 AM   #1
LQ Newbie
Registered: Jan 2003
Location: marion, ny
Posts: 5

Rep: Reputation: 0
adding a new disk


I'm not a Linux guru by any stretch!
I have to add a disk to our system mainly to add more swap
space but I don't even know how to start. All of the docs talk
about installation time which I already did. Is there anywhere
to find a step by step instruct to add a disk to an existing system?

THanks for any help!
Old 12-04-2003, 12:37 PM   #2
Registered: Jul 2003
Distribution: Gentoo 2004.0
Posts: 157

Rep: Reputation: 30
if this is soley going to be swap and 'extra' storage space, then you should put the swap file as the first partition.

if you put the hard drive as the slave drive on the primary ide channel, then linux will label it as /dev/hdb

once you boot up linux, you will need to format and partition that harddrive with fdisk. here's a great tutorial:

you definately want to put the swap partition as the first paritition. seek times are faster closer to the 'begining' of the disk.

after parition your new harddrive as you want (i imagine you'll have other data partitions on there too..)

edit your /etc/fstab as root so you switch to using the new swapfile. info here:
Old 12-04-2003, 01:27 PM   #3
Registered: Aug 2002
Posts: 23,457

Rep: Reputation: 5085Reputation: 5085Reputation: 5085Reputation: 5085Reputation: 5085Reputation: 5085Reputation: 5085Reputation: 5085Reputation: 5085Reputation: 5085Reputation: 5085
Adding additional swap space is not difficult at all. Once the drive is installed and you reboot the computer.
1. Create a swap partition and anyother partitions as desired.
2. Format the swap partition i.e. mkswap /dev/hdxy
3. Add partition to /etc/fstab file:
/dev/hdxy swap swap defaults 0 0
4. Activate swap i.e. swapon /dev/hdxy

Replace /dev/hdxy with the actual partition and device ID of the new drive.
1st controller master - hda
1st controller slave - hdb
2nd controller master - hdc
2nd controller slave - hdd
etc. etc.

Check out the man pages for mkfs and mkreiserfs for formating regular partitions like ext3 etc.


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 new hard disk jkmartha Linux - Newbie 3 08-19-2005 01:09 AM
Adding a disk to a volume njdownes Linux - Hardware 2 03-14-2005 05:05 AM
steps to adding disk in aix 5.2 papajohns AIX 5 08-03-2004 04:00 PM
Adding new disk RH9 with devlabel palmercabel Linux - Hardware 4 10-30-2003 09:32 PM
Adding a hard disk mastahnke Linux - Hardware 15 11-27-2002 07:25 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:14 PM.

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
Open Source Consulting | Domain Registration