Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-f set but still human interaction #117

Open
andreashe opened this issue Jul 21, 2024 · 1 comment
Open

-f set but still human interaction #117

andreashe opened this issue Jul 21, 2024 · 1 comment

Comments

@andreashe
Copy link

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
Copy link
Member

unsound commented Aug 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants