1 (edited by Bijay 2020-05-31 19:14:34)

Topic: Bug! Resizing ntfs partition

Hi all
I tried to resize(to grow) a NTFS partition, with adjacent unallocated space. I tried(Ubuntu 20.04) Live OS by dragging the partition to the end.
But got error instead multiple times. Is it a bug?
I have saved the error details...

GParted 1.0.0

configuration --enable-libparted-dmraid --enable-online-resize

libparted 3.3

========================================
Device:    /dev/sda
Model:    ATA WDC WD10SPZX-60Z
Serial:    WD-WXS1A9855NVZ
Sector size:    512
Total sectors:    1953525168
 
Heads:    255
Sectors/track:    2
Cylinders:    3830441
 
Partition table:    gpt
 
Partition    Type    Start    End    Flags    Partition Name    File System    Label    Mount Point
/dev/sda1    Primary    2048    211814399        Data    ext4        
/dev/sda2    Primary    211814400    212428799    boot, esp    EFI_boot    fat32    EFI_BOOT    
/dev/sda3    Primary    212428800    212461567    msftres    Microsoft reserved partition    unknown        
/dev/sda4    Primary    212461568    309960703    msftdata    Basic data partition    ntfs        

========================================
Device:    /dev/sdb
Model:    Generic- SD/MMC/MS PRO
Serial:    none
Sector size:    512
Total sectors:    62333952
 
Heads:    255
Sectors/track:    2
Cylinders:    122223
 
Partition table:    msdos
 
Partition    Type    Start    End    Flags    Partition Name    File System    Label    Mount Point
/dev/sdb1    Primary    16128    62333951    boot, lba        fat32    MULTIBOOT    /isodevice

========================================
Device:    /dev/sdc
Model:    Kingston DataTraveler 130
Serial:    none
Sector size:    512
Total sectors:    7818184
 
Heads:    255
Sectors/track:    2
Cylinders:    15329
 
Partition table:    none
 
Partition    Type    Start    End    Flags    Partition Name    File System    Label    Mount Point
/dev/sdc    Unpartitioned    0    7818183            iso9660    openSUSE 13.2 GNOME Live    

========================================
Grow /dev/sda4 from 46.49 GiB to 830.20 GiB  00:00:03    ( ERROR )
         
calibrate /dev/sda4  00:00:00    ( SUCCESS )
         
path: /dev/sda4 (partition)
start: 212461568
end: 309960703
size: 97499136 (46.49 GiB)
check file system on /dev/sda4 for errors and (if possible) fix them  00:00:03    ( ERROR )
         
ntfsresize -i -f -v '/dev/sda4'  00:00:03    ( ERROR )
         
ntfsresize v2017.3.23AR.3 (libntfs-3g)
Device name : /dev/sda4
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 49919554048 bytes (49920 MB)
Current device size: 49919557632 bytes (49920 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
100.00 percent completed
Accounting clusters ...
Cluster accounting failed at 12187391 (0xb9f6ff): missing cluster in $Bitmap
Filesystem check failed! Totally 1 cluster accounting mismatches.
ERROR: NTFS is inconsistent. Run chkdsk /f on Windows then reboot it TWICE!
The usage of the /f parameter is very IMPORTANT! No modification was
and will be made to NTFS by this software until it gets repaired.

Anyone would explain me please?
Thanks

2

Re: Bug! Resizing ntfs partition

ntfsresize finds that the ntfs file system is inconsistent. That is probably from a bad shutdown of the operating system. You have to perform full shutdown, not just into "sleep" mode.

This is not a "bug". GParted doesn't modify any inconsistent file system.

You need to run chkdsk /f on Windows (from the command line / dos prompt) as suggested by the error message. I think that you have to select the option to schedule chkdsk after the next reboot. After the check you have to reboot at least twice into ms windows, waiting enough time to get the login prompt and log on. Please allow the o.s. to fully boot up each time before powering it down.
The usage of the /f parameter is very IMPORTANT!

*** It is highly recommended to backup any important files before doing resize/move operations. ***

3

Re: Bug! Resizing ntfs partition

class413 wrote:

ntfsresize finds that the ntfs file system is inconsistent. That is probably from a bad shutdown of the operating system. You have to perform full shutdown, not just into "sleep" mode.

This is not a "bug". GParted doesn't modify any inconsistent file system.

You need to run chkdsk /f on Windows (from the command line / dos prompt) as suggested by the error message. I think that you have to select the option to schedule chkdsk after the next reboot. After the check you have to reboot at least twice into ms windows, waiting enough time to get the login prompt and log on. Please allow the o.s. to fully boot up each time before powering it down.
The usage of the /f parameter is very IMPORTANT!

OK . Thanks so much for the help.