public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Can I change default mount options
@ 2017-04-04  2:19 Pan Ruochen
  2017-04-04  5:02 ` Brian Inglis
  2017-04-04 23:05 ` Andrey Repin
  0 siblings, 2 replies; 8+ messages in thread
From: Pan Ruochen @ 2017-04-04  2:19 UTC (permalink / raw)
  To: cygwin

On my computer, runing mount shows

C: on /c type ntfs (binary,posix=0,user,noumount,auto)
D: on /d type ntfs (binary,posix=0,user,noumount,auto)
E: on /e type ntfs (binary,posix=0,user,noumount,auto)

Is it possible to change the default mount options for every
partition, for example , to

binary,noacl,...

without modifying /etc/fstab.


-- 

- BR, Ruochen

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can I change default mount options
  2017-04-04  2:19 Can I change default mount options Pan Ruochen
@ 2017-04-04  5:02 ` Brian Inglis
  2017-04-05 14:13   ` Pan Ruochen
  2017-04-04 23:05 ` Andrey Repin
  1 sibling, 1 reply; 8+ messages in thread
From: Brian Inglis @ 2017-04-04  5:02 UTC (permalink / raw)
  To: cygwin

On 2017-04-03 20:19, Pan Ruochen wrote:
> On my computer, runing mount shows
> 
> C: on /c type ntfs (binary,posix=0,user,noumount,auto)
> D: on /d type ntfs (binary,posix=0,user,noumount,auto)
> E: on /e type ntfs (binary,posix=0,user,noumount,auto)
> 
> Is it possible to change the default mount options for every 
> partition, for example , to
> 
> binary,noacl,...
> 
> without modifying /etc/fstab.

Add /etc/fstab.d/<user> with your own mount options.
Be aware that noacl uses only the readonly attribute to 
inhibit write in POSIX permissions, and checks file suffixes 
and contents to determine execute permissions, so may be 
even slower.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can I change default mount options
  2017-04-04  2:19 Can I change default mount options Pan Ruochen
  2017-04-04  5:02 ` Brian Inglis
@ 2017-04-04 23:05 ` Andrey Repin
  2017-04-05 14:08   ` Pan Ruochen
  1 sibling, 1 reply; 8+ messages in thread
From: Andrey Repin @ 2017-04-04 23:05 UTC (permalink / raw)
  To: Pan Ruochen, cygwin

Greetings, Pan Ruochen!

> On my computer, runing mount shows

> C: on /c type ntfs (binary,posix=0,user,noumount,auto)
> D: on /d type ntfs (binary,posix=0,user,noumount,auto)
> E: on /e type ntfs (binary,posix=0,user,noumount,auto)

> Is it possible to change the default mount options for every
> partition, for example , to

> binary,noacl,...

Yes.
Create a cygdrive type mount with necessary options.
F.e.

none / cygdrive noacl,binary,nouser,posix=0 0 0

> without modifying /etc/fstab.

No, why? Your mount options choice is very sane, IMO.


-- 
With best regards,
Andrey Repin
Wednesday, April 5, 2017 01:57:22

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can I change default mount options
  2017-04-04 23:05 ` Andrey Repin
@ 2017-04-05 14:08   ` Pan Ruochen
  2017-04-05 17:17     ` cyg Simple
                       ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Pan Ruochen @ 2017-04-05 14:08 UTC (permalink / raw)
  To: cygwin, Andrey Repin

Hi Andrey Repin,

>
> No, why? Your mount options choice is very sane, IMO.
>

I just dislike cygwin treats every file as executable. Comparing mount
options of msys2 against cygwin, msys2 has an extra noacl option. So I
guess noacl may turn off this cygwin `feature`. And I also wish this
turning-off apply to the usb disk but I am unable to forecast what is
the disk letter for that usb-disk. That is basically why I wonder the
"default" mount options.

- BR, Ruochen

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can I change default mount options
  2017-04-04  5:02 ` Brian Inglis
