LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 06-21-2007, 01:20 AM   #1
navin_karnam
Member
 
Registered: May 2007
Posts: 52

Rep: Reputation: 15
How to link "free space on Hard Drive to LINUX"


Hi all,

I have Linux 2.6.9-11.EL running on machine. It is taking only 15 GB in my hard disk (80 GB).

the command "df -h" result :

--------------------------------------------
[naveen@LocalHost ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 15G 14G 247M 99% /
/dev/sda2 99M 8.5M 86M 10% /boot
none 189M 0 189M 0% /dev/shm
--------------------------------------------

I came to know there is a free space of 51 GB on my hard disk from hwbrowser command.

The hwbrowser command's information on Hard Drive :

-------------------------------------------
Device Start End Size(in MB) Type
==> /dev/sda
sda1 1 1306 10245 fat32
sda2 1307 1319 102 ext3
sda3 1320 3231 14998 ext3

sda4 3232 3362 1028 extended
sda5 3224 3362 1028 linux swap
3363 9964 51778 Free Space
------------------------------------------

I am getting errors like "low disk space" whenever i try to install some softwares, Because of this restricted memory (15 GB).

Please guide me how i can make use of the "Free Space" on the hard disk for linux (means to extend the 15 GB linux to some 40 GB).

Thanks and Regards,
Naveen.
 
Old 06-21-2007, 02:49 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Extend your root partition, if possible, or create a new partition out of the free space and mount it under your root; maybe move some places to be mounted on that partition (/var or /usr for example). The process depends on how you've done your partitioning; is it "old-fashioned" plain partitions or are you using LVM, for example.
 
Old 06-21-2007, 03:14 AM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Which distro is it? If it is a newer Red Hat or Fedora Core, there is a graphical program /usr/sbin/system-config-lvm where you can add the free space to the logical volume. Or you can do it from the command line. ( See "man lvm" ). For SuSE, there is a Partitioner program in YaST2 that you can use. Other distros may have a similar program.

If you have partitions mounted traditionally, you could create a partition in the free space and then move contents of the largest directory there. For a workstation, /home is usually the largest. Installing new software, it usually gets installed in /usr/ somewhere. The /usr directory will grow in time and is the normally the second largest directory, so it would make a good candidate as well.
For a server, you may have a small /home directory. Moving /usr or /var might make a better choice.

Good Luck!
 
  


Reply


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
Allocating free disk space - start of "/ " needs moving. ibex Linux - General 4 04-17-2006 09:46 PM
ATI driver install trouble on Knoppix 4.0.2 LIVECD "not enough free space" Hypertoken Linux - Software 2 02-12-2006 10:19 PM
Mandrake 10.1 - Linux doesn't "see" free hard drive space scottlyter Linux - General 3 10-15-2004 04:39 PM
Not enough free space on hard drive with 50g of free space??? auoq Suse/Novell 5 10-13-2004 08:21 PM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration