Comment 7 for bug 763155

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: ubi-usersetup failed with error code 10

from the logs the error is caused by:

Apr 16 14:32:46 ubuntu ntfsresize: ntfsresize v2.0.0 (libntfs 10:0:0)
Apr 16 14:32:46 ubuntu ntfsresize: Device name : /dev/sda2
Apr 16 14:32:46 ubuntu ntfsresize: NTFS volume version: 3.1
Apr 16 14:32:46 ubuntu ntfsresize: Cluster size : 4096 bytes
Apr 16 14:32:46 ubuntu ntfsresize: Current volume size: 268464878080 bytes (268465 MB)
Apr 16 14:32:46 ubuntu ntfsresize: Current device size: 268464881664 bytes (268465 MB)
Apr 16 14:32:46 ubuntu ntfsresize: ERROR: This software has detected that the disk has at least 2 bad sectors.
Apr 16 14:32:46 ubuntu ntfsresize: ****************************************************************************
Apr 16 14:32:46 ubuntu ntfsresize: * WARNING: The disk has bad sector. This means physical damage on the disk *
Apr 16 14:32:46 ubuntu ntfsresize: * surface caused by deterioration, manufacturing faults or other reason. *
Apr 16 14:32:46 ubuntu ntfsresize: * The reliability of the disk may stay stable or degrade fast. We suggest *
Apr 16 14:32:46 ubuntu ntfsresize: * making a full backup urgently by running 'ntfsclone --rescue ...' then *
Apr 16 14:32:46 ubuntu ntfsresize: * run 'chkdsk /f /r' on Windows and rebooot it TWICE! Then you can resize *
Apr 16 14:32:46 ubuntu ntfsresize: * NTFS safely by additionally using the --bad-sectors option of ntfsresize.*
Apr 16 14:32:46 ubuntu ntfsresize: ****************************************************************************
Apr 16 14:32:46 ubuntu partman: Error running 'ntfsresize --info'

I'm assigning to linux-ntfsprogs if you think ntfsresize wrongly identified bad sectors.