Page 1 of 1

Duplication of NTFS partition on Caja [SOLVED]

Posted: Mon Jul 30, 2012 11:32 am
by roccop
Hello,
I modified /etc/fstab because I want that my Linux Mint 13 (64bit) mount during start-up my NTFS partition (shared with Windows 7).

> cat /etc/fstab
# mount della partizione Disco Dati /dev/sda5
UUID=3E20491C2048DD11 /media/Data\040Disk ntfs users,defaults 0 0

thanI ran:

> sudo chown root /media/Data\ Disk/

The problem is: when I open Caja I see "Disk Data" two time. One is mounted and it works fine, the second one is not mounted and if I click on I have warning message:

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.

How can I delete this entry duplication?

thanks,
R.

Re: Duplication of NTFS partition on Caja

Posted: Mon Jul 30, 2012 11:45 am
by altair4
First, you can't chown an ntfs partition because there are no Linux ownership bits to chown to change.

Second, If you really want this to automount and shared with Windows 7 I would get rid of the "users" option and add another one so that it looks like this:

Code: Select all

UUID=3E20491C2048DD11 /media/Data\040Disk ntfs defaults,windows_names 0 0
Third, unmount the partition:

Code: Select all

sudo umount "/media/Data Disk"
And then run the following command to see if it's mounted and where:

Code: Select all

mount

Re: Duplication of NTFS partition on Caja

Posted: Mon Jul 30, 2012 12:34 pm
by roccop
FYI my NTFS partition is obviously native from Windows 7 (I created before to install Linux... I have now dual boot) so I want to share on Linux and not on Windows...
Is your answer OK?
How can I "restore" my chown command?

Re: Duplication of NTFS partition on Caja

Posted: Mon Jul 30, 2012 1:23 pm
by altair4
With this line in /etc/fstab:

Code: Select all

UUID=3E20491C2048DD11 /media/Data\040Disk ntfs defaults,windows_names 0 0
It already is owned by root but with permissions for everyone to read and write.

Re: Duplication of NTFS partition on Caja

Posted: Tue Jul 31, 2012 12:25 am
by roccop
These are my steps:

Code: Select all

umount "/media/Data Disk"

Code: Select all

rmdir "/media/Data Disk"
This is my new /etc/fstab:

Code: Select all

cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda8 during installation
UUID=35a0a201-7f6b-45ca-8d64-3786a12922cc / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda6 during installation
UUID=2ecd10f1-4a6a-4c27-b957-9772dd0bcfd3 /boot ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=7ee9f61e-d304-46fd-aff6-77a5af81cd8a none swap sw 0 0
# mount Data Disk /dev/sda5
UUID=3E20491C2048DD11 /media/Data\040Disk defaults ntfs,windows_names 0 0
# UUID=3E20491C2048DD11 /media/Data\040Disk ntfs users,defaults 0 0
# mount /tmp on RAM
tmpfs /tmp tmpfs size=1g 0 0


During boot I have error to mount my partition and when I open Caja I see my partition not mount. If I click I have window error:

Error mounting: mount exited with exit code 1: helper failed with:
mount: only root can mount /dev/sda5 on /media/Data Disk

Re: Duplication of NTFS partition on Caja

Posted: Tue Jul 31, 2012 7:14 am
by altair4
You have 2 issues:

[***] This is not correct:
UUID=3E20491C2048DD11 /media/Data\040Disk defaults ntfs,windows_names 0 0
It should be this:
UUID=3E20491C2048DD11 /media/Data\040Disk ntfs defaults,windows_names 0 0
[***] You deleted the mount point so 3E20491C2048DD11 has nothing to mount to:
These are my steps:

Code: Select all

umount "/media/Data Disk"

Code: Select all

rmdir "/media/Data Disk"
** Create the mount point /media/Data Disk again
** Change the line in fstab
** If you have it mounted manually or if you mounted it through Nautilus unmount it
** Then run the following command to test for errors and remount the partition so that you don't have to reboot:

Code: Select all

sudo mount -a

Re: Duplication of NTFS partition on Caja

Posted: Tue Jul 31, 2012 7:48 am
by roccop
Thanks a lot!
Now everything works fine :)