Linux windows ntfs partition

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.

Читайте также:  Readline linux ��� ���

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.

Диск 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 говорит о том, что всё прошло успешно.

После этого вновь попытайтесь смонтировать диск — всё должно быть нормально.

Читайте также:  Google chrome вылетает windows 10

Решение ошибки «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:

Как автоматически подключить раздел ntfs в Linux?

Возможно у вас, как и у меня, на компьютере стоит две операционных системы: Windows и Linux. Я уже писал, как установить Windows и Linux на одном компьютере, и если делать всё правильно, то ntfs разделы Windows автоматически монтируются в Linux.

Но лично я уж не раз сталкивался с ситуацией, когда я или забывал при установке Linux указать точки монтирования на разделы ntfs, или после переустановки Windows и восстановления GRUB, разделы Windows уже не подключались автоматически, так как менялся их UUID.

Если у вас такая же проблема и вы хотите, чтобы разделы ntfs у вас подключались автоматически, то читайте дальше, так как именно в этой статье вы найдёте простое решение, как автоматически подключить раздел ntfs в Linux?

Для начала немного теории. В Linux есть текстовый файл, в который прописываются все устройства, которые должны автоматически монтироваться при загрузке системы. Файл этот вы видите на рисунке выше и находится он в /etc/fstab Чтобы посмотреть его в Linux, наберите в терминале:

Как видите, сейчас в fstab Windows раздел не вписан, поэтому ntfs раздел автоматически не монтируется при загрузке. Или он может быть там прописан, но из-за неверного UUID он может не монтироваться, а Linux при загрузке будет просить нажать кнопку S, чтобы система загрузилась. Что же можно сделать и как автоматически подключить раздел ntfs в Linux?

Самый простой способ — это воспользоваться специальной утилитой. Вначале установим её, если она у вас ещё не установлена:

После установки можно просто запустить в терминале команду:

После введения пароля вы увидите вот такое окошко, которое покажет, какие разделы ntfs у вас есть на компьютере.

Читайте также:  Как остановить службу защитник windows

Поставьте галочку и нажмите кнопку Auto Configure. После этого утилита автоматически смонтирует раздел и внесёт нужные изменения в fstab. Если окно не закроется само, то через какое-то время закройте его принудительно. Далее вашему взору предстанет такое окошко:

Тут можно поставить нужные галочки и потом окно закрыть. Теперь ещё раз посмотрим наш файл fstab:

Как видите, в нём появилась новая запись, а на рабочем столе у меня появился смонтированный ntfs раздел Windows:

Вот таким простым способом можно автоматически подключить раздел ntfs в Linux. Никаких сложностей возникнуть не должно, так как в Linux всё очень просто!

How Do I Access or Mount Windows/USB NTFS Partition in RHEL/CentOS/Fedora

Sometimes it may happens in some stage, you may have to access data on a Windows partition, USB device or any similar device. Today most of the modern Linux systems automatically recognize and mount any disks.

However, in some occasions where you may required to configure your system manually to mount ntfs partitions on your Linux system. Specially when you are using dual boot operating environment. Fortunately, this process is not so complicated task its just very fairly straight forward.

How to mount Windows NTFS Partition in Linux

This article explains you on how to access or mount Windows XP, Vista NTFS or USB filesystem using the ‘mount‘ command in RHEL/CentOS/Fedora systems.

How to Mount Windows NTFS Partition in Linux

First you need to enable EPEL (Extra Packages for Enterprise Linux) Repository. You may refer the article on how to enable EPEL Repository under RHEL, CentOS and Fedora systems.

To mount any NTFS based filesystem, you need to install a tool called NTFS3G. Before heading up for installation let’s understand NTGS3G.

What is NTFS3G

NTFS3G is an open source cross-platform, stable, GPL licensed, POSIX, NTFS R/W driver used in Linux. It provides safe handling of Windows NTFS file systems viz create, remove, rename, move files, directories, hard links, etc.

Once EPEL is installed and enabled, let’s install ntfs-3g package using the below command with root user.

Fuse Install

Next, install and load FUSE driver to mount detected devices with below command. FUSE module is included in the kernel itself in version 2.6.18-164 or newer.

Identify NTFS Partition

Once fuse module is loaded, type below command to find out NTFS Partitions in Linux.

Mount NTFS partition

First create a mount point to mount the NTFS partition.

Simply run the following command to mount the partition. Replace sda1 with your actual partition found.

Once it’s mounted on /mnt/ntfs, you may use regular Linux ls -l command to list the content of mounted filesystem.

If you want to make mount point permanent at the boot time, then simple add the following line at the end of /etc/fstab file. This will remain as permanent.

Umount NTFS Partition

Simply, use the following command to unmount the mounted partition.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

We are thankful for your never ending support.

Оцените статью