1 (edited by gAsmAn 2007-02-09 12:46:55)

Topic: can't shrink ntfs partition [SOLVED]

hi

i'm trying to shrink an ntfs partition to make space for ubunut, using gparted live 0.3.3.0

here's the readout from my gparted_details file

*********************************************************************

GParted 0.3.3

Libparted 1.7.1

Move /dev/hda1 to the left and shrink it from 55.89 GiB to 45.38 GiB  00:30    ( ERROR )
        
calibrate /dev/hda1  00:00    ( SUCCES )
        
path: /dev/hda1
start: 63
end: 117210239
size: 117210177 (55.89 GiB)
calculate new size and position of /dev/hda1  00:00    ( SUCCES )
        
requested start: 0
requested end: 95169059
requested size: 95169060 (45.38 GiB)
new start: 63
new end: 95169059
new size: 95168997 (45.38 GiB)
check filesystem on /dev/hda1 for errors and (if possible) fix them  00:09    ( SUCCES )
        
ntfsresize -P -i -f -v /dev/hda1
        
ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 60011610624 bytes (60012 MB)
Current device size: 60011610624 bytes (60012 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 36729 MB (61.2%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 36336 MB 0
Multi-Record : 59769 MB 80493
$MFTMirr : 30006 MB 1
Compressed : 54031 MB 70425
Ordinary : 56417 MB 81411
You might resize at 36728365056 bytes or 36729 MB (freeing 23283 MB).
Please make a test run using both the -n and -s options before real resizing!
shrink filesystem  00:12    ( ERROR )
        
run simulation  00:12    ( ERROR )
        
ntfsresize -P --force --force /dev/hda1 -s 48726526463 --no-action
        
ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 60011610624 bytes (60012 MB)
Current device size: 60011610624 bytes (60012 MB)
New volume size : 48726520320 bytes (48727 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 36729 MB (61.2%)
Collecting resizing constraints ...
Needed relocations : 269178 (1103 MB)
Schedule chkdsk for NTFS consistency check at Windows boot time ...
Resetting $LogFile ... (this might take a while)
Relocating needed data ...
ERROR: Extended record needed (1040 > 1024), not yet supported!
Please try to free less space.
check filesystem on /dev/hda1 for errors and (if possible) fix them  00:09    ( SUCCES )
        
ntfsresize -P -i -f -v /dev/hda1
        
ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 60011610624 bytes (60012 MB)
Current device size: 60011610624 bytes (60012 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 36729 MB (61.2%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 36336 MB 0
Multi-Record : 59769 MB 80493
$MFTMirr : 30006 MB 1
Compressed : 54031 MB 70425
Ordinary : 56417 MB 81411
You might resize at 36728365056 bytes or 36729 MB (freeing 23283 MB).
Please make a test run using both the -n and -s options before real resizing!
grow filesystem to fill the partition  00:00    ( SUCCES )
        
run simulation  00:00    ( SUCCES )
        
ntfsresize -P --force --force /dev/hda1 --no-action
        
ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 60011610624 bytes (60012 MB)
Current device size: 60011610624 bytes (60012 MB)
New volume size : 60011606528 bytes (60012 MB)
Nothing to do: NTFS volume size is already OK.
real resize  00:00    ( SUCCES )
        
ntfsresize -P --force --force /dev/hda1
        
ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 60011610624 bytes (60012 MB)
Current device size: 60011610624 bytes (60012 MB)
New volume size : 60011606528 bytes (60012 MB)
Nothing to do: NTFS volume size is already OK.

========================================

i've tried running chkdsk /f on XP prior to this but it makes no difference (and doesn't seem to find any errors to correct anyway !)

can you help at all - it'll save me scrapping the whole XP install and starting from scratch !

thanks

neill

2

Re: can't shrink ntfs partition [SOLVED]

Hm, could you take some screenhost of the GParted layout within from the livecd ?
This should help to have some idea of the reason of your problem.

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

3

Re: can't shrink ntfs partition [SOLVED]

thanks for getting back so quickly

i read down the error log after i sent it and saw a line that said

ERROR: Extended record needed (1040 > 1024), not yet supported!
Please try to free less space.

so i tried to free 5G and it worked so i tried another 5G and it worked

so i'm happy because i have my dual boot laptop - i'm interested though as to why this problem should arise ?

neill


also it says a lot about the high quality and usefullness of the error messages smile