Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-12-2003, 11:09 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
Question run out of space, how to configure new disk


I'm having trouble finding some clear instructions on how to configure a new disk (scsi in this case) that I have installed.

I've recently noted that space is running out on my RedHat 7.3 system:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda5 381139 267135 94326 74% /
/dev/sda1 46636 43983 245 100% /boot
/dev/sda3 7281808 35416 6876496 1% /home
none 256796 0 256796 0% /dev/shm
/dev/sdb1 8483336 824028 7228368 11% /usr
/dev/sdb2 256665 45835 197577 19% /var

I've installed a new SCSI disk (2GB), but am not sure what needs to be done to:

1. configure it so the OS sees it
2. allocate appropriate space to expand existing file systems

Anyone know of some good insructions that exist or have instructios of their own to point me in the right direction?

Old 10-13-2003, 05:47 AM   #2
LQ Newbie
Registered: Oct 2002
Location: MS
Distribution: Slackware 9.1 XFS
Posts: 27

Rep: Reputation: 15
well, to get you started, you will need to create a mount point in /mnt. If you are adding it as a third hard drive you can make a mount point called .../sdc. Now you need to create the partitions by using 'cfdisk /dev/sdc'. Assuming you have knowledge of cfdisk, just create your multiple partitions (if you want more than one) and write the new table to the MBR. Now, suppose you're using the jfs filesystem, you will have to mount the new drive with 'mount -t jfs /dev/sdc /mnt/sdc' or 'mount -t jfs /dev/sdc(x) /mnt/sdc' (x) is the number of the partition. Now that its mounted, you have to format it with whatever filesystem that you're using, like this (again, for jfs): 'mkfs jfs /dev/sdc' or 'mkfs jfs /dev/scd(x)'. Now, the drive is ready for use. The last step, which is optional depending on if you want the system to mount the drive automatically at boot time, is to add a line to your 'etc/fstab' file.
Old 10-13-2003, 06:46 AM   #3
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
1. attach the harddisk to ur comp
2. boot into linux
3. use fdisk to create the filesystem(ext2 or ext3)
4. vi /etc/fstab

and add the following entry

/dev/sdc1 <mount point> <ext2/ext3> defaults 1 3

hope this helps

Old 10-13-2003, 08:04 PM   #4
LQ Newbie
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0

Hi Folks,

Thanks for the suggestions so far. The bit I'm not too sure of is how to 'attach' the new disk onto existing partitions. From the breakdown above, I'd like to add some space to /, /boot and /var. I've already used fdisk to create appropriately sized sdc1, sdc2 & sdc3, but how do they get allocated to existing partitions?



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
No DISK SPACE NOW! PLEASE HELP king of penguin Linux - Hardware 3 02-17-2005 04:41 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM
Where is all my disk space going? Baryonic Being Linux - General 6 10-13-2004 08:57 AM
I've run out of space and don't know what to do. BongFish Linux - General 13 10-21-2003 12:40 PM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 04:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:16 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
Open Source Consulting | Domain Registration