1 (edited by TheDcoder 2016-11-23 12:59:37)

Topic: [SOLVED] GParted unable to read NTFS partition while unmounted

Hello, I have discovered this strange issue... GParted seems to have a problem while reading my Windows partition, I have another partition which is NTFS but GParted can read that just fine.
http://www.pixhoster.info/f/2016-11/6df17e3390e2e4b08397ae600a006ab3.png

I can boot into windows, no problem. It even works if I have the partition mounted somewhere... but it does NOT work when its unmounted sad

Does anyone have any idea about this issue? Please note that this has happened recently, it used to work before.
I am using Fedora 24 LXDE with GParted 0.27.0 (You can notice that in the screenshot).

Thanks in Advance, TD smile

2

Re: [SOLVED] GParted unable to read NTFS partition while unmounted

Probably, the windows system didn't shut down properly.
By clicking on the yellow triangle with the exclamation mark you can find a short description of the problem.

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

3

Re: [SOLVED] GParted unable to read NTFS partition while unmounted

I panicked and checked windows when I discovered that error for the first time, It was all OK. So I am sure that it is not an incorrect shutdown...

I clicked the exclamation mark and it said that it could not read the partition(?) and it might be caused because of missing packages (ntfs-3g and ntfs-prog I think). I already have them installed.

4

Re: [SOLVED] GParted unable to read NTFS partition while unmounted

To determine the number of used sectors in an ntfs file system, gparted runs (as root) and parses the output from the following command:

ntfsresize --info --force --no-progress-bar /path-to-partition

Where:  /path-to-partition is something like /dev/sda1

Can you run the above command (as root) and post the output here?

5

Re: [SOLVED] GParted unable to read NTFS partition while unmounted

Sorry for the late reply, I am not getting notifications... maybe I have forgot to enable them! sad

Anyway, getting back to the topic. Here is the output of the command:

[TheDcoder@localhost ~]$ sudo ntfsresize --info --force --no-progress-bar /dev/sda1
ntfsresize v2016.2.22 (libntfs-3g)
Device name        : /dev/sda1
NTFS volume version: 3.1
Cluster size       : 4096 bytes
Current volume size: 214829101568 bytes (214830 MB)
Current device size: 214829105152 bytes (214830 MB)
Checking filesystem consistency ...
Accounting clusters ...
Cluster accounting failed at 155235 (0x25e63): extra cluster in $Bitmap
Cluster accounting failed at 155236 (0x25e64): extra cluster in $Bitmap
Cluster accounting failed at 155237 (0x25e65): extra cluster in $Bitmap
Cluster accounting failed at 155238 (0x25e66): extra cluster in $Bitmap
Cluster accounting failed at 155239 (0x25e67): extra cluster in $Bitmap
Cluster accounting failed at 155240 (0x25e68): extra cluster in $Bitmap
Cluster accounting failed at 155241 (0x25e69): extra cluster in $Bitmap
Cluster accounting failed at 155242 (0x25e6a): extra cluster in $Bitmap
Cluster accounting failed at 155243 (0x25e6b): extra cluster in $Bitmap
Cluster accounting failed at 155244 (0x25e6c): extra cluster in $Bitmap
Filesystem check failed! Totally 80 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.

Should I follow the steps recommended by ntfsresize?

6

Re: [SOLVED] GParted unable to read NTFS partition while unmounted

I couldn't resist running chkdsk. After a while, it finished its job and corrected the faulty sectors. (I did not watch chkdsk do the whole operation, just the beginning)

I ran ntfsresize and here are the results:

[TheDcoder@localhost ~]$ sudo ntfsresize --info --force --no-progress-bar /dev/sda1
ntfsresize v2016.2.22 (libntfs-3g)
Device name        : /dev/sda1
NTFS volume version: 3.1
Cluster size       : 4096 bytes
Current volume size: 214829101568 bytes (214830 MB)
Current device size: 214829105152 bytes (214830 MB)
Checking filesystem consistency ...
Accounting clusters ...
Space in use       : 159725 MB (74.3%)
Collecting resizing constraints ...
You might resize at 159724175360 bytes or 159725 MB (freeing 55105 MB).
Please make a test run using both the -n and -s options before real resizing!

And it worked! GParted can now read my windows partition smile

Thanks gedakc! big_smile

7

Re: [SOLVED] GParted unable to read NTFS partition while unmounted

We are glad to hear that you was able to solve the problem.
So, you can edit your initial post to add  [SOLVED]  to the thread title. This could help other users looking for solutions in similar problems.
smile

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

8

Re: [SOLVED] GParted unable to read NTFS partition while unmounted

All done!

P.S Notifications are working now... albeit I did not change anything in the settings tongue