public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* mount trouble
@ 2002-09-02  5:21 Usman Muzaffar
  2002-09-02 14:11 ` Max Bowsher
  0 siblings, 1 reply; 15+ messages in thread
From: Usman Muzaffar @ 2002-09-02  5:21 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: mount trouble
  2002-09-02  5:21 mount trouble Usman Muzaffar
@ 2002-09-02 14:11 ` Max Bowsher
  2002-09-02 14:28   ` Christopher Faylor
  0 siblings, 1 reply; 15+ messages in thread
From: Max Bowsher @ 2002-09-02 14:11 UTC (permalink / raw)
  To: Usman Muzaffar, cygwin

Usman Muzaffar wrote:
> Hi -
>
> I accidentally typed 'umount -A' (remove all mounts) when I mean to
> type 'umount -U' (remove user mounts).
...
> How do I get
> back to where I was?

mount -f -s -b "C:/cygwin/usr/X11R6/lib/X11/fonts" "/usr/X11R6/lib/X11/fonts"
#if you use X and want to textmode the rest, don't textmode this
mount -f -s -b "C:/cygwin/bin" "/usr/bin"
mount -f -s -b "C:/cygwin/lib" "/usr/lib"
mount -f -s -b "C:/cygwin" "/"

Max.


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: mount trouble
  2002-09-02 14:11 ` Max Bowsher
@ 2002-09-02 14:28   ` Christopher Faylor
  2002-09-03  5:48     ` Nicholas Wourms
  0 siblings, 1 reply; 15+ messages in thread
From: Christopher Faylor @ 2002-09-02 14:28 UTC (permalink / raw)
  To: cygwin

On Mon, Sep 02, 2002 at 10:08:37PM +0100, Max Bowsher wrote:
>Usman Muzaffar wrote:
>> Hi -
>>
>> I accidentally typed 'umount -A' (remove all mounts) when I mean to
>> type 'umount -U' (remove user mounts).
>...
>> How do I get
>> back to where I was?
>
>mount -f -s -b "C:/cygwin/usr/X11R6/lib/X11/fonts" "/usr/X11R6/lib/X11/fonts"
>#if you use X and want to textmode the rest, don't textmode this
>mount -f -s -b "C:/cygwin/bin" "/usr/bin"
>mount -f -s -b "C:/cygwin/lib" "/usr/lib"
>mount -f -s -b "C:/cygwin" "/"

Actually, for speed, you might also want to do this:

# Tell cygwin that nothing in this directory should be opened
# to check for "executableness", assume all cygwin executable
mount -f -s -b -X "C:/cygwin/bin" "/usr/bin"

# Tell cygwin that nothing in this directory should be opened
# to check for "executableness", assume nothing executable
# unless .exe
mount -f -s -b -E "C:/cygwin/lib" "/usr/lib"

# Tell cygwin that the following programs are non-cygwin-special
# but are still executable.
mount -f -s -b -x "C:/cygwin/bin/strace.exe" "/usr/bin/strace.exe"
mount -f -s -b -x "C:/cygwin/bin/strace.exe" "/usr/bin/strace"
mount -f -s -b -x "C:/cygwin/bin/cygcheck.exe" "/usr/bin/cygcheck.exe"
mount -f -s -b -x "C:/cygwin/bin/cygcheck.exe" "/usr/bin/cygcheck"

Also, mounting any directories exported via samba with the '-E' option
should have a noticeable effect on speed since cygwin will not open
files to look for the '#!' bits which indicate that a file is a
script.  Opening files over the network is an expensive operation.

In general, if you tell cygwin via the mount table what type of files
are located in specific directories, it will save a file
open/read/close.  That should translate into a slight speed increase.

For more information see "man mount" (thanks, Joshua).

