Help understanding why a mount command is not working and how to fix it

René Berber rene.berber@gmail.com
Mon Sep 9 20:39:10 GMT 2024


On 9/9/2024 12:23 PM, Eliot Moss via Cygwin wrote:

> Dear Cygwiners --
> 
> For convenience, I would like to mount my OneDrive folder under / 
> cygdrive/o.
> 
> I put this line in my /etc/fstab:
> 
> c:/Users/Eliot\040Moss/OneDrive /cygdrive/o ntfs 
> binary,noacl,posix=0,user 0 0
> 
> However, /cygdrive/o is not created.  Manually doing this:
> 
>    mount -obinary,noacl,posix=0,user "/c/Users/Eliot Moss/OneDrive" /foo
> 
> results in this output if /foo does not exist:
> 
> mount: warning - /foo does not exist.
> mount: /foo: Invalid argument

Just tested this, I get the warning and /foo is created anyway and the 
directory is mounted there.

I do not get the second line (invalid agument).

Check if mount did its job.

I'm using ...

$ mount -V
mount (cygwin) 3.5.4
Mount filesystem utility

$ uname -a
CYGWIN_NT-10.0-22631 XPS-8930 3.5.4-1.x86_64 2024-08-25 16:52 UTC x86_64 
Cygwin

> 
> and this output if I do mkdir /foo first:
> 
> mount: /foo: Invalid argument
> 
> Using \040 instead of the space for the quoted command line argument
> gives the same behavior.
> 
> Hints on how to make this mount work?
> 
> Best wishes - Eliot Moss
> 



More information about the Cygwin mailing list