- Диск Windows монтируется только для чтения (РЕШЕНО)
- Решение ошибки «Windows is hibernated, refused to mount».
- Гибернация Windows и быстрый перезапуск
- Удаление файла гибернации
- Solve Windows Partition Mount Problem In Ubuntu Dual Boot
- Problem: The NTFS partition is in an unsafe state error in Ubuntu
- Quick Fix to mount Windows partition immediately
- Reason: Fast Startup feature of Windows 8 and Windows 10
- Permanent Solution: Disable Fast Startup in Windows 8 and Windows 10
- How to disable fast startup in Windows 8 and 10:
- Монтирование NTFS раздела с гибернацией (Win-8) [Решено]
- The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volumeread-only with the ‘ro’ mount option.
- Добавить комментарий Отменить ответ
- How to let linux mount an NTFS partition in an “unsafe state” due to Windows crash?
- 2 Answers 2
Диск Windows монтируется только для чтения (РЕШЕНО)
В настоящее время Windows использует файловую систему NTFS. Linux поддерживает эту файловую систему для чтения, записи, создания, форматирования и выполнения других операций.
Тем не менее, иногда при попытке смонтировать диск Windows может возникнуть одна из двух ситуаций:
- диск монтируется, но только для чтения. Специальное указание опция монтирования с правами записи не помогает
- диск вовсе не монтируется из-за ошибки
К примеру, при попытке смонтировать диск:
может возникнуть ошибка, что диск доступен только для чтения:
А это пример ошибки, когда диск не смонтирован вовсе:
Для решения этой проблемы нужно начать с установки драйвера ntfs-3g. Во-первых, он в любом случае необходим для полноценного функционирования файловой системы NTFS в Linux. Во-вторых, в этот пакет включена утилита ntfsfix, которая может помочь решить проблемы с диском Windows.
Для установки в Debian, Linux Mint, Ubuntu, Kali Linux и их производные:
Для установки в Arch Linux и производные:
Затем вновь попробуйте смонтировать диск — вполне возможно, что в этом случае он будет доступен с правами записи.
Если вновь возникла проблема, то отмонтируйте диск и запустите команду вида:
Пример команды для проверки и исправления проблемы с диском /dev/sdb4:
Команда выводит причину проблемы: диск содержит нечистую файловую систему. Метаданные, хранимые в кэше Windows, препятствуют монтированию.
Затем выполняется ряд операций, каждая из которых заканчивается статусом OK и наконец сообщение was processed successfully говорит о том, что всё прошло успешно.
После этого вновь попытайтесь смонтировать диск — всё должно быть нормально.
Решение ошибки «Windows is hibernated, refused to mount».
Выполнение рассмотренной команды
может завершиться неудачей:
Обратите особое внимание на строку «Windows is hibernated, refused to mount» которая повторяется дважды. Она означает, что работа Windows завершилась гибернацией, такой диск не может быть смонтирован для записи. Если вы специально выключили компьютер таким образом, то перезагрузитесь и выключите без гибернация или быстрого запуска.
Но это может не помочь, поскольку последние версии Windows делают гибернацию автоматически, без ведома пользователя.
Гибернация Windows и быстрый перезапуск
На компьютерах, на которых возможна двойная загрузка в Windows или Linux, Windows должна быть полностью выключена перед загрузкой в Linux, в противном случае файловые системы NTFS на внутренних дисках могут остаться в несогласованном состоянии, а изменения, сделанные Linux, могут быть проигнорированы Windows.
Таким образом, Windows нельзя оставлять в режиме гибернации при запуске Linux, чтобы избежать несоответствий. Кроме того, необходимо отключить функцию быстрого перезапуска, доступную в последних системах Windows. Этого можно добиться, выполнив в качестве администратора команду Windows, которая отключает как гибернацию, так и быстрый перезапуск, а также удаляет файл hiberfile:
Если вы не хотите отключать гибернацию, то для одноразового выключения компьютера Windows без гибернация выключите его командой:
Удаление файла гибернации
Когда том NTFS находится в спящем режиме, монтирование для чтения и записи запрещается, и том принудительно монтируется только для чтения. Необходимо либо возобновить работу Windows и правильно её выключить, либо использовать опцию remove_hiberfile, которая удалит файл гибернации Windows. Обратите внимание, это означает, что сохранённый сеанс Windows будет полностью утерян, но сама Windows не пострадает. Напомним, что в файле гибернация хранится содержимое оперативной памяти на момент выключения. Кстати, именно поэтому размер файла гибернация равен размеру оперативной памяти компьютера. Используйте эту опцию под свою ответственность.
Пример команды с указанием опции remove_hiberfile:
Solve Windows Partition Mount Problem In Ubuntu Dual Boot
Last updated November 10, 2019 By Abhishek Prakash 154 Comments
Problem: The NTFS partition is in an unsafe state error in Ubuntu
I dual boot Ubuntu 14.04 with Windows. After upgrading to Windows 8, I often see an error “The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully” when I try to mount the NTFS partitions in Ubuntu. The full text of error is as following:
Error mounting /dev/sda5 at /media/itsfoss/01BC76G7Z2628FB0: Command-line `mount -t “ntfs” -o “uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177” “/dev/sda5” “/media/itsfoss/01BC76G7Z2628FB0″‘ exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount ‘/dev/sda5’: 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.
Quick Fix to mount Windows partition immediately
Read the error again. Just the second line which reads: Error mounting /dev/sdXY….
Note the /dev/sdXY thing. XY should be replaced with the error you see in your system. Now open terminal and use the following command:
where XY is the troublesome partition shown in the error. For example sda2 or sdb1 or sda5 (as in picture above). ntfsfix is already installed in Ubuntu systems.
Reason: Fast Startup feature of Windows 8 and Windows 10
Microsoft introduced a new feature in Windows 8 and 10 to reduce the boot time in otherwise slow Windows OS. This feature is called Fast Startup. In normal shut down process, power is removed from all components such as CPU, RAM, CD-Rom and hard disks. But in fast start up, Windows 8 saves some system information such as caching the registry etc to a file during shutdown. Part of the metadata about the state of all mounted partitions at the time of
But in fast start up, Windows 8 saves some system information such as caching the registry etc to a file during shutdown. Part of the metadata about the state of all mounted partitions at the time of turn-off, is among these system information. This reduces the boot time of the Windows 8 but it creates the trouble for Ubuntu.
Since the information about the NTFS partition is stored in Windows 8, this prevents Ubuntu to mount them as mounting them in Linux will alter the metadata of the partitions. This is why it is in protected mode and you cannot mount it (without being root).
Permanent Solution: Disable Fast Startup in Windows 8 and Windows 10
Temporary solution of this problem will be to boot in to Windows and restart it. Restarting is different from shutdown and it should release the partition metadata from the stored system information. But this will only be a temporary solution because when you use Windows 8 or 10 next time, you’ll face the same problem again.
Permanent solution would be to disable the fast startup in Windows 8/10. This will increase your Windows boot time so it is up to you if you prefer it. If you use Windows more frequently and you have probably set Window as default OS in dual boot with Ubuntu, then you should avoid this solution. But if you more of a Linux guy and use Windows occasionally then you can disable fast startup in Windows 10 without thinking twice.
How to disable fast startup in Windows 8 and 10:
If you know how to go around Windows, use the following path to disable fast startup.
Go to Control Panel > Hardware and Sound > Power Options > System Setting > Choose what the power buttons do and uncheck the Turn on fast startup box.
Alternatively, here is the detailed process along with some picture to help you to disable fast startup in Windows. First search for Power Option along with Settings filter in start screen of Windows 8.
Make sure that you have admin rights:
Scroll down a bit in power options to look for Turn on fast startup option and uncheck this box.
That’s all. Next time you try to mount NTFS partition in Ubuntu, you should not see the NTFS partition is in an unsafe state error .
Though the tutorial is meant for Ubuntu, the same tutorial should also help all other Linux distributions such as Linux Mint, elementary OS etc.
Any questions and suggestions? Feel free to hit the comment box.
Like what you read? Please share it with others.
Монтирование NTFS раздела с гибернацией (Win-8) [Решено]
Собственно вопрос в названии.
Ну никак не хочет монтироваться раздел с установленной виндой.
Винда 8.1
Сообщение об ошибке:
Windows is hibernated, refused to mount.
Failed to mount ‘/dev/sda2’: Операция не позволена
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.
Пробовал монтировать с опцией -o force. Ответ такой же.
Подскажите, кто знает.
Пробовал монтировать с опцией -o force. Ответ такой же. А то, о чем просят в сообщении об ошибке, пробовал выполнить?
Раньше после остановки винды с полным выключением и последующим (с ноля) запуском ноута и загрузки бунты не монтировались вообще все разделы ntfs.
В винде отключил быстрый запуск, что дало результат по монтированию ntfs разделов постле остановки (не перезагрузки) винды. Однако раздел, на котором стоит сама винда по прежнему не монтируется ни при каких условиях.
Хотя винда стоит уже достаточно давно, но обратил на это внимание совсем не давно, когда стал часто пользоваться виндой в плане игрушек.
Но вы понимаете, что установка или отключение каких либо опций в самой винде, — это совершенно не выход, потому как в случае сбойного завершения винды, без танцев с бубном разделы монтироваться не будут.
Причем раньше при использовании и XP и семерки ничего подобного не наблюдал.
Что это за хрень, ума не приложу.
Принудительно монтировать не надо. Надо починить диск NTFS и монтировать нормально.
Тут был похожий случай все описано.
Боюсь, ситуация несколько иная.
Во-первых, ноут достаточно свежий (хотя это не гарантия, понимаю)
Во-вторых, сам винт работает совершенно без каких-либо претензий.
В-третьих, винда-то грузиться без проблем, и работает без проблем и отклонений.
Хотя.
Был один нюанс. Винда при установке создает зарезервированную область, в которую помещает свою загрузку. Но загрузка из под граба происходила не корректно. Я скопировал содержимое этого раздела на раздел с виндой, изменил настройки граба по загрузке разделов, и загрузка стала происходить нормально. Причем, у меня это касаемо только винды 8.
В общем-то мелочь, но чем черт не шутит.
А причем тут свежесть? «Ремонт» же не физический, а программный. Мог быть сбой по питанию или игра какая- поглючила. Притом винда эти ошибки может игнорировать. Именно так было у человека, что по ссылке я дал.
В любом случае, эта команда разделу ничего плохого не сделает.
The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volumeread-only with the ‘ro’ mount option.
Если у вас возникает ошибка при подклбчении диска windows в ubuntu – The NTFS partition is in an unsafe state. Please resume and shutdownWindows fully (no hibernation or fast restarting), or mount the volumeread-only with the ‘ro’ mount option – значит что система windows была оставлена в режиме сна. Чтобы пофиксить эту ошибку надо установить пакет ntfsprogs.
Затем в консоли смотрим
Видим что то типа этого
/dev/sdg1 2048 511080447 255539200 7 HPFS/NTFS/exFAT
/dev/sdg2 511080448 512002047 460800 27 Hidden NTFS WinRE
/dev/sdg3 * 512002048 512718847 358400 7 HPFS/NTFS/exFAT
/dev/sdg4 512718848 1250260991 368771072 7 HPFS/NTFS/exFAT
Значит у нас четыре раздела с NTFS.
Фиксим каждый из них по очереди
sudo ntfsfix /dev/sdg1
sudo ntfsfix /dev/sdg2
sudo ntfsfix /dev/sdg3
sudo ntfsfix /dev/sdg4
Ну и если не помогло, то монтируем нужный раздел при помощи команды
sudo mount -t ntfs -o remove_hiberfile /dev/sdg1 /mnt
где dev/sdg1 – том, который хотим примонтировать
/mnt – куда монтируем, можно создать у себя в домашнем каталоге папку, назовем ее ntfs
и смонтируем в нее раздел
sudo mount -t ntfs -o remove_hiberfile /dev/sdg1 ntfs.
Все, польземся. С вами был Александр. Если есть вопросы, пишем в комментариях.
Добавить комментарий Отменить ответ
Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.
How to let linux mount an NTFS partition in an “unsafe state” due to Windows crash?
I have an NTFS partition that’s shared between Windows and Linux. This partition holds my linux home folder, so it’s important that I can mount it in read-write mode, and that it is mounted before I log in.
I have disabled Windows fast boot so that it doesn’t leave the partition in an «unsafe state», which linux either mounts in read-only mode or doesn’t mount at all (with an error message like this). However, Windows crashes somewhat regularly, which also leaves the partition in an unsafe state.
I’ve more or less successfully used ntfsfix to get around this, but that doesn’t seem to be a real solution, because today it destroyed some of my files. (Causing an [errno 5] input/output error error when I try to access them.)
I’m currently mounting the partition with this line in /etc/fstab :
The problem with this is that it silently mounts the partition in read-only mode if it was left in an unsafe state. It usually takes me a few minutes to notice, which is very annoying.
So, my question is:
- Is it possible to leave the NTFS partition in a «safe» state, even if Windows crashes? (If there are alternatives to a NTFS-formatted partition, I’d be happy to hear them, but keep in mind that it has to hold my home folder)
- If no, is it possible to configure linux to mount the «unsafe» partition in read-write mode anyway; without risking data loss?
- If no, can I at least make linux display a warning like «Partition mounted in read-only mode!» so that I notice the problem right away?
2 Answers 2
The last I heard, NTFS was unsuitable for use as a Linux /home partition because Linux programs often rely on permissions and ownership features for some files in /home , and those features aren’t provided by NTFS. For instance, some files in
/.ssh/ need specific permissions in order to work correctly. Thus, you should not use NTFS, or any other non-Linux filesystem, for /home . (You might be able to get away with using HFS+ or something else that provides Linux/Unix-style filesystem features, but that’s territory that few people have traversed.)
For file sharing between Windows and Linux, it’s best to mount the shared-data partition somewhere other than /home , or even /home/
Alternatively, you could use a Linux native filesystem for /home and use a Windows driver for that filesystem. Several such drivers exist, such as Ext2fsd and Paragon’s ExtFS for Windows. I have no recent experience with any of these tools, though, so I can’t say how well any of them work, or recommend one over another.
To more directly address your question: The mount.ntfs utility includes some options that might do what you want. The most promising, to my eye, is recover , which is supposed to force the mounting of an NTFS volume even if it’s flagged as being in an inconsistent state. Note, however, that this is not what I’d call «safe.» I’d only try this in conjunction with a read-only mount as a way to recover files before doing something else with the volume, like boot into Windows to repair it. Note that I’ve never tried using this option, so I can’t promise what it will do in practice. If you must try it, I recommend experimenting on a «scratch» volume first and/or searching the Web for reports of people using it.
You might think that the Linux ntfsfix program would repair an NTFS volume; but it does very minimal checks, even more minimal repairs, and flags it as needing attention in Windows. Thus, repairing an NTFS volume really is a Windows-only operation, AFAIK. As a practical matter, if your dual-boot computer crashes (when running either OS), it’s best to boot it into Windows so that Windows can repair its shared NTFS filesystems before you boot into Linux. (Windows can also repair FAT filesystems at this time; but Linux at least provides a decent FAT repair tool, dosfsck , so FAT partitions can be repaired from Linux, if necessary.)