Windows is hibernated refused to mount remount failed operation not permitted

Cloning the hard disk with RescueZilla is not possible when the hard disk/Windows is in hibernation mode: “Windows is hibernated, refused to mount”.

RescueZilla is a good software for backing up hard disks or SSDs. It can be used not only to create images, but also to clone data media. See our instructions on the subject.

  • Moving Windows to a larger SSD with RescueZilla
  • Festplatten sichern und wiederherstellen mit Rescuezilla

Video

Hibernation problems

Unfortunately, the software is a little bitchy when the computer is in hibernation mode. It is therefore generally recommended to shut down the computer normally, without hibernation and quick start. The easiest way to do this is to “restart” the computer and then switch off the computer in the BIOS/UEFI display.

Of course, this is only possible if Windows still starts normally.

The error message

If this is no longer possible, RescueZilla aborts the process with error messages.

Windows is hibernated, refused to mount.
Remount failed: Operation not permitted

Remove hibernation

However, we have the possibility to remove the hibernation mode. To do this, we open a terminal in RescueZilla.

We now still need the information of the drive in question. We find this out in the third step of cloning. In our case it is the drive “/dev/sda” and partition 3.

In the terminal we can now display the data carriers in the system. This can be done with the following command:

lsblk

Here we now see our system data medium, the large partition is our Windows system.

With the following command, we can now mount the drive and delete the hibernation file:

sudo ntfs-3g -o remove_hiberfile /dev/sdXN /path/to/mount

Since we are mounting the drive, we first create a folder:

mkdir mount

Then we can mount the partition, in the example it is the following command:

If we now display the folder contents, we can see the files of our Windows system.

With “umount /root/mount” we can unmount the drive again. Then we start the cloning again. The process should now run without any problems.

Post Views: 358


published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!

posted at 07. Aug ’21

last updated at 11. Jul ’24

I use Windows 10. ntfs-3g works pretty well reading stuff, but it’s a long time since I could write anything. I turned off every sleep and hibernation and fast boot I could find, but to no avail. This sucks big time and I take it as a big fuck you from Microsoft. I spent hours searching and browsing for answers, but it’s like pure chaos.

UPDATE 2024/04/25: The combination of Windows 11 (turned off) and ntfs-3g version 1:2022.10.3-1+b1 works well, I can write even to the system partition.

UPDATE 2024/07/11: If mount complains, go to Windows 11, run chkdsk on a drive or run it via drive properties, and type powercfg /h off into admin cmd.exe. This will check drives for errors and turn off fast boot (there is no options in “modern” settings anymore). This helped me today.

damon@rapthalia:/run/media/damon$ mount /dev/nvme0n1p2 -o rw /mnt
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
damon@rapthalia:/run/media/damon$ umount CED8E5E3D8E5C9B3/
umount: /run/media/damon/CED8E5E3D8E5C9B3: must be superuser to unmount.
damon@rapthalia:/run/media/damon$ sudo umount CED8E5E3D8E5C9B3/
Password:
damon@rapthalia:/run/media/damon$ mount /dev/nvme0n1p2 -o rw /mnt
Windows is hibernated, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)
ntfs-3g-mount: user has no write access to mountpoint /mnt
damon@rapthalia:/run/media/damon$ sudo ntfsfix /dev/nvme0n1p2
Mounting volume... Windows is hibernated, refused to mount.
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Windows is hibernated, refused to mount.
Remount failed: Operation not permitted

There is a new NTFS driver from Paragon https://www.phoronix.com/scan.php?page=news_item&px=New-NTFS-Likely-For-Linux-5.15, which should land in Linux kernel 5.15. Does it mean the end of pain? Dunno. Most likely no, but reads will be much faster.

Если у вас на компьютере установлены две операционные системы: Linux и Windows 8, 8.1 или 10 и вы захотите примонтировать системный раздел Windows, чтобы скопировать оттуда или записать туда файлы, то, скорее всего, столкнетесь с ошибкой.

В современных системах такие разделы монтируются в режиме только для чтения по умолчанию, но если вам надо туда что-то записать, то придется немного поработать. В этой статье мы поговорим о том как подключить диск Windows в Linux.

