LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-03-2004, 05:33 PM   #1
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Rep: Reputation: 30
partition not using full space


okay I did a cf disk and noticed something pretty good for my situation. My root partition says it's full.

This is what I get when I type "df"
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2              3322360   3322360         0 100% /
/dev/hda3             11359808   2108592   8664844  20% /home
This is what I get when I type "cfdisk"
Code:
                                                                               
                              Disk Drive: /dev/hda
                        Size: 60022480896 bytes, 60.0 GB
              Heads: 255   Sectors per Track: 63   Cylinders: 7297
                                                                                
    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    hda1        Boot        Primary   NTFS             [^D]            36947.96
    hda2        Boot        Primary   Linux ext3                        8751.70
    hda3                       Primary   Linux ext3                       12008.91
    hda4                       Primary   Linux swap                        2311.31
now in my root partition (hda2) the df says it's only 3 GB but on my cfdisk it says it's 8.7 which is what it really is! ( I added to it with partition magic) so why is it not picking up and using the extra space?
 
Old 03-03-2004, 08:43 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,474

Rep: Reputation: 189Reputation: 189
Try writing a large file to your root partition and see if it goes OK. I had this happen once and I could keep writing files to the partition which was under reported in df with 100% usage. It just kept expanding the reading in df always reporting 100% usage. It then mysteriously disappeared and gave the correct readings in df. I believe I used pm on that partition too. PM writes partition info to the mbr differently than linux based partitioning tools. Perhaps cfdisk can read this info correctly but df can not.

Last edited by kilgoretrout; 03-03-2004 at 08:46 PM.
 
Old 03-03-2004, 08:51 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
df is just reading the size wrong. if that filesystem was full, programs would be crashing.
 
Old 03-03-2004, 10:25 PM   #4
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Original Poster
Rep: Reputation: 30
and they do! it got to the point where Gnome wouldn't start up! I deleted some files on my root partition and it got in there. and no it's not reading it wrong becuase since I've added to the partition I haven't added more than 100MB to it.
Also my Gnome isn't loading in new users I create...

EDIT: Also my cookies aren't saving like my logins to different forums including this one. When I go into the Firebird Preferences and make changes and click OK I got something saying that the changes couldn't be saved and won't be taking effect the next time I open the browser....

Also I rebooted and did another 'df' and it didn't even show the root partition; it only showed my home partition

Last edited by compu73rg33k; 03-03-2004 at 10:31 PM.
 
Old 03-03-2004, 10:44 PM   #5
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
This goes with the standard warning of "have backups"

Anyway, resizing the partition is only part of your job.
You need to resize the file system also...
e2fsck -f /dev/hda2
resize2fs /dev/hda2
 
Old 03-03-2004, 10:56 PM   #6
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Original Poster
Rep: Reputation: 30
hm I got like a bunch of stuff with inodes it was ongoing do I press 'y' or 'n' ?
 
Old 03-03-2004, 11:22 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Did you remember to do this in an un-mounted condititon?
I like to boot up with the system rescue cd and run things like that.
 
Old 03-04-2004, 09:41 AM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,185

Rep: Reputation: 52
it looks like you have room to backup your root to your home, then reformat root, and
then restore the stuff. that should take care of it.
 
Old 03-05-2004, 02:43 AM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
And in the future, you may want to consider definining other partitions explicitly. I've got a dual boot Windows and Linux machine on a single 40G drive, and this is my scheme:

/dev/hda1 = Windows (12G) primary
/dev/hda2 = /boot (100Mg) primary
/dev/hda3 = swap (256Mg) primary
/dev/hda4 = [----] logical
/dev/hda5 = / (1G)
/dev/hda6 = /usr (10G)
/dev/hda7 = /tmp (1G)
/dev/hda8 = /var (1G)
/devhda9 = /root (1G)
/dev/hda10 = /home (13G)

That may be overkill, but it works for me. Partitioning is highly personal though, and there is no necessarily "right" or "wrong" way to do it, it pretty much boils down to what works best for you. -- J.W.
 
Old 03-07-2004, 11:11 AM   #10
compu73rg33k
Member
 
Registered: Feb 2004
Distribution: Ubuntu
Posts: 316

Original Poster
Rep: Reputation: 30
yeah I just decided I'd reinstall Slackware with version 9.1 it got all F'ed up it was crazy lol

anyway here's my new df
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2              4730632    492896   3993548  11% /
/dev/hda3              5672208   2079012   3300412  39% /usr
/dev/hda6             10402812    189012   9676832   2% /home
 
  


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
Why does the hard disc space get full till the very end? suro Linux - Software 3 07-11-2005 12:09 PM
Help~! Strange Disc Full ...running out of space... max_tcs Linux - Newbie 8 06-20-2005 08:46 AM
I want to increase my Linux partition.Should I take space from a Windows partition? PrinceBalak Linux - General 1 06-25-2004 06:44 PM
Redhat 9 disk space full when not supose to be? cyb0rg51 Linux - Newbie 6 04-25-2004 01:25 AM
Making space on harddrive (its full!) robson8112 Linux - General 4 01-20-2004 12:52 PM


All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration