Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Usman Muzaffar <usman@muzaffar.org>
Newsgroups: gmane.os.cygwin
Subject: mount trouble
Date: Mon, 02 Sep 2002 05:21:00 -0700
Lines: 34
Message-ID: <akvkob$55l$1@main.gmane.org>
NNTP-Posting-Host: 12-235-89-245.client.attbi.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-Trace: main.gmane.org 1030968908 5301 12.235.89.245 (2 Sep 2002 12:15:08 GMT)
X-Complaints-To: usenet@main.gmane.org
NNTP-Posting-Date: Mon, 2 Sep 2002 12:15:08 +0000 (UTC)
User-Agent: KNode/0.7.1

Hi -

I accidentally typed 'umount -A' (remove all mounts) when I mean to type 
'umount -U' (remove user mounts). Two problems:

1. I can't remember exactly, but there used to be 
   four or five mounts defined (/, /usr/bin, /usr/lib,
   maybe some X ones as well). How do I get them back?
   Why does cygwin use something like an /etc/fstab
   file instead of (I'm guessing) registry entries that
   are permanently removed when you umount?

2. Even after restoring /, /usr/bin and /usr/lib, I'm 
   having a lot off difficulty. Notably:

   HOME no longer seems to be set. Double clicking
   on Cygwin bash gives me a shell in '/'. HOME seems 
   to be set to '/'.

   sshd login refuses to work: I get 'permission denied',
   for all users, immediately after entering password.
   In fact, I shouldn't even get password prompt - key auth 
   was working until I lost the mounts.
 
   If I had to guess, it seems like /etc/passwd can't
   be read. But that appears just fine with '/' mounted
   from c:\cgywin.

Surely this command isn't that devastating? How do I get
back to where I was?

thanks,
usman




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

