Duplication of NTFS partition on Caja [SOLVED]

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read this

Duplication of NTFS partition on Caja [SOLVED]

Postby roccop on Mon Jul 30, 2012 11:32 am

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.
Last edited by roccop on Tue Jul 31, 2012 7:49 am, edited 1 time in total.
roccop
Level 1
Level 1
 
Posts: 16
Joined: Mon Jul 30, 2012 11:04 am

Linux Mint is funded by ads and donations.
 

Re: Duplication of NTFS partition on Caja

Postby altair4 on Mon Jul 30, 2012 11:45 am

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
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5774
Joined: Tue Feb 03, 2009 10:27 am

Re: Duplication of NTFS partition on Caja

Postby roccop on Mon Jul 30, 2012 12:34 pm

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?
roccop
Level 1
Level 1
 
Posts: 16
Joined: Mon Jul 30, 2012 11:04 am

Re: Duplication of NTFS partition on Caja

Postby altair4 on Mon Jul 30, 2012 1:23 pm

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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5774
Joined: Tue Feb 03, 2009 10:27 am

Re: Duplication of NTFS partition on Caja

Postby roccop on Tue Jul 31, 2012 12:25 am

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
roccop
Level 1
Level 1
 
Posts: 16
Joined: Mon Jul 30, 2012 11:04 am

Re: Duplication of NTFS partition on Caja

Postby altair4 on Tue Jul 31, 2012 7:14 am

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
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5774
Joined: Tue Feb 03, 2009 10:27 am

Re: Duplication of NTFS partition on Caja

Postby roccop on Tue Jul 31, 2012 7:48 am

Thanks a lot!
Now everything works fine :)
roccop
Level 1
Level 1
 
Posts: 16
Joined: Mon Jul 30, 2012 11:04 am

Linux Mint is funded by ads and donations.
 

Return to Other topics

Who is online

Users browsing this forum: No registered users and 2 guests