LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 01-30-2008, 08:48 PM   #1
ashdharan
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Rep: Reputation: Disabled
Disk space Queries


Hello...

My GUI display on Fedora 8 is down and am currently working on the virtual console.( Haven't received an answer, please look into the thread XServer Crash on Fedora 8 in Desktop section)

I wish to know:-
1) What is the command to find out disk usage by a particular file/directory?

2) How do I expand my / space? (I have 5 GB of unallocated space ready to be allotted, but the question is how do I do it from CLI)

3) How are quotas for users set?
 
Old 01-30-2008, 09:48 PM   #2
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
i will try to answer couple of your questions however some other questions are big subjects and you need to do some extensive reading and others will help after words.

- to find the total usage of your drive:
Code:
 df -h 
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              36G   24G  9.5G  72% /
varrun                378M  248K  378M   1% /var/run
varlock               378M     0  378M   0% /var/lock
udev                  378M   80K  378M   1% /dev
devshm                378M     0  378M   0% /dev/shm
lrm                   378M   34M  344M   9% /lib/modules/2.6.22-14-generic/volatile
to find the total usage of a certain directory or a file:

Code:
altaqi@altaqi-laptop:~$ du -ch /home/altaqi/Videos/
65M     /home/altaqi/Videos/
65M     total
there are other methods to achieve the same output also.
as far as expanding a disk space, i refuse to tell you one way expanding your disk space until you tell us with good examples what you are trying to achieve. Take a look at this link ... this might help
http://www.linuxhomenetworking.com/w..._Disk_Capacity

don't attempt to modify/expand your partition table without understanding what you're doing. Find a way to backup your data before you start. If needed pull the drive out and stick it into another machine and back it then try to expand it.
 
Old 01-30-2008, 11:09 PM   #3
ashdharan
LQ Newbie
 
Registered: Jan 2008
Posts: 4

Original Poster
Rep: Reputation: Disabled
Re:

First of all, thanks a lot for replying.

The idea is not to add a new hard disk, but to claim a 5GB partition from the existing hard drive and increase space for my fedora OS. I use a dual boot(the other one being WindowsXP).

I created the 5GB partition(unallocated) from Windows(XServer in Fedora is down).

I remember once I tried tinkering around with the fdisk utility, I met with failure with all contents being wept out.

The article you posted indeed is informative for adding new hard drives.

I shall reframe the question again:

How to allot a 5GB partition(from the existing hard drive, already unallocated space) and increase space for my fedora OS by adding it to /?
 
Old 01-30-2008, 11:30 PM   #4
Fred Caro
Member
 
Registered: May 2007
Posts: 657

Rep: Reputation: 57
Quote:
Originally Posted by ashdharan View Post
First of all, thanks a lot for replying.

The idea is not to add a new hard disk, but to claim a 5GB partition from the existing hard drive and increase space for my fedora OS. I use a dual boot(the other one being WindowsXP).

I created the 5GB partition(unallocated) from Windows(XServer in Fedora is down).

I remember once I tried tinkering around with the fdisk utility, I met with failure with all contents being wept out.

The article you posted indeed is informative for adding new hard drives.

I shall reframe the question again:

How to allot a 5GB partition(from the existing hard drive, already unallocated space) and increase space for my fedora OS by adding it to /?

Perhaps usinng Gparting or partition magic to make that blanck space and then expand your fedora space, just remmmember which denotation refers to which.
 
Old 01-30-2008, 11:43 PM   #5
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
how about you use http://gparted.sourceforge.net/
look for liveCD and burn the ISO into a CD and boot from it then figure your way out. it should be pretty easy to manage. See the screenshots and read the documentation.
Gparted is the easiest way of doing it but there are other ways too.

Note that expanding a partition is not always safe because through the process, the file system of the linux partition is being altered so if something went wrong (say power outage or a memory clitch) you will end up with a corrupt file system and suffer from mostly unrecoverable loose. bottom line backup your sh***t before you do it.
 
Old 01-31-2008, 12:25 AM   #6
delta48
LQ Newbie
 
Registered: Jan 2008
Location: Mexico
Distribution: gentoo
Posts: 5

Rep: Reputation: 0
system rescue cd

You can use system rescue cd it comes with gnu parted.

Last edited by delta48; 01-31-2008 at 12:26 AM.
 
  


Reply

Tags
du, expand, extend, quotas, space


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
add space to / when from spare space on disk ctsiow Linux - General 4 11-07-2007 07:55 AM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 PM
How to assign disk quota(disk space limited) to user and group. hocheetiong Linux - Newbie 1 08-24-2007 04:20 AM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 03:41 PM


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

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