Search code examples
linuxubuntuterminalcommandmount

Error Mounting for ntfs partition in ubuntu 16.04 in terminal


hello.

i need to help. i want to mounting drive D in ubuntu 16.04.BUT my partition is ntfs format. (Drive C & D)

I had Installed Windows 7 on my computer, but then I Deleted It and Installed Ubuntu 16.04, but i just repartition the drive C. and did not change the drive D partition.

means that i changed C partitioning and partitioned it for Ubuntu OS(like home & swap & root). partition of D is constant. so D partitions did not change.(D partition is NTFS)

partitioning for ubuntu in C

When Ubuntu installed, i wanted to open my D drive (ntfs) but get the following error:

this message show when i want to open drive

and when mounting in terminal give me this message:

`root@mjb:/home/mjb# mount -t "ntfs" /home
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.`

and this:

sudo mount -t ntfs-3g /dev/sda5 /dummy
[sudo] password for mjb: 
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.

I test this solution:

  1. open Terminal
  2. type this command sudo -mount -t ntfs -r /dev/sda5 and then enter

then the partition mounted but i have a new problem:

the partition is read only because i type in command -r

ubuntu told me in the error message that: you can mount partition read only.

my question is: does exist any command for mounting partition in the form of read/write.


Solution

    1. Open Disks
    2. Select the partition you are not able to mount then turn off automatic mounting options, unselect mount at startup & write ro after comma as shown in the image & now you should be able to mount the disk succesfully.