Bug 910115 - RFE: support ntfsresize --bad-sectors option in virt-resize
Summary: RFE: support ntfsresize --bad-sectors option in virt-resize
Keywords:
Status: NEW
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-11 21:08 UTC by Richard W.M. Jones
Modified: 2025-10-17 12:52 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-10-17 00:10:00 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2013-02-11 21:08:04 UTC
Description of problem:

If a Windows guest has bad sectors (eg. if it came from a
physical machine) then virt-resize cannot resize it, because
the ntfsresize utility will refuse to run unless the --bad-sectors
option is specified.

We should either detect and add this option automatically (if
that is possible) or we should allow the user to specify this
option.

Version-Release number of selected component (if applicable):

libguestfs 1.21

(Suggested by Eric Blake)

Comment 1 Eric Blake 2013-02-11 21:19:54 UTC
Or even find a way to teach windows that there are no longer any bad sectors in the copy (perhaps by clearing or deleting the hidden $BadClust file), since the destination file is not the same block device as the source that had bad clusters in the first place.

Comment 2 Eric Blake 2013-02-17 23:25:58 UTC
Looks like 'ntfsfix --clear-bad-sectors /dev/...' is the way to modify the file system to force windows to quit treating sectors as bad.

Comment 3 Red Hat Bugzilla 2025-10-17 00:10:00 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.

Comment 4 Alasdair Kergon 2025-10-17 12:52:13 UTC
Reopening because Virtualization Tools has not been discontinued.


Note You need to log in before you can comment on or make changes to this bug.