Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-03-2012, 11:01 AM   #1
Registered: Sep 2007
Posts: 261

Rep: Reputation: 16
Question size difference in partition and NTFS file system

I have a server which has one primary 15GB partition. On this partition there is a NTFS file system. File system was created with Windows Server 2003 installer. Any ideas why there is a >1GB difference(13.96983GB VS 15.00003GB) between partition size and file system size? Why is partition so much larger?

root@Microknoppix:~# fdisk -lu

Disk /dev/sda: 80.0 GB, 80026361856 bytes
240 heads, 63 sectors/track, 10337 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf155f155

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63    31457343    15728640+   7  HPFS/NTFS
root@Microknoppix:~# printf '(%s*%s)/(%s^%s)\n' 31457343 512 1024 3 | bc -l
root@Microknoppix:~# ntfsinfo -m /dev/sda1
Volume Information 
	Name of device: /dev/sda1
	Device state: 11
	Volume Name: 
	Volume State: 1
	Volume Version: 3.1
	Sector Size: 512
	Cluster Size: 4096
	Volume Size in Clusters: 3662108
MFT Information 
	MFT Record Size: 1024
	MFT Zone Multiplier: 1
	MFT Data Position: 24
	MFT Zone Start: 786432
	MFT Zone End: 1244195
	MFT Zone Position: 786432
	Current Position in First Data Zone: 1244195
	Current Position in Second Data Zone: 0
	LCN of Data Attribute for FILE_MFT: 786432
	FILE_MFTMirr Size: 4
	LCN of Data Attribute for File_MFTMirr: 1831054
	Size of Attribute Definition Table: 2560
FILE_Bitmap Information 
	FILE_Bitmap MFT Record Number: 6
	State of FILE_Bitmap Inode: 0
	Length of Attribute List: 0
	Attribute List: (null)
	Number of Attached Extent Inodes: 0
FILE_Bitmap Data Attribute Information
	Decompressed Runlist: not done yet
	Base Inode: 6
	Attribute Types: not done yet
	Attribute Name Length: 0
	Attribute State: 3
	Attribute Allocated Size: 458752
	Attribute Data Size: 457768
	Attribute Initialized Size: 457768
	Attribute Compressed Size: 0
	Compression Block Size: 0
	Compression Block Size Bits: 0
	Compression Block Clusters: 0
root@Microknoppix:~# printf '(%s*%s)/(%s^%s)\n' 3662108 4096 1024 3 | bc -l
If I compare partition and file system size for ext[34] partitions it's almost identical. For example in another machine I have 9.31348GB primary partition and on this partition there is a 9.31250GB ext4 file system

Any ideas?
Old 05-04-2012, 02:09 AM   #2
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,244

Rep: Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836Reputation: 6836
I checked my ntfs drive and the two sizes were exactly the same. So maybe you have resized your partition or made another trick?
What I could say: fdisk doesn't take care about the filesystem, it reports the size of the partition. ntfsinfo reports the size of the formatted filesystem and does not take care about the underlying partition.
Old 05-04-2012, 02:20 AM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,836

Rep: Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008Reputation: 4008
If it worries you, simply run ntfsresize - it'll fill the partition.
Old 05-07-2012, 10:31 AM   #4
Registered: Sep 2007
Posts: 261

Original Poster
Rep: Reputation: 16
syg00, pan64:

Thanks! I did "ntfsresize -v /dev/sda1" and now my NTFS file system size is 14.999996GB


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
Mount NTFS partition deeper in file system with fstab? fhsm Linux - Newbie 2 03-15-2010 10:38 PM
Solaris 8 - file size and partition size discrepancy noir911 Solaris / OpenSolaris 1 02-10-2009 04:43 PM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
URGENT! Resizing NTFS partition size problems. rconan Linux - Software 3 09-03-2005 12:03 PM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 04:18 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:53 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