LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 04-03-2006, 03:17 PM   #1
eXeCuTioN
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
wrong report on fat partition size


Hi!
Im having this problem, i have my 80 GB HD partitioned with 57
GB fat 32 lba partition, mandrake control center agrees , but
when i ask 'df' , it says i have 47, even the system says i
ran out of space (in fact i have 10 GB free)
So im wondering if i did something wrong or is there a way 2
solve this?
 
Old 04-03-2006, 04:27 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Just to make sure you are reading it right use the command ' df -h '.
Not sure how much lose there is for a fat32 format. In ext3 unless options are changed its about 5% of the drive.

Brian1
 
Old 04-03-2006, 04:52 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
umount and remount ???.
sync would probably do the job also, but affect more than just that partition.
 
Old 04-03-2006, 05:11 PM   #4
eXeCuTioN
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
df -h returns:

Filesystem Size Used Avail Use% Mounted on
/dev/hda6 17G 13G 3.5G 79% /
/dev/hda1 47G 41G 6.3G 87% /mnt/win_c

and fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 7455 59882256 c W95 FAT32 (LBA)
/dev/hda2 7456 9729 18265905 5 Extended
/dev/hda5 7456 7520 522081 82 Linux swap / Solaris
/dev/hda6 7521 9729 17743761 83 Linux


Thats what makes me wonder
 
Old 04-03-2006, 06:18 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
A lot depends on cluster size used on the fat32 format. I just can't find the right page that has the answer for you. I have seen 32 gig partitions end up with less than 30 gig available space. About 3 gig lost for 30 gig. The 10gig lost on the 57 gig might seem large but may not. As far as the clusters go say you use 4k clusters. A file that is 4k -1byte will fill a 4k cluster. A file that is 5k will take up 8k with a lose of 3k of available space. Next file is 7k. first it can not use the lost space in the previous cluster so it starts a new one. So now agian a 7k uses 8k of drive space. Changing cluster size can gain space but only so mant cluster can exist per cluster size.

I know this may not be clear, wish I could find that page about this.
If I find it I will post back.
Brian1
 
Old 04-03-2006, 06:31 PM   #6
eXeCuTioN
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
i know what you are saying, however notice the partition size they report:

# df -B 1024

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda6 17465100 12976864 3601048 79% /
/dev/hda1 48598016 42562816 6035200 88% /mnt/win_c

# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 7455 59882256 c W95 FAT32 (LBA)
/dev/hda2 7456 9729 18265905 5 Extended
/dev/hda5 7456 7520 522081 82 Linux swap / Solaris
/dev/hda6 7521 9729 17743761 83 Linux

df reports 48598016 k in size, not in space available and fdisk reports 59882256 K for the size
The problem is that the system thinks i only have 5.8 GB free, when it should be like 15 GB
 
  


Reply



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
Added second harddrive as a partition, but now the partition size is wrong.. mlsbraves Linux - General 5 08-17-2005 08:10 PM
Wrong partition size indicated thepoint Linux - Hardware 3 08-02-2005 10:14 PM
Restored backup, now new root partition reporting wrong size. wackman Linux - Software 6 05-28-2005 02:24 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
root partition shows wrong total size Dergro Linux - General 12 10-08-2003 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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