tuxera / ntfs-3g

NTFS-3G Safe Read/Write NTFS Driver
https://www.tuxera.com/company/open-source
GNU General Public License v2.0
994 stars 149 forks source link

-f set but still human interaction #117

Open andreashe opened 4 months ago

andreashe commented 4 months ago

Hi, when I did a

ntfsresize -f -P /dev/sda2

it still requested human interaction, even if -f was used. Looks like a bug to me:

ntfsresize v2022.10.3 (libntfs-3g) Device name : /dev/sda2 NTFS volume version: 3.1 Cluster size : 4096 bytes Current volume size: 30753681920 bytes (30754 MB) Current device size: 163136094208 bytes (163137 MB) New volume size : 163136090624 bytes (163137 MB) Checking filesystem consistency ... Accounting clusters ... Space in use : 14539 MB (47.3%) Collecting resizing constraints ... WARNING: Every sanity check passed and only the dangerous operations left. Make sure that important data has been backed up! Power outage or computer crash may result major data loss! Are you sure you want to proceed (y/[n])?

unsound commented 3 months ago

From the manpage: -f, --force Forces ntfsresize to proceed with the resize operation either without prompting for an explicit acceptance, or if the filesystem is marked for consistency check. Double the option (-ff, --force --force) to avoid prompting even if the file system is marked for check.

So using -ff should solve the problem. Let us know if it still prompts.