@ 2017-04-05 14:13   ` Pan Ruochen
  0 siblings, 0 replies; 8+ messages in thread
From: Pan Ruochen @ 2017-04-05 14:13 UTC (permalink / raw)
  To: Brian.Inglis, cygwin

>
> Add /etc/fstab.d/<user> with your own mount options.
> Be aware that noacl uses only the readonly attribute to
> inhibit write in POSIX permissions, and checks file suffixes
> and contents to determine execute permissions, so may be
> even slower.
>

/etc/fstab.d/<user> works. Thank you.

- BR, Ruochen

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can I change default mount options
  2017-04-05 14:08   ` Pan Ruochen
@ 2017-04-05 17:17     ` cyg Simple
  2017-04-06 17:16     ` Hans-Bernhard Bröker
  2017-04-06 20:05     ` Andrey Repin
  2 siblings, 0 replies; 8+ messages in thread
From: cyg Simple @ 2017-04-05 17:17 UTC (permalink / raw)
  To: cygwin

On 4/5/2017 10:07 AM, Pan Ruochen wrote:
> Hi Andrey Repin,
> 
>>
>> No, why? Your mount options choice is very sane, IMO.
>>
> 
> I just dislike cygwin treats every file as executable. Comparing mount
> options of msys2 against cygwin, msys2 has an extra noacl option. So I
> guess noacl may turn off this cygwin `feature`. And I also wish this
> turning-off apply to the usb disk but I am unable to forecast what is
> the disk letter for that usb-disk. That is basically why I wonder the
> "default" mount options.

See [1] for help on the drive letter managment.  I've also been known to
just modify the registry entries but the method described in the link is
easier.

[1]
https://www.howtogeek.com/96298/assign-a-static-drive-letter-to-a-usb-drive-in-windows-7/

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can I change default mount options
  2017-04-05 14:08   ` Pan Ruochen
  2017-04-05 17:17     ` cyg Simple
@ 2017-04-06 17:16     ` Hans-Bernhard Bröker
  2017-04-06 20:05     ` Andrey Repin
  2 siblings, 0 replies; 8+ messages in thread
From: Hans-Bernhard Bröker @ 2017-04-06 17:16 UTC (permalink / raw)
  To: cygwin

Am 05.04.2017 um 16:07 schrieb Pan Ruochen:
> Hi Andrey Repin,
>
>>
>> No, why? Your mount options choice is very sane, IMO.
>>
>
> I just dislike cygwin treats every file as executable.

It doesn't --- not when the files' ACLs are set up correctly, anyway. 
Nor is futzing with mount options the right solution to that issue. 
You'll have to adjust the ACLs instead.

> Comparing mount
> options of msys2 against cygwin, msys2 has an extra noacl option. So I
> guess noacl may turn off this cygwin `feature`.

That guess is ultimately wrong.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can I change default mount options
  2017-04-05 14:08   ` Pan Ruochen
  2017-04-05 17:17     ` cyg Simple
  2017-04-06 17:16     ` Hans-Bernhard Bröker
@ 2017-04-06 20:05     ` Andrey Repin
  2 siblings, 0 replies; 8+ messages in thread
From: Andrey Repin @ 2017-04-06 20:05 UTC (permalink / raw)
  To: Pan Ruochen, cygwin

Greetings, Pan Ruochen!

> Hi Andrey Repin,

>>
>> No, why? Your mount options choice is very sane, IMO.
>>

> I just dislike cygwin treats every file as executable.

This is a core Windows behavior, nothing Cygwin can do about it, not it
should. In Windows, any file is, potentially, executable, in one way or
another.

> Comparing mount options of msys2 against cygwin, msys2 has an extra noacl
> option. So I guess noacl may turn off this cygwin `feature`.

No need to guess, when there's a clear documented explanation of every option.

> And I also wish
> this turning-off apply to the usb disk but I am unable to forecast what is
> the disk letter for that usb-disk. That is basically why I wonder the
> "default" mount options.

It could.


-- 
With best regards,
Andrey Repin
Thursday, April 6, 2017 22:51:51

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-04-06 20:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-04  2:19 Can I change default mount options Pan Ruochen
2017-04-04  5:02 ` Brian Inglis
2017-04-05 14:13   ` Pan Ruochen
2017-04-04 23:05 ` Andrey Repin
2017-04-05 14:08   ` Pan Ruochen
2017-04-05 17:17     ` cyg Simple
2017-04-06 17:16     ` Hans-Bernhard Bröker
2017-04-06 20:05     ` Andrey Repin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).