Содержание статьи

  • Монтирование раздела Windows в Linux

  • Выводы

Скорее всего, если вы попытаетесь примонтировать раздел Windows, утилита mount выдаст вот такое сообщение: Error mounting: windows is hibernated refused to mount и примонтирует его только для чтения:

Это связано с использованием в новых версиях Windows алгоритма гибридной загрузки с использованием гибернации, которая и мешает вам получить доступ к вашим файлам.

Такое сообщение может сбить вас с толку. Обычно мы выключаем компьютер, с помощью пункта Завершение работы в меню Пуск. Никаких упоминаний о гибернации там нет, но Linux утверждает система находиться в режиме гибернации. А дело в том, что современные версии Windows используют гибернацию по умолчанию для ускорения загрузки.

Когда вы выключаете современную операционную систему Windows, она выключается не полностью, часть системных процессов сохраняются на диск, чтобы загрузка выполнялась быстрее. Это ускоряет процесс загрузки, но и имеет недостаток при использовании Linux.

Чтобы исправить эту проблему можно загрузить Windows и отключить гибридную загрузку. Единственным недостатком такого метода будет замедление загрузки системы. Она будет загружаться приблизительно с такой же скоростью, как Windows 7. Но зато вы сможете выполнить подключение раздела Windows в Linux. Ещё можно войти в Windows и перезагрузить компьютер, при выборе этой опции гибернация не используется.

1. Перезагрузка Windows

Windows не использует гибридную загрузку во время перезагрузки. Если выбрать пункт перезагрузка, то сохраненное начальное состояние будет стерто и создано новое.

Поэтому если в следующий раз захотите перейти в систему Linux из Windows — выбирайте пункт перезагрузка. Так система не уйдет в гибернацию и у вас не возникнет ошибок во время монтирования раздела Windows в Linux.

2. Выключение с клавишей Shift

Если вам нужно именно выключить компьютер есть еще один способ. Когда выбираете пункт меню выключить удерживайте нажатой клавишу Shift. Тогда система тоже не будет использовать гибернацию и полностью выключиться.

3. Отключение гибридной загрузки

Если вы не хотите думать какую кнопку нажимать и что делать при каждой перезагрузке Windows, можно полностью отключить гибридную загрузку. Но тогда Windows будет загружаться медленнее. Это также может понадобиться если аппаратное обеспечение компьютера не поддерживает гибридную загрузку. После ее отключения вы сможете легко выполнять монтирование разделов Windows в Linux без каких-либо ошибок в режиме как для чтения так и для записи.

Для этого загрузитесь в Windows, откройте панель управления, откройте пункт Оборудование и звук. В разделе Электропитание  выберите Изменение параметров, которые сейчас недоступны:

В открывшимся окне кликните по ссылке Изменить параметры, которые сейчас недоступны, затем пролистайте вниз и снимите галочку с пункта Включить быстрый запуск:

Затем нажмите кнопку Сохранить изменения.

4. Удаление файла Hiberfile.sys утилитой диски

Вместо перенастройки Windows, можно автоматически удалять файл гибернации каждый раз когда вам нужно выполнить монтирование разделов Windows в Linux. Конечно, после такой процедуры система будет загружаться медленнее, но потом она снова создаст файлы гибридной загрузки и продолжит использовать быстрый запуск. Это идеальный вариант если вы нечасто пользуетесь системным разделом Windows и не хотите терять скорость загрузки.

Но имейте в виду, что если вы действительно отправите компьютер в режим гибернации оставив открытыми программы и не сохраненные данные, то Linux все равно удалит реальный файл гибернации вместе со всеми вашими данными. Разницу между видами гибернации определить невозможно.

Для удаления файла hiberfile.sys достаточно добавить опцию монтирования файловой системы ntfs remove_hiberfile. Этот же совет вы можете видеть когда пытаетесь монтировать системный раздел с помощью ntfs3g.

В Ubuntu и других дистрибутивах с оболочкой Gnome это можно сделать с помощью утилиты Диски:

В правой части окна программы выберите жесткий диск с Windows, затем выберите системный раздел Windows. Кликните по кнопке с шестерней и выберите Изменить параметры подключения:

