X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Tony Richardson <richardson@evansville.edu>
Subject:  Re: unmount drive in cygwin - is it possible
Date: Mon, 30 Jan 2006 19:23:00 +0000 (UTC)
Lines: 32
Message-ID:  <loom.20060130T201837-386@post.gmane.org>
References:  <20060130181019.67420.qmail@web26305.mail.ukl.yahoo.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Mark Bevan <mark_bevan_email <at> yahoo.co.uk> writes:
> I have compiled ntfsprogs 1.12.1 for use with cygwin -
> compilation went well and I know have the set of
> executables available.
> 
> Whenever I run ntfsresize (even just to get info on
> current NTFS filesystem using -i option) I am told :
> 
> ntfsresize v1.12.1 (libntfs 8:1:0)
> ERROR: Device '/cygdrive/e' is mounted read-write. You
> must 'umount' it first.
> 
> However there doesn't seem to be a way to unmount a
> disk in cygwin :
> 
> $ umount /cygdrive/e
> umount: /cygdrive/e: No such file or directory
> 
> Maybe this because this because the underlying windows
> operating system (Windows XP) doesn't allow for this
> or maybe I am not using the right commands ?

Did you try using the raw device name instead of the filesstem?
That is, something like:

   ntfsresize /dev/sda1

for the first partition on the first disk.  See the "Special
Filenames" of the Cygwin User's Guide for more info.

Tony



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

