delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/06/10/12:54:38

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 10 Jun 2008 12:54:04 -0400
To: cygwin AT cygwin DOT com
Subject: Re: Thought/Suggestion/Is it Possible for the new Cygwin 1.7 /etc/fstab
X-Mailer: Virtual Access Open Source http://www.virtual-access.org/
Message-Id: <VA.0000181f.005c3662@thesoftwaresource.com>
Mime-Version: 1.0
From: Brian Keener <bkeenerReMoVeAnTiSpAm AT thesoftwaresource DOT com>
In-Reply-To: <20080610083029.GA32187@calimero.vinschen.de>
References: <VA DOT 0000180a DOT 0098ae9b AT thesoftwaresource DOT com> <20080610083029 DOT GA32187 AT calimero DOT vinschen DOT de>
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Corinna Vinschen wrote:
> On Jun  3 13:11, Brian Keener wrote:
> > With my recent attempt and ultimate success at compiling a debug 
> > version of Cygwin - I realize I must have stumbled on the new 1.7 
> > version and subsequently tripped over the new /etc/fstab.  Now that I 
> > have all of this working I wonder if there is a way on the new fstab to 
> > dictate that a drive like a cdrom (my D Drive on my laptop) is 
> > unmountable so that when it auto mounts one that is in the drive I can 
> > do the correct process and unmount the drive and then mount again when 
> > a new cd is placed in the drive.
> 
> I don't quite understand what you're trying to accomplish.  It sounds
> like you already get what you want without having to use umount/mount.
> Either a CD is in the drive or not.  If a CD is in the drive, you get to
> it through /cygdrive/d, if there's no CD, there's no logical drive and
> thus no /cygdrive/d.

Well - what I'm thinking is what I seem to recall that Unix/Linux does in 
that I can set up fstab to know of a mount point but not mount it 
automatically until I tell it too and then I can mount and unmount at will 
for changing the cd.

In afterthought I am probably overthinking this but my initial thought 
followed this scenario:

1) I have a cd in the drive and I start Cygwin and Cygwin autostarts the cd 
or optionally I could have an entry in fstab that would tell it *not* to 
automount just the cd.
2) I want to change that cd to another cd so as I would in Unix to keep all 
the caching and such happy I unmount and then mount the new cd.
3) Then I can access it.

In Unix/Linux I seem to recall the system gets upset if you remove a cd 
without unmount first (since it is mounted to a mountpoint which is now not 
the same thing) and then mount the new cd.

But as I say I am probably overthinking this for the Cygwin on Windows 
environment - does it really care if I change cd's without a unmount and 
then mount?

bk





--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019