root@SqrlKng:/home/truman# ntfsresize -if /dev/sda5ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 442552930816 bytes (442553 MB)
Current device size: 442552932864 bytes (442553 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use : 256252 MB (57.9%)
Collecting resizing constraints ...
You might resize at 256251813888 bytes or 256252 MB (freeing 186301 MB).
Please make a test run using both the -n and -s options before real resizing!
root@SqrlKng:/home/truman# ntfsresize -f -s 260G /dev/sda5
ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 442552930816 bytes (442553 MB)
Current device size: 442552932864 bytes (442553 MB)
New volume size : 259999994368 bytes (260000 MB)
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Space in use : 256252 MB (57.9%)
Collecting resizing constraints ...
Needed relocations : 13857983 (56763 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Relocating needed data ...
100.00 percent completed
Updating $BadClust file ...
Updating $Bitmap file ...
Updating Boot record ...
Syncing device ...
Successfully resized NTFS on device '/dev/sda5'.
You can go on to shrink the device for example with Linux fdisk.
IMPORTANT: When recreating the partition, make sure that you
1) create it at the same disk sector (use sector as the unit!)
2) create it with the same partition type (usually 7, HPFS/NTFS)
3) do not make it smaller than the new NTFS filesystem size
4) set the bootable flag for the partition if it existed before
Otherwise you won't be able to access NTFS or can't boot from the disk!
If you make a mistake and don't have a partition table backup then you
can recover the partition table by TestDisk or Parted's rescue mode.
root@SqrlKng:/home/truman# fdisk
Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
I'm not sure what to do from here. As you can see, that partition originally had about 250GB worth of data. I decided to boot back to windows. It ran a disk check like it said it would, then booted normally. It allows me full access to that partition from windows, though it shows that it's disk usage is at close to 450/460GB. I'm not sure what to do here, other than back up all of my data and wipe the whole disk.