cgf

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: mount trouble
  2002-09-02 14:28   ` Christopher Faylor
@ 2002-09-03  5:48     ` Nicholas Wourms
  2002-09-04 10:37       ` Shankar Unni
  0 siblings, 1 reply; 15+ messages in thread
From: Nicholas Wourms @ 2002-09-03  5:48 UTC (permalink / raw)
  To: cygwin


--- Christopher Faylor <cgf@redhat.com> wrote:
[SNIP]
> 
> Actually, for speed, you might also want to do this:

Just to add a few more for the archives...
 
> # Tell cygwin that nothing in this directory should be opened
> # to check for "executableness", assume all cygwin executable
> mount -f -s -b -X "C:/cygwin/bin" "/usr/bin"

mount -f -s -b -X "C:/cygwin/usr/X11R6/bin" "/usr/X11R6/bin"
mount -f -s -b -X "C:/cygwin/usr/sbin" "/usr/sbin"

> # Tell cygwin that nothing in this directory should be opened
> # to check for "executableness", assume nothing executable
> # unless .exe
> mount -f -s -b -E "C:/cygwin/lib" "/usr/lib"

mount -f -s -b -E "C:/cygwin/usr/X11R6/lib" "/usr/X11R6/lib"
mount -f -s -b -E "C:/cygwin/usr/X11R6/man" "/usr/X11R6/man"
mount -f -s -b -E "C:/cygwin/usr/man" "/usr/man"
mount -f -s -b -E "C:/cygwin/usr/info" "/usr/info"

Enjoy!

Cheers,
Nicholas

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: mount trouble
  2002-09-03  5:48     ` Nicholas Wourms
@ 2002-09-04 10:37       ` Shankar Unni
  2002-09-04 10:50         ` Christopher Faylor
  2002-09-04 13:47         ` John Morrison
  0 siblings, 2 replies; 15+ messages in thread
From: Shankar Unni @ 2002-09-04 10:37 UTC (permalink / raw)
  To: cygwin

Nicholas Wourms wrote:
> --- Christopher Faylor <cgf@redhat.com> wrote:
> [SNIP]
> mount -f -s -b -X "C:/cygwin/usr/X11R6/bin" "/usr/X11R6/bin"
> mount -f -s -b -E "C:/cygwin/usr/X11R6/lib" "/usr/X11R6/lib"
> mount -f -s -b -E "C:/cygwin/usr/X11R6/man" "/usr/X11R6/man"

Couple of comments on this:

* Does the X11 stuff get used so much that this level of fine-grained 
mount options actually makes a big difference? Why not just default the 
lot, and create a single mount point for "/usr/X11R6"?

* Would it help to add an option to mount to "reset the mounts to 
installation defaults"? At least for the Cygwin installation drive?

That last option would wipe out all mounts for directories under the 
Cygwin installation directory, and create a clean set of mounts as the 
installer would have done. It would be invaluable for cleaning up from 
botched mount experiments..

--
Shankar.




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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: mount trouble
  2002-09-04 10:37       ` Shankar Unni
@ 2002-09-04 10:50         ` Christopher Faylor
  2002-09-04 13:47         ` John Morrison
  1 sibling, 0 replies; 15+ messages in thread
From: Christopher Faylor @ 2002-09-04 10:50 UTC (permalink / raw)
  To: cygwin

On Wed, Sep 04, 2002 at 10:37:08AM -0700, Shankar Unni wrote:
>Nicholas Wourms wrote:
>>--- Christopher Faylor <cgf@redhat.com> wrote:
>>[SNIP]
>>mount -f -s -b -X "C:/cygwin/usr/X11R6/bin" "/usr/X11R6/bin"
>>mount -f -s -b -E "C:/cygwin/usr/X11R6/lib" "/usr/X11R6/lib"
>>mount -f -s -b -E "C:/cygwin/usr/X11R6/man" "/usr/X11R6/man"
>
>Couple of comments on this:
>
>* Does the X11 stuff get used so much that this level of fine-grained 
>mount options actually makes a big difference? Why not just default the 
>lot, and create a single mount point for "/usr/X11R6"?

You could make everything executable, I guess, as long as you don't try
to execute a man page.  It doesn't really matter, however.

>* Would it help to add an option to mount to "reset the mounts to 
>installation defaults"? At least for the Cygwin installation drive?

You can certainly dump and restore the state yourself with mount -m.
Adding it to mount is not appropriate.

>That last option would wipe out all mounts for directories under the 
>Cygwin installation directory, and create a clean set of mounts as the 
>installer would have done. It would be invaluable for cleaning up from 
>botched mount experiments..

I think you need to look at existing mount options.  It's easy enough
to do this if you want to do it.

cgf

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: mount trouble
  2002-09-04 10:37       ` Shankar Unni
  2002-09-04 10:50         ` Christopher Faylor
