delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/07/18/10:07:09

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:subject:from:date:message-id:mime-version
:content-type; q=dns; s=default; b=iWsa13Zth4a6rWL4GOnrK1mniHWQr
GDtFyXAdcn+Y+AsuA+jUppxCNgiqjye7Mz2f1mec/BmaS0In8gA+wii0VJkAMt0Q
OWdLGuXpS2h8GFIgwkoeEtlDciqSy33G+oQwQe9htiJUFufGjF8i3kyEYxCIUqtc
OSmLuOA1QWMFDM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:subject:from:date:message-id:mime-version
:content-type; s=default; bh=pClYzeYOhQ1SJfhzvU71R7qxF4Q=; b=pmf
F46w4M3gKkP2rrbXsExC42dEKH0M7MrV6MFHuCHPqio1+eyALgBTc3ULq3pAKoDp
U/HbTb9EOwvl+cLy1JV+OMbKyJAx3fxjww+bmDqrsQhCDndOc72x1y/c3Wabqhnf
T8R8oadH2lH22F6pJ/mRgYz5a51esv1S75txPrLA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_40,SPF_PASS autolearn=ham version=3.3.1 spammy=H*F:D*uk, henry, Henry, School
X-HELO: loire.is.ed.ac.uk
To: cygwin AT cygwin DOT com
Subject: Problems seeing/mounting partitions from ssh
From: "Henry S. Thompson" <ht AT inf DOT ed DOT ac DOT uk>
Date: Thu, 18 Jul 2019 15:06:08 +0100
Message-ID: <f5bd0i7sai7.fsf@troutbeck.inf.ed.ac.uk>
User-Agent: Gnus/5.1012 (Gnus v5.10.12) XEmacs/21.5-b34 (linux)
MIME-Version: 1.0
X-Edinburgh-Scanned: at loire.is.ed.ac.uk with MIMEDefang 2.84, Sophie, Sophos Anti-Virus, Clam AntiVirus
X-IsSubscribed: yes

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 AT inf DOT ed DOT ac DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019