Topic: Pbs of partition : HD sectors

Hello all,

First of all, sorry for my english in the following, I'll try to write correctly wink

I register on this forum because I have a problem using GParted. I want to partition my HD and before try to use GParted I've done scandisk on my HD (and during this, some clusters have been replaced by windows) and a "defragmentation".

But when GParted is launched, my HD is seen with the following message : "WARNING : the disk has bad sectors. [...] We suggest making a full backup urgently by running 'nrfsclone -rescue ...' then run 'chkdsk /f /r' on Windows and reboot it TWICE! Then you can resize NTFS safely by additionally using the -bad-sectors option of ntfsresize."

I've done the backup before. So I run the chkdsk again, reboot twice, but there is still this warning. It's impossible to resize. Maybe the tool can ben run with "bad-sectors option" ? But I don't see where it is ?

I thank you in advance if you can help me wink



Re: Pbs of partition : HD sectors

the jury is not out on this one tongue
see http://bugzilla.gnome.org/show_bug.cgi?id=335595 for more information.

3 (edited by Muzza 2006-12-21 15:36:51)

Re: Pbs of partition : HD sectors

txs for reply wink

Sorry I don't get your expresson "the jury is not out on this one" (my french-english isn't very good !)

I red the page linked, what I understang is that Mantas Kriau?i?nas succeeded in resize his HD with the command "ntfsresize --bad-sectors -v /dev/hda1"

But when i try that it says to me: "Nothing to do: NTFS Volume size is already OK"

I'm lost big_smile


Re: Pbs of partition : HD sectors

gparted doesn't resize filesystems on devices with bad clusters yet. We're not still sure if and how we're going to approach this.
If you want to resize the filesystem anyway you have to do it from a terminal. do ntfsresize --help to find out which parameters to pass to ntfsresize.

Anyway, usually when a device has bad clusters it's best to replace it. It's not reliable anymore.


Re: Pbs of partition : HD sectors

Si, si Muzza, ton anglais n'est pas mauvais :-p ... but there is no french forum at the moment !

Okay. could you please tell us the device you wanna resize ? It is ntfs, right ?
Did you try to launch a shell and then type the following command :

ntfsresize --bad-sectors -v /dev/your_partition

If you dont, could you try and past here the output of this command (just in case it returns errors)


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


Re: Pbs of partition : HD sectors

Thank u Plors for the explanation. For my personnal understanding, what usually causes bad clusters on a device ?

LarryT, you're French ? If not, your French is good ! smile

I try the command and I get :

ntfsresize v1.12.1 (libntfs 9:0:0)
Device name : /dev/hda1
NTFS volume version : 3.1
Cluster size : 4096 bytes
Current volume size : 39999988224 bytes (40000 MB)
Current device size : 39999988224 bytes (40000 MB)
New volume size : 39999984128 bytes (40000 MB)
Nothing to do : NTFS volume size is already OK.

I've a laptop with one device and my aim was make some partitions in order to install Ubuntu wink


Re: Pbs of partition : HD sectors

You could try to run what Plors said :
ntfsresize --help
Then you get about this i guess :
ntfsresize -s  the_size_you_want  /dev/your_device

ntfsresize -s 25G /dev/hda1

i get this here :

[root@ws043 ~]# ntfsresize --help
ntfsresize v1.13.1 (libntfs 9:0:0)

Usage: ntfsresize [OPTIONS] DEVICE
    Resize an NTFS volume non-destructively, safely move any data if needed.

    -i, --info             Estimate the smallest shrunken size possible
    -s, --size SIZE        Resize volume to SIZE[k|M|G] bytes

but this is not the livecd version. So take care of any change

Ps : yep, i'm french

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


Re: Pbs of partition : HD sectors

bad clusters mean the device is physically damaged and you need to replace it.


Re: Pbs of partition : HD sectors

Okay txs to you, I'll see what I do. Force the resize like described by Larry or... replace