@ 2002-09-04 13:47         ` John Morrison
  2002-09-04 13:50           ` Christopher Faylor
                             ` (3 more replies)
  1 sibling, 4 replies; 15+ messages in thread
From: John Morrison @ 2002-09-04 13:47 UTC (permalink / raw)
  To: Shankar Unni, cygwin

> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> Nicholas Wourms wrote:
> > --- Christopher Faylor <cgf@redhat.com> wrote:
> > [SNIP]
> > mount -f -s -b -X "C:/cygwin/usr/X11R6/bin" "/usr/X11R6/bin"
> > mount -f -s -b -E "C:/cygwin/usr/X11R6/lib" "/usr/X11R6/lib"
> > mount -f -s -b -E "C:/cygwin/usr/X11R6/man" "/usr/X11R6/man"
>
> Couple of comments on this:
>
> * Does the X11 stuff get used so much that this level of fine-grained
> mount options actually makes a big difference? Why not just default the
> lot, and create a single mount point for "/usr/X11R6"?

Sorry, I can't answer that, but I only have one X11R6 dir mounted...

C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system
(binmode)

I don't know why... if I removed this mount it would still be in the
same place.

> * Would it help to add an option to mount to "reset the mounts to
> installation defaults"? At least for the Cygwin installation drive?
>
> That last option would wipe out all mounts for directories under the
> Cygwin installation directory, and create a clean set of mounts as the
> installer would have done. It would be invaluable for cleaning up from
> botched mount experiments..

AFAIK there's no ability within Cygwin to _write_ to the registry
(read was added a little while ago), so it would need to be another
application.  I'm also unsure as to where it would find out where it
it'self was installed, in my case c:\cygwin, unless it used it's own
path and assumed it was in /bin.

Other than that - good idea :)

J.


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: mount trouble
  2002-09-04 13:47         ` John Morrison
@ 2002-09-04 13:50           ` Christopher Faylor
  2002-09-04 13:55           ` Igor Pechtchanski
                             ` (2 subsequent siblings)
  3 siblings, 0 replies; 15+ messages in thread
From: Christopher Faylor @ 2002-09-04 13:50 UTC (permalink / raw)
  To: cygwin

On Wed, Sep 04, 2002 at 07:39:30PM +0100, John Morrison wrote:
>I only have one X11R6 dir mounted...
>
>C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system
>(binmode)
>
>I don't know why... if I removed this mount it would still be in the
>same place.

To force binmode.

cgf

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: mount trouble
  2002-09-04 13:47         ` John Morrison
  2002-09-04 13:50           ` Christopher Faylor
@ 2002-09-04 13:55           ` Igor Pechtchanski
  2002-09-04 13:59             ` Christopher Faylor
  2002-09-05  9:34             ` John Morrison
  2002-09-04 13:58           ` Shankar Unni
  2002-09-05  7:24           ` John Morrison
  3 siblings, 2 replies; 15+ messages in thread
From: Igor Pechtchanski @ 2002-09-04 13:55 UTC (permalink / raw)
  To: John Morrison; +Cc: Shankar Unni, cygwin

On Wed, 4 Sep 2002, John Morrison wrote:

> AFAIK there's no ability within Cygwin to _write_ to the registry
> (read was added a little while ago), so it would need to be another
> application.

For the record: regtool does both.  See 'regtool --help'.
	Igor

Full message below:
On Wed, 4 Sep 2002, John Morrison wrote:

> > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> > Nicholas Wourms wrote:
> > > --- Christopher Faylor <cgf@redhat.com> wrote:
> > > [SNIP]
> > > mount -f -s -b -X "C:/cygwin/usr/X11R6/bin" "/usr/X11R6/bin"
> > > mount -f -s -b -E "C:/cygwin/usr/X11R6/lib" "/usr/X11R6/lib"
> > > mount -f -s -b -E "C:/cygwin/usr/X11R6/man" "/usr/X11R6/man"
> >
> > Couple of comments on this:
> >
> > * Does the X11 stuff get used so much that this level of fine-grained
> > mount options actually makes a big difference? Why not just default the
> > lot, and create a single mount point for "/usr/X11R6"?
>
> Sorry, I can't answer that, but I only have one X11R6 dir mounted...
>
> C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system
> (binmode)
>
> I don't know why... if I removed this mount it would still be in the
> same place.
>
> > * Would it help to add an option to mount to "reset the mounts to
> > installation defaults"? At least for the Cygwin installation drive?
> >
> > That last option would wipe out all mounts for directories under the
> > Cygwin installation directory, and create a clean set of mounts as the
> > installer would have done. It would be invaluable for cleaning up from
> > botched mount experiments..
>
> AFAIK there's no ability within Cygwin to _write_ to the registry
> (read was added a little while ago), so it would need to be another
> application.  I'm also unsure as to where it would find out where it
> it'self was installed, in my case c:\cygwin, unless it used it's own
> path and assumed it was in /bin.
>
> Other than that - good idea :)
>
> J.

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

