Linux: Resize NTFS Partition

NetRock6
NetRock6 used Ask the Experts™
on
Hi ..
trying to resize NTFS partition in Linux using ntfsresize.  Getting the following error:
 
"volume is scheduled for check"

I tried option -f also but it did not resize the partition.
Any idea ....
Thank you for Your Quick Prompts.

Cheers
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Looks like your disk is dirty.

https://askubuntu.com/questions/112150/how-to-correctly-fix-a-dirty-ntfs-partition-without-using-chkdsk provides what appears to be the answer.
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Another simple test.

You might try just rebooting, at which time a correct fsck invocation will likely be run to clean your disk...

Where clean just means running the normal fsck housekeeping. So nothing really wrong with your disk. It's just been running a while + has been flagged to have housekeeping run. Till the housekeeping step runs, you won't be able to do any format change operations, like a resize.

Author

Commented:
Thanks David.
I saw that answer already and tried 'sudo ntfsfix /dev/sdb1' and still resulted in the same error with ntfsresize.
Also, the system does not have -d option for ntfsfix since ntfsfix is an older version and upgrading it is not an option.
is there any other command line utility to use instead....
Thank you and appreciate your quick reply ....
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Also:
sck invocation will likely be run to clean your disk
Causing a blue screen in windows ....
nociSoftware Engineer
Distinguished Expert 2018

Commented:
Are there any applications active to that device? One can only do a correct filesystem check when a device is:

either unmounted
or mounted in a stable state (read only) with no active transactions, and all buffers flushed.

Best is to unmount the disk and then check the device or mount it readonly and check the device.
After that you can resize it and mount it again for use.

Commented:
Use a Windows boot disk (either CD/DVD or USB), and during install, use SHIFT+F10 to reach a command box.
Then use chkdsk to get the NTFS to a clean state again (assuming no hardware errors are encountered)

Author

Commented:
I am migrating Windows 10 to a bigger drive. That is why i need to resize it.
I have partitioned the larger drive first by taking the whole size of the drive then,
I took the MBR of the smaller drive using the followings comamnd:
dd if=/dev/sda of=drivea.mbr bs=512 count=1 

Open in new window

and then restore to the bigger drive(sdb) using:
dd of=drivea.mbr of=/dev/sdb bs=512 count=1

Open in new window

.
I believe this is breaking the ntfsresize. I might need to restore only bs=446 into the larger drive.  
anyone knows the proper procedures migrating from smaller size drive to a larger drive for
windows 10 in the Linux environment.

Thank You for your great help.

Cheers.

Author

Commented:
Also when I use bs=446, although the bootable flag is set on the larger drive but cannot boot from it.
I get the error: "Booting from the hard drive" with a blinking cursor.... ;(
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Still best to "clean" your disk first (remove the dirty flag).

If you do anything else, except this step first, you may end up in a situation where you have to completely reformat the drive to get out of the bind you create by missing the clean step.

Author

Commented:
If I use bs=446, ntfsresize does not complaint anymore, it resizes the disk.

Commented:
Also if you're migrating from Win10 to a bigger drive, a one on one copy means Win10 will still boot up in the new drive. Making a simple partition bigger (new space is right behind the old partition), can be done LIVE within from the booted Win10 machine (diskmgmt.msc). Obviously, still do a chkdsk (followed by a reboot to actually let it run) before doing it.
Commented:
I repeated the procedure mentioned in my post above, it worked without any issues.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial