DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 5435Fhuq3493082 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 5435Fhuq3493082 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=raGWaUtC X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E80BF3858429 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1746249341; bh=MiWwUBTcc2io2NVbyw9CxUOO9haGBB3qW8Wp7xTmFmc=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=raGWaUtCjmzBcE17sM/pGOkMfbLY2AIgvnLgIEkmj8wjEjnzZppQW9SDQEzkW/xtg OR316fzYfdCxikQyBoELfAZw3Xv2QvkkYeReqd1m0eIGIFnxr0Q+SUfwnXGpOucKbI fikSvo1B26RBS00AhsBpqFlihbslHXor8T/J01eM= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 844793858D21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 844793858D21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1746249317; cv=none; b=MKMEr9ik2N9bvoIRbQhVekvWwmQudEFuwk7ziBWZhYFr09nnp6YQm919GHJ+yliHWhI8upL7QtEXl4EGLwZ9+Jf1Kep5Fgyxmk0171tSJx16QmegyIrcSFxK9j6Klb+eKphzNuLDVJSTZr7Ok7OTMky3D3vK0+us9HT9S1tgjGw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1746249317; c=relaxed/simple; bh=6IvybbB18UEPQr3CYT/j/BPqv3oj2CWc6r5wosbjdys=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=VVzS3iVBiTii9L2j+99hT/w2HHy3NXu0OrocPy+e9+Oe6UzxUMitTYqadbn9AiLZISxntSxn/ENf1BmuSl4g9i9aERvdK8fcFVyOscWohR3s98MUoIxzfDOFzmi9674lKHswpCOkuArO7YeuszXSL48z58WWMTbwRzxEs6f8tBY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 844793858D21 Message-ID: Date: Fri, 2 May 2025 22:15:17 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: fstab and sshfs To: cygwin AT cygwin DOT com References: Content-Language: en-US In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mark Geisert via Cygwin Reply-To: Mark Geisert Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 5435Fhuq3493082 Hi David, On 5/2/2025 7:22 PM, David Christensen via Cygwin wrote: > cygwin: > > I am attempting to mount a directory from a FreeBSD computer: > > 2025-05-02 19:16:01 admin AT dq67sw ~ > $ ssh dpchrist AT f5 freebsd-version -kru > 13.4-RELEASE-p3 > 13.4-RELEASE-p3 > 13.4-RELEASE-p5 > > 2025-05-02 18:51:15 admin AT dq67sw ~ > $ ssh dpchrist AT f5 uname -a > FreeBSD f5.tracy.holgerdanske.com 13.4-RELEASE-p3 FreeBSD 13.4-RELEASE- > p3 GENERIC amd64 > > 2025-05-02 19:08:29 admin AT dq67sw ~ > $ ssh dpchrist AT f5 ls -ld /var/local/samba/dpchrist > drwxr-xr-x  104 dpchrist  dpchrist  105 Apr 30 00:45 /var/local/samba/ > dpchrist > > > Onto a Windows 10 Home computer: > > 2025-05-02 18:53:47 admin AT dq67sw ~ > $ systeminfo | grep OS > OS Name:                   Microsoft Windows 10 Home > OS Version:                10.0.19045 N/A Build 19045 > OS Manufacturer:           Microsoft Corporation > OS Configuration:          Standalone Workstation > OS Build Type:             Multiprocessor Free > BIOS Version:              Intel Corp. SWQ6710H.86A.0068.2017.0601.1423, > 6/1/2017 > > 2025-05-02 19:14:14 admin AT dq67sw ~ > $ ls -al /samba > total 4 > drwxr-xr-x 1 admin None           0 May  2 19:05 . > drwxr-xr-x 1 admin Administrators 0 Apr 28 12:03 .. > > > Using WinFsp and Cygwin: > > 2025-05-02 18:59:11 admin AT dq67sw ~ > $ /cygdrive/c/Program\ Files\ \(x86\)/WinFsp/bin/fsptool-x64.exe ver > 2.0 (SxS=20250430T013040Z) > > 2025-05-02 18:53:54 admin AT dq67sw ~ > $ cygcheck -c cygwin > Cygwin Package Information > Package              Version    Status > cygwin               3.6.1-1        OK > > 2025-05-02 18:55:15 admin AT dq67sw ~ > $ cygcheck -c sshfs > Cygwin Package Information > Package              Version    Status > sshfs                3.7.2-2        OK > > > I can mount and unmount the directory onto Windows from a Cygwin64 > Terminal: > > 2025-05-02 18:59:36 admin AT dq67sw ~ > $ sshfs dpchrist AT f5:/var/local/samba/dpchrist /samba/dpchrist -o > uid=197609 -o gid=197121 > > 2025-05-02 19:03:16 admin AT dq67sw ~ > $ ls /samba/dpchrist | grep ^[A-Z] > David_s_iPhone > Downloads > Movies > Music > Music-leftovers > Pictures > Television > Videos > > 2025-05-02 19:03:21 admin AT dq67sw ~ > $ fusermount3 -u /samba/dpchrist > fusermount3: /samba/dpchrist unmounted > > 2025-05-02 19:05:08 admin AT dq67sw ~ > $ ls /samba > > > RTFM sshfs(1) states: > > MOUNTING FROM /ETC/FSTAB >        To mount an SSHFS filesystem from /etc/fstab, simply use sshfs > as the file system type. (For backwards compatibility, you may also use > fuse.sshfs). > > > But creating an /etc/fstab entry and using mount does not work: > > 2025-05-02 19:07:12 admin AT dq67sw ~ > $ grep dpchrist /etc/fstab > dpchrist AT samba:/var/local/samba/dpchrist /samba/dpchrist sshfs > noauto,uid=197609,gid=197121 0 0 > > 2025-05-02 19:07:15 admin AT dq67sw ~ > $ mount /samba/dpchrist > mount: can't find /samba/dpchrist in /etc/fstab or in /etc/fstab.d/$USER > > > Comments or suggestions? Unfortunately Cygwin hasn't integrated FUSE filesystem types into 'mount' and /etc/fstab. This is why FUSE mounts are recorded in /var/run/fuse.mounts rather than in the usual mount table, for example. The sshfs man page is correct for Linux and other OSs but less so for Cygwin. On Cygwin any FUSE mount has a managing process; these are sshfs, and when available, ftpfs, memfs, etc. They do the actual mount and then hang around in background to support operations on the mounted filesystem. The Cygwin DLL doesn't know about these filesystems. If your goal is to have "permanently" FUSE-mounted filesystems, about all I can suggest is to run sshfs from your first Cygwin shell after a system boot. HTH, ..mark -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple