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

Can't remove Windows hiberfile #118

Open
DSixtoAlonso opened this issue Aug 8, 2024 · 3 comments
Open

Can't remove Windows hiberfile #118

DSixtoAlonso opened this issue Aug 8, 2024 · 3 comments

Comments

@DSixtoAlonso
Copy link

Good afternoon,

Thank you for your work.

After trying to swap install Kubuntu 16 for 24, with Windows as a separate partition, boot fails to recognise Windows as it is now apparently on Hibernate.

Instead of installing Kubuntu I installed Rosa Fresh Plasma and now using it's Konsole to try and remove the hiberfil.sys from the Windows partition so the Windows partition can be seen on Boot.

I have tried the commands (without success):
ntfs-3g /dev/sda1 /mnt/windows
mount - t ntfs-3g /dev/sda1 mnt/windows
remove_hiberfile
ntfsrecover

Yet all met with; Permission denied, Windows is on hibernate etc.

Any suggestions are greatly appreciated!

Many thanks in advance.

Kind regards,

DSixtoAlonso

@DSixtoAlonso
Copy link
Author

DSixtoAlonso commented Aug 14, 2024

Issue solved!

A Windows 10 USB was prepared on a macOS computer and the repair option on the USB gave access to the original Windows partition on the laptop despite being on hibernate!

Although the Windows partition is still on hibernate, this USB also allows a reinstalling of Windows therefore removing the constant hibernated state with a new Windows.

I'm still all ears for a ntfs-3g solution when available.

Best regards and Hallelujah!

DSixtoAlonso

@unsound
Copy link
Member

unsound commented Aug 15, 2024

The mount command including the remove_hiberfile option should be (for the same device and mountpoint):
ntfs-3g /dev/sda1 /mnt/windows -o remove_hiberfile

Does this work for you or are you still getting the "permission denied" message?

@jpandre
Copy link
Collaborator

jpandre commented Aug 15, 2024

Mounting (even with option remove_hiberfile) will probably be rejected because Windows keeps metadata in its cache.
ntfsrecover is supposed to process the log and remove the reference to cached metadata. What was the outcome when you tried ? (must designate the partition, define option --kill-fast-restart, and run as root)

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

3 participants