It took the computational power of three Commodore 64s to fly to the moon.
It takes a 486 to run Windows 95.  Something is wrong here. -- SC sig file


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: mount trouble
  2002-09-04 13:47         ` John Morrison
  2002-09-04 13:50           ` Christopher Faylor
  2002-09-04 13:55           ` Igor Pechtchanski
@ 2002-09-04 13:58           ` Shankar Unni
  2002-09-05  7:24           ` John Morrison
  3 siblings, 0 replies; 15+ messages in thread
From: Shankar Unni @ 2002-09-04 13:58 UTC (permalink / raw)
  To: 'John Morrison', cygwin

> > That last option would wipe out all mounts for directories under the

> > Cygwin installation directory, and create a clean set of mounts as
the 
> > installer would have done. 

> AFAIK there's no ability within Cygwin to _write_ to the registry
> (read was added a little while ago), so it would need to be another
> application.  

What? What does the mount(2) API do, then? 

All that mount has to do is to maintain a "standard list of mounts". The
problem is that in the cygwin platform, there's no separate fstab-like
configuration file that is essentially untouched while the user plays
with the mounts. 

On Linux, I can play with my mounts, and when I'm done, either fix the
fstab to make it permanent, or just reboot to get things back to the way
they were. Can't do that on cygwin, where the only "mount table" is
persistent (in the registry). 

Though a little foresight on the part of the user does go a long way in
ameliorating this - just run "mount -m > fstab.sh" before starting the
play session, and a "umount -A ; sh fstab.sh" afterwards to restore
things to their original state.

--
Shankar.


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: mount trouble
  2002-09-04 13:55           ` Igor Pechtchanski
@ 2002-09-04 13:59             ` Christopher Faylor
  2002-09-05  9:34             ` John Morrison
  1 sibling, 0 replies; 15+ messages in thread
From: Christopher Faylor @ 2002-09-04 13:59 UTC (permalink / raw)
  To: cygwin

On Wed, Sep 04, 2002 at 04:55:34PM -0400, Igor Pechtchanski wrote:
>On Wed, 4 Sep 2002, John Morrison wrote:
>>AFAIK there's no ability within Cygwin to _write_ to the registry (read
>>was added a little while ago), so it would need to be another
>>application.
>
>For the record: regtool does both.  See 'regtool --help'.

That's true but please do *not* use regtool to manipulate the mount
table.  The mount command already has sufficient functionality to save a
copy of itself, wipe out existing mounts, and save a new copy.  There's
no reason to use the regtool screwdriver to pry mount table nails.  Use
the mount hammer for that.

This is especially true given that the format of some mount table values
may change in 1.3.14.

cgf

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: mount trouble
  2002-09-04 13:47         ` John Morrison
                             ` (2 preceding siblings ...)
  2002-09-04 13:58           ` Shankar Unni
@ 2002-09-05  7:24           ` John Morrison
  3 siblings, 0 replies; 15+ messages in thread
From: John Morrison @ 2002-09-05  7:24 UTC (permalink / raw)
  To: Shankar Unni, cygwin

> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> Nicholas Wourms wrote:
> > --- Christopher Faylor <cgf@redhat.com> wrote:
> > [SNIP]
> > mount -f -s -b -X "C:/cygwin/usr/X11R6/bin" "/usr/X11R6/bin"
> > mount -f -s -b -E "C:/cygwin/usr/X11R6/lib" "/usr/X11R6/lib"
> > mount -f -s -b -E "C:/cygwin/usr/X11R6/man" "/usr/X11R6/man"
>
> Couple of comments on this:
>
> * Does the X11 stuff get used so much that this level of fine-grained
> mount options actually makes a big difference? Why not just default the
> lot, and create a single mount point for "/usr/X11R6"?

