public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Henry S. Thompson" <ht@inf.ed.ac.uk>
To: cygwin@cygwin.com
Subject: Problems seeing/mounting partitions from ssh
Date: Thu, 18 Jul 2019 14:06:00 -0000	[thread overview]
Message-ID: <f5bd0i7sai7.fsf@troutbeck.inf.ed.ac.uk> (raw)

I have one real (c:) and three virtual (d:, e:, f:) partitions on my
Windows 10 box

The virtual partitions are created at login by Windows tasks using the
'subst' command.

With an empty /etc/fstab, at first this all appears to work fine:

  > mount
  C:/C64/bin on /usr/bin type ntfs (binary,auto)
  C:/C64/lib on /usr/lib type ntfs (binary,auto)
  C:/C64 on / type ntfs (binary,auto)
  C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
  D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
  E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto)
  F: on /cygdrive/f type ntfs (binary,posix=0,user,noumount,auto)

  > mount -m
  none /cygdrive cygdrive binary,posix=0,user 0 0

  > ls /cygdrive
  c/  d/  e/  f/

  > ls /cygdrive/f | wc -l
  31

But if I come in to this machine via ssh (public key or password), the
virtual partitions are lost:

  > mount

  C:/C64/bin on /usr/bin type ntfs (binary,auto)
  C:/C64/lib on /usr/lib type ntfs (binary,auto)
  C:/C64 on / type ntfs (binary,auto)
  C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)

  > ls /cygdrive
  c/

The problem seems to arise because the subst commands aren't being run:

  > cmd /c subst
  [nothing]

although they are Triggered by "At log on of [me]".  Checking the Task
Scheduler indeed shows them run at my original Windows login, but not
when I ssh in...

It appears that ssh login is not a Windows login -- what am I missing?

ht
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
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

             reply	other threads:[~2019-07-18 14:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-18 14:06 Henry S. Thompson [this message]
2019-07-18 19:09 ` Achim Gratz
2019-07-18 21:03   ` Henry S. Thompson
2019-07-18 21:30     ` Erik Soderquist
2019-07-18 21:35       ` Erik Soderquist
2019-07-19  7:57         ` Henry S. Thompson
2019-07-19 19:08     ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f5bd0i7sai7.fsf@troutbeck.inf.ed.ac.uk \
    --to=ht@inf.ed.ac.uk \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).