Переключите выключатель Automatic Mount Options в положение Off, затем вставьте следующую строку в конец опций монтирования внизу окна:

,remove_hiberfile

Нажмите OK и введите свой пароль. Теперь можете попробовать примонтировать системный раздел Windows в файловом менеджере Nautilus. Как видите, монтирование выполняется успешно, без каких-либо ошибок. Если файл гибернации был включен система его попросту удалит.

5. Удаление файла hiberfile.sys утилитой mount

Если вам нужно просто один раз подключить Windows раздел в Linux, несмотря на ошибку error mounting windows is hibernated и не настраивая никаких автоматических опций воспользуйтесь утилитой mount. Команде нужно передать имя системного раздела Windows включить ту же самую опцию, например:

mount -o defaults,rw,remove_hiberfile -t ntfs /dev/sda2 /mnt/ntfs

Здесь /dev/sda2 — раздел диска с Windows, а /mnt/ntfs — точка монтирования.

Эти действия необходимы, только если вам нужен доступ для записи файлов на системный раздел Windows. Если же вам просто нужно просмотреть или скопировать тот или иной файл можно выполнить монтирование разделов windows в Linux в режиме только для чтения. Например:

mount -o defaults,ro -t ntfs /dev/sda1 /mnt/ntfs

В Linux можно монтировать системные разделы в режиме только чтение, даже когда система Windows в гибернации.

Выводы

Независимо от того какой способ вы выбрали, в результате вы должны получить возможность подключить раздел Windows для чтения и записи:

