FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Sat Jul 24, 2021 07:25



Post new topic Reply to topic  [ 4 posts ] 
Mounting the same device to multiple mount points? 
Author Message

Joined: Thu Jul 09, 2009 17:09
Posts: 7
Post Mounting the same device to multiple mount points?
I am trying to figure out how to mount an ntfs filesystem to multiple mount points at the same time (read only of course.)

It works fine with ext file systems, but ntfs-3g does not seem to like this use case (at least with the flags that I am using):

[root@localhost tmp]# ntfs-3g /dev/sdc1 test1 -o ro
[root@localhost tmp]# ntfs-3g /dev/sdc1 test2 -o ro
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.

Am I missing a flag that I should be using?
I'm using Centos linux 2.6.18, and ntfs-3g 2010.10.2AR.1


Thu Dec 08, 2011 02:06
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: Mounting the same device to multiple mount points?
Hi,

Quote:
It works fine with ext file systems, but ntfs-3g does not seem to like this use case (at least with the flags that I am using):

Try the mount option -n (or --no-mtab), for the mounting not be recorded in /etc/mtab, thus defeating the checks (not possible by running ntfs-3g directly)
Code:
mount -t ntfs-3g -n -o ro /dev/sdc1 test1

You will get into problems if there is a rw mount.

Regards

Jean-Pierre


Thu Dec 08, 2011 10:19
Profile

Joined: Thu Jul 09, 2009 17:09
Posts: 7
Post Re: Mounting the same device to multiple mount points?
That doesn't work for me, here is another test:

[root@localhost tmp]# mount -t ntfs-3g -n -o ro,force,case_insensitive /dev/sdf1 test1
[root@localhost tmp]# mount -t ntfs-3g -n -o ro,force,case_insensitive /dev/sdf1 test2
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.


I'm guess the -n flag is failing to fix this use case because I symlink /etc/mtab to /proc/mounts (to get around some Linux problems when too many frequent mounts/unmounts are happening?)


Thu Dec 08, 2011 16:25
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1286
Post Re: Mounting the same device to multiple mount points?
Hi,
Quote:
That doesn't work for me, here is another test:

Then try the attached patch.
Quote:
[root@localhost tmp]# mount -t ntfs-3g -n -o ro,force,case_insensitive /dev/sdf1 test1
[root@localhost tmp]# mount -t ntfs-3g -n -o ro,force,case_insensitive /dev/sdf1 test2

There is no case_insensitive option, however there is an ignore_case option if you mount with lowntfs-3g, with a known problem for directories which are not always named the same way. See http://www.tuxera.com/community/ntfs-3g ... filenames1

Regards

Jean-Pierre


Attachments:
multiple-ro.patch.gz [342 Bytes]
Downloaded 969 times
Fri Dec 09, 2011 10:09
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.