[ale] cygwin drive maps not shown in ssh

Jeff Lightner jlightner at water.com
Tue Mar 11 20:00:23 EDT 2008


Actually you're partially right - mounts can be made system wide with
the -s option of mount (see the mount command I used that did make it
available) for both the Cygwin (Windows) session and the ssh session.  

What I was hoping is that someone could tell me why these drive letter
mounts aren't available (i.e. are they done without the -s option and if
so is there some place I can change that behavior?)   There's no fstab
and I'm assuming it is getting the mounts from my Windoze login before I
start Cygwin.   

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Greg
Freemyer
Sent: Tuesday, March 11, 2008 5:26 PM
To: ale at ale.org
Subject: Re: [ale] cygwin drive maps not shown in ssh

Jeff,

I'm not positive, but I don't think the cygwin mounts are system wide
like in UNIX / Linux.

Instead they are specific to the shell session you are in.

When you launch a cygwin bash shell from windows, it is running a
.profile or something that is doing the mounts for your session.

When you are coming in from ssh, you must be invoking a different
.profile etc.

So you need to figure out what it is that is being invoked when you
ssh in and add the mount commands to it.

Greg

2008/3/11 Jeff Lightner <jlightner at water.com>:
>
>
>
>
> New to Cygwin - just installed yesterday on my Windows XP laptop
>
>
>
> Trying to figure out why shares mounted on XP are visible in the XP
Cygwin
> session window but not  in an ssh session window to same XP box.
>
>
>
> DETAILS:
>
> In the Cygwin window opened from XP I see:
>
> $ df -h
>
> Filesystem            Size  Used Avail Use% Mounted on
>
> C:\cygwin\bin          36G   30G  6.7G  82% /usr/bin
>
> C:\cygwin\lib          36G   30G  6.7G  82% /usr/lib
>
> C:\cygwin              36G   30G  6.7G  82% /
>
> c:                     36G   30G  6.7G  82% /cygdrive/c
>
> h:                    156G  147G  9.7G  94% /cygdrive/h
>
> l:                    225G  134G   91G  60% /cygdrive/l
>
> r:                    837G   31G  807G   4% /cygdrive/r
>
> Where h, l and r are shared drives mapped to Windows and c is local.
>
>
>
> However when I ssh into the box (as same user as I logged into Windows
with)
> I see:
>
> $ df -h
>
> Filesystem            Size  Used Avail Use% Mounted on
>
> C:\cygwin\bin          36G   30G  6.7G  82% /usr/bin
>
> C:\cygwin\lib          36G   30G  6.7G  82% /usr/lib
>
> C:\cygwin              36G   30G  6.7G  82% /
>
> c:                     36G   30G  6.7G  82% /cygdrive/c
>
> It appears not to see the shared mounts.   Looking in /cygdrive in the
ssh
> session I see on "c" but in the XP session I see the h, l and r.
>
> Permissions show these as owned by me and grouped to Users and I've
updated
> Users group to have my GID from /etc/passwd.
>
> Interestingly I can mount any of my shares with the UNC path such as:
>
> mount -f -s -b -E "//atlts01/users/jlightner" "/data"
>
> And then access the share mounted on drive H for XP via /data in the
ssh
> session (and the XP session).
>
> This would be a good work around but I'm curious why I would have to
do
> that?  Why can't I see the h, l and r in the ssh session?
>  ----------------------------------
> CONFIDENTIALITY NOTICE: This e-mail may contain privileged or
confidential
> information and is for the sole use of the intended recipient(s). If
you are
> not the intended recipient, any disclosure, copying, distribution, or
use of
> the contents of this information is prohibited and may be unlawful. If
you
> have received this electronic transmission in error, please reply
> immediately to the sender that you have received the message in error,
and
> delete it. Thank you.
> ----------------------------------
>
> _______________________________________________
>  Ale mailing list
>  Ale at ale.org
>  http://mail.ale.org/mailman/listinfo/ale
>
>



-- 
Greg Freemyer
Litigation Triage Solutions Specialist
http://www.linkedin.com/in/gregfreemyer
First 99 Days Litigation White Paper -
http://www.norcrossgroup.com/forms/whitepapers/99%20Days%20whitepaper.pd
f

The Norcross Group
The Intersection of Evidence & Technology
http://www.norcrossgroup.com

_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------



More information about the Ale mailing list