Sorry, I can't answer that, but I only have one X11R6 dir mounted...

C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system
(binmode)

I don't know why... if I removed this mount it would still be in the
same place.

> * Would it help to add an option to mount to "reset the mounts to
> installation defaults"? At least for the Cygwin installation drive?
>
> That last option would wipe out all mounts for directories under the
> Cygwin installation directory, and create a clean set of mounts as the
> installer would have done. It would be invaluable for cleaning up from
> botched mount experiments..

AFAIK there's no ability within Cygwin to _write_ to the registry
(read was added a little while ago), so it would need to be another
application.  I'm also unsure as to where it would find out where it
it'self was installed, in my case c:\cygwin, unless it used it's own
path and assumed it was in /bin.

Other than that - good idea :)

J.


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: mount trouble
  2002-09-04 13:55           ` Igor Pechtchanski
  2002-09-04 13:59             ` Christopher Faylor
@ 2002-09-05  9:34             ` John Morrison
  1 sibling, 0 replies; 15+ messages in thread
From: John Morrison @ 2002-09-05  9:34 UTC (permalink / raw)
  To: cygwin; +Cc: Shankar Unni

Thanks - I didn't know that, and I needed the functionality last month too!
I'll remember this :)

J.

> From: Igor Pechtchanski
> For the record: regtool does both.  See 'regtool --help'.
> 	Igor


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: mount trouble
  2002-09-04 16:01 Mark Jaffe
@ 2002-09-04 16:04 ` Max Bowsher
  0 siblings, 0 replies; 15+ messages in thread
From: Max Bowsher @ 2002-09-04 16:04 UTC (permalink / raw)
  To: Mark Jaffe, cygwin

Mark Jaffe wrote:
> OK thanks!
>
> After looking at the mount command, I have one more question: how do I
> make it stick between sessions? (Where is the permanent mount table,
> or where is a startup script where I can issue the mount when I start
> cygwin?)

It just does. (Well, the info is stored in the registry, but all Cygwin mount
operations are persistent.)

Max.


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: mount trouble
@ 2002-09-04 16:01 Mark Jaffe
  2002-09-04 16:04 ` Max Bowsher
  0 siblings, 1 reply; 15+ messages in thread
From: Mark Jaffe @ 2002-09-04 16:01 UTC (permalink / raw)
  To: cygwin

OK thanks!

After looking at the mount command, I have one more question: how do I
make it stick between sessions? (Where is the permanent mount table, or
where is a startup script where I can issue the mount when I start
cygwin?)

Mark

-----Original Message-----
From: Christopher Faylor [mailto:cgf@redhat.com]
Sent: Wednesday, September 04, 2002 1:59 PM
To: cygwin@cygwin.com
Subject: Re: mount trouble


On Wed, Sep 04, 2002 at 04:55:34PM -0400, Igor Pechtchanski wrote:
>On Wed, 4 Sep 2002, John Morrison wrote:
>>AFAIK there's no ability within Cygwin to _write_ to the registry
(read
>>was added a little while ago), so it would need to be another
>>application.
>
>For the record: regtool does both.  See 'regtool --help'.

That's true but please do *not* use regtool to manipulate the mount
table.  The mount command already has sufficient functionality to save a
copy of itself, wipe out existing mounts, and save a new copy.  There's
no reason to use the regtool screwdriver to pry mount table nails.  Use
the mount hammer for that.

This is especially true given that the format of some mount table values
may change in 1.3.14.

cgf

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


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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-09-05 16:20 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-02  5:21 mount trouble Usman Muzaffar
2002-09-02 14:11 ` Max Bowsher
2002-09-02 14:28   ` Christopher Faylor
2002-09-03  5:48     ` Nicholas Wourms
2002-09-04 10:37       ` Shankar Unni
2002-09-04 10:50         ` Christopher Faylor
2002-09-04 13:47         ` John Morrison
2002-09-04 13:50           ` Christopher Faylor
2002-09-04 13:55           ` Igor Pechtchanski
2002-09-04 13:59             ` Christopher Faylor
2002-09-05  9:34             ` John Morrison
2002-09-04 13:58           ` Shankar Unni
2002-09-05  7:24           ` John Morrison
2002-09-04 16:01 Mark Jaffe
2002-09-04 16:04 ` Max Bowsher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).