From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19163 invoked by alias); 18 Jul 2019 14:06:16 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 19151 invoked by uid 89); 18 Jul 2019 14:06:15 -0000 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 Received: from loire.is.ed.ac.uk (HELO loire.is.ed.ac.uk) (129.215.16.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 18 Jul 2019 14:06:13 +0000 Received: from crunchie.inf.ed.ac.uk (crunchie.inf.ed.ac.uk [129.215.202.41]) by loire.is.ed.ac.uk (8.14.7/8.14.7) with ESMTP id x6IE69Ii008344 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 18 Jul 2019 15:06:09 +0100 Received: from troutbeck.inf.ed.ac.uk (troutbeck.inf.ed.ac.uk [129.215.25.32]) by crunchie.inf.ed.ac.uk (8.14.7/8.14.7) with ESMTP id x6IE68KW020053 for ; Thu, 18 Jul 2019 15:06:08 +0100 Received: from troutbeck.inf.ed.ac.uk (localhost [127.0.0.1]) by troutbeck.inf.ed.ac.uk (8.14.7/8.14.7) with ESMTP id x6IE69qj023017 for ; Thu, 18 Jul 2019 15:06:09 +0100 Received: (from ht@localhost) by troutbeck.inf.ed.ac.uk (8.14.7/8.14.7/Submit) id x6IE68cC023016; Thu, 18 Jul 2019 15:06:08 +0100 To: cygwin@cygwin.com Subject: Problems seeing/mounting partitions from ssh From: "Henry S. Thompson" Date: Thu, 18 Jul 2019 14:06:00 -0000 Message-ID: User-Agent: Gnus/5.1012 (Gnus v5.10.12) XEmacs/21.5-b34 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Edinburgh-Scanned: at loire.is.ed.ac.uk with MIMEDefang 2.84, Sophie, Sophos Anti-Virus, Clam AntiVirus X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00133.txt.bz2 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