Использование нескольких систем на одном компьютере — очень часто практикуется новичками. Обмен файлами между двумя системами — нормальное явление, а поэтому вы очень часто будете сталкиваться с этой ошибкой. Но эта статья поможет вам решить ее раз и навсегда. Если остались вопросы, пишите в комментариях!

  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • [SOLVED] I can’t access an NTFS partition, ubuntu thinks it’s hibernating…

  1. I can’t access an NTFS partition, ubuntu thinks it’s hibernating…

    … But it’s really not.
    I have been sure to have both Fast Startup and Hibernation off (unchecked) in Windows 10.
    Yet when I come to Ubuntu there’s this NTFS partition that won’t give me access saying (in a pop up):

    Code:

    Unable to access �315 GB Volume� - Error mounting /dev/sda2 at /media/javier/766862CE68628D25: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda2" "/media/javier/766862CE68628D25"' exited with non-zero exit status 14: Windows is hibernated, refused to mount.Failed to mount '/dev/sda2': Operation not permitted
    The NTFS partition is in an unsafe state. Please resume and shutdown
    Windows fully (no hibernation or fast restarting), or mount the volume
    read-only with the 'ro' mount option.

    Then I tried this:

    Code:

    ntfsfix dev/sda2
    Failed to determine whether dev/sda2 is mounted: No such file or directory
    Mounting volume... Failed to access 'dev/sda2': No such file or directory
    Error opening 'dev/sda2': No such file or directory
    FAILED
    Attempting to correct errors... Failed to access 'dev/sda2': No such file or directory
    Error opening 'dev/sda2': No such file or directory
    FAILED
    Failed to startup volume: No such file or directory
    Failed to access 'dev/sda2': No such file or directory
    Error opening 'dev/sda2': No such file or directory
    Volume is corrupt. You should run chkdsk.

    In the mean time I will go back to Windows and try to use chkdsk to check that partition.

    What do you guys think?

    Thanks


  2. Re: I can’t access an NTFS partition, ubuntu thinks it’s hibernating…

    First, you would need to use «ntfsfix /dev/sda2 with the leading slash. However ntfsfix has very limited abilities to correct an NTFS filesystem. You need to use chkdsk. From «man ntfsfix»:

    ntfsfix is a utility that fixes some common NTFS problems. ntfsfix is NOT a Linux version of chkdsk. It only repairs some fundamental NTFS inconsistencies, resets the NTFS journal file and schedules an NTFS consistency check for the first boot into Windows.


  3. Re: I can’t access an NTFS partition, ubuntu thinks it’s hibernating…

    If the partition isn’t a «simple partition» in Windows, that can cause issues for Linux too. https://msdn.microsoft.com/en-us/lib…(v=vs.85).aspx

    I always use the file system tools from the OS that created that file system. Trying to use Linux tools to fix Windows file systems is risking corruption. Microsoft has modified the partitioning and NTFS for years. Did all those changes get included in the tools made by Linux developers?

    And a clear understanding of relative paths and absolute paths is needed too. Disk devices are located in the /dev/ directory, so if you are in / already, using /dev/….. is required.


  4. Re: I can’t access an NTFS partition, ubuntu thinks it’s hibernating…

    NTFSfix turns on the chkdsk flag. And the Linux NTFS driver will not mount NTFS with the chkdsk flag on in read/write mode.

    So running NTFSfix locks out Linux until you boot Windows and run chkdsk on the NTFS partition(s).


  5. Re: I can’t access an NTFS partition, ubuntu thinks it’s hibernating…

    Man!
    You all guys «always» exceed my expectations!

    Thank you for you help

    JDL


  6. Re: I can’t access an NTFS partition, ubuntu thinks it’s hibernating…

    Well, chkdsk did not find anything wrong
    And there are no BIOS updates available for me

    Should I try formating the partition?

    JDL


  7. Re: I can’t access an NTFS partition, ubuntu thinks it’s hibernating…

    I guess I’ll have to format the partition, because I ran ntfsfix and gave me this:

    Code:

    sudo ntfsfix /dev/sda2
    [sudo] password for javier: 
    Mounting volume... Windows is hibernated, refused to mount.
    FAILED
    Attempting to correct errors... 
    Processing $MFT and $MFTMirr...
    Reading $MFT... OK
    Reading $MFTMirr... OK
    Comparing $MFTMirr to $MFT... OK
    Processing of $MFT and $MFTMirr completed successfully.
    Setting required flags on partition... OK
    Going to empty the journal ($LogFile)... OK
    Windows is hibernated, refused to mount.
    Remount failed: Operation not permitted


  8. Re: I can’t access an NTFS partition, ubuntu thinks it’s hibernating…

    You said you have hibernation off.
    But ntfsfix is saying it is on.

    Mounting volume… Windows is hibernated, refused to mount.

    Windows on updates may turn fast start back on. So you have to regularly check.
    If you have auto update on in Windows it may just update & turn it on again.
    Fast Start up off (always on hibernation)
    http://ubuntuforums.org/showthread.php?t=2324331&p=13488472#post13488472
    http://www.tenforums.com/tutorials/4189-fast-startup-turn-off-windows-10-a.html
    http://www.tenforums.com/tutorials/2859-hibernate-enable-disable-windows-10-a.html


  9. Re: I can’t access an NTFS partition, ubuntu thinks it’s hibernating…

    I see. I’ll check now again.
    One odd thing I have noticed (in Win10) though, the Time is never correct. I fix it every time. But if I have to reboot, it shows the wrong time again when booted up.
    If it normally relies on writing information to some kind of log file to keep this consistent, then wouldn’t this suggest that it is having a hard time doing it? If so, could this be related to the problem I have with the hibernation?


  10. Re: I can’t access an NTFS partition, ubuntu thinks it’s hibernating…

    Do not know if specifically Windows or Ubuntu, some links.
    hardware clock, Windows clock, Ubuntu clock times

    https://help.ubuntu.com/community/UbuntuTime#Multiple_Boot_Systems_Time_Conflicts
    time, UEFI, windows 8 — several posts by sudodus
    http://ubuntuforums.org/showthread.php?t=1769482&p=12608648#post12608648

    http://askubuntu.com/questions/90504…alling-windows
    Clock and some boot settings like fsck, login, tmp retain time.
    /etc/default/rcS
    # Set UTC=yes if your hardware clock is set to UTC (GMT)
    UTC=no
    sudo hwclock —localtime —adjust


Bookmarks

Bookmarks

Posting Permissions

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как поставить максимум ядер на компьютере windows 10
  • Как переназначить разъем микрофона под наушники windows 10
  • Windows boot manager как отредактировать
  • Какая разрядность windows бывает
  • Windows 10 блокнот с темной темой