Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Tue, 13 May 2003 17:23:20 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: DEEPA SIVASANKARANE cc: cygwin AT cygwin DOT com Subject: Re: Cygwin Net - Compilation In-Reply-To: <2828a038.83896cc3.8204d00@mirapointms2.wayne.edu> Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Deepa, The mount invocation below (without quotes) worked for me from a cmd.exe prompt. Again, Cygwin mounts are persistent, and global. You can't mount something "for one session", and then have that mount be invisible to other sessions. Once you mount something, it's there. The only granularity you have is that different users have different mounts. And the cygdrive mount is just a special kind of mount. So, again, you only need to run mount once. From either bash or cmd.exe -- doesn't matter. When you've run it, you will not be able to use the /cygdrive/c syntax to refer to your drives anymore, so you'll have to use the //c syntax everywhere. If you want the /c in your path to work, just do another "mount c:/ /c", and you're all set. Same for other drives. Igor P.S. When you were restoring your mounts, you did remember to use the "-s" flag, didn't you? On Tue, 13 May 2003, DEEPA SIVASANKARANE wrote: > Hi Igor, > > About the first, it does'nt seem to work (from the batch > file), w/o quotes. > Ran the command from bash, but looks like I need > to set PATH again.. Like change /c/WINDOWS to //c/WINDOWS > etc.. > Thought if I fix it in cygwin.bat (put the mount there), > then I don't have to > worry about fixing PATH again etc..?? > > Thanx, > Deepa > > > ---- Original message ---- > >Date: Tue, 13 May 2003 16:39:17 -0400 (EDT) > >From: Igor Pechtchanski > >Subject: Re: Cygwin Net - Compilation > >To: DEEPA SIVASANKARANE > >Cc: cygwin AT cygwin DOT com > > > >Deepa, > > > >First off, the single quotes were needed for invoking that > command from > >bash, not a batch file. For a batch file, remove the single > quotes. > > > >Secondly, Cygwin mounts are not like Unix mounts -- they are > persistent, > >and they are not saved anywhere else. In other words, you > only need to > >run the mount command *once*, and then, until a umount, the > mount will > >stay. > > > >So, either run "mount -u -c /\" from a cmd.exe window, > or "mount -u -c > >'/\'" from bash (*once*), and you'll have your cygdrive > prefix as "//". > > Igor > > > >On Tue, 13 May 2003, DEEPA SIVASANKARANE wrote: > > > >> Thanx, Igor. Now I did a edit cygwin.bat and > >> put in mount -u -c '/\', (as u said) > >> > >> but the mount point is not right (with this apostrophe). > >> %mount > >> > >> c:\cygwin\bin on /usr/bin type system (binmode) > >> c:\cygwin\lib on /usr/lib type system (binmode) > >> c:\cygwin on / type system (binmode) > >> c: on /'/c type user (binmode,noumount) > >> > >> Played around a bit with the slashes and ', but don't seem > >> to get: > >> > >> c: on //c type user (binmode,noumount) > >> > >> Could u pls. help ? > >> > >> Thx, > >> Deepa > >> > >> > >> ---- Original message ---- > >> >Date: Tue, 13 May 2003 15:36:48 -0400 (EDT) > >> >From: Igor Pechtchanski > >> >Subject: Re: Cygwin Net - Compilation > >> >To: DEEPA SIVASANKARANE > >> >Cc: cygwin AT cygwin DOT com > >> > > >> >Deepa, > >> > > >> >No problem, I wasn't chiding you, I was simply > wondering... > >> > > >> >For complete instructions on using mount, with examples, > see > >> >. > >> > Igor > >> > > >> >On Tue, 13 May 2003, DEEPA SIVASANKARANE wrote: > >> > > >> >> Yes, it was a mistake. Now , I went to the DOS > >> >> prompt, cd C:\cygwin\bin > >> >> Do I do a > >> >> > >> >> mount "c:\cygwin" "/" > >> >> > >> >> or just mount "/" ? > >> >> > >> >> I did the latter as u suggested, alongwith > >> >> mount "/usr/lib" > >> >> mount "/usr/bin" > >> >> it did'nt work.. > >> >> > >> >> Sorry for the truble :-),pls. help. > >> >> > >> >> thanx, > >> >> regards, > >> >> Deepa > >> >> > >> >> > >> >> ---- Original message ---- > >> >> >Date: Tue, 13 May 2003 14:52:36 -0400 (EDT) > >> >> >From: Igor Pechtchanski > >> >> >Subject: Re: Cygwin Net - Compilation > >> >> >To: DEEPA SIVASANKARANE > >> >> >Cc: cygwin AT cygwin DOT com > >> >> > > >> >> >Deepa, > >> >> > > >> >> >Now, what in the world possessed you to do *that*? > >> >> >Run cmd.exe, cd to your cygwin bin directory (probably > >> c:\cygwin\bin), > >> >> >and you'll be able to run mount from there. You will > >> need at least > >> >> >three mounts: "/", "/usr/bin", and "/usr/lib". > >> >> > > >> >> >Next time, before "umount"ing, run "mount -m > >> > /bin/restore_mounts.bat". > >> >> >Then you'll be able to undo your commands by simply "cd > >> c:\cygwin\bin ^ restore_mounts" > >> >> > Igor > >> >> > > >> >> >On Tue, 13 May 2003, DEEPA SIVASANKARANE wrote: > >> >> > > >> >> >> Hi Igor, > >> >> >> > >> >> >> I did a umount -A, and I ran bash again. Now I'm > not > >> >> >> able to execute anything, including mount. > >> >> >> What do I do ? > >> >> >> > >> >> >> thanx, > >> >> >> Deepa > >> >> >> > >> >> >> ---- Original message ---- > >> >> >> >Date: Tue, 13 May 2003 14:00:41 -0400 (EDT) > >> >> >> >From: Igor Pechtchanski > >> >> >> >Subject: Re: Cygwin Net - Compilation > >> >> >> >To: DEEPA SIVASANKARANE > >> >> >> >Cc: cygwin AT cygwin DOT com > >> >> >> > > >> >> >> >Deepa, > >> >> >> > > >> >> >> >See . You may > >> also be able to > >> >> >> >run the old toolset by setting your cygdrive prefix > >> to "//" (the > >> >> >> >obvious way, "mount -u -c //", won't work, but you > can > >> circumvent it by > >> >> >> >using "mount -u -c '/\'") -- *NOTE that this will > make > >> you unable to > >> >> >> >access any network share from that user account!* > >> >> >> > Igor > >> >> >> >P.S. Try passing the -specs=FILE option to umsgcc -- > >> that should make > >> >> >> >it read the specs from FILE, unless they *really* > >> diverged from the gcc > >> >> >> >codebase. > >> >> >> > > >> >> >> >On Tue, 13 May 2003, DEEPA SIVASANKARANE wrote: > >> >> >> > > >> >> >> >> [snip] > >> >> >> >> BTW, the new syntax for drives is just /c > >> or /cygdrive/c ? -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Knowledge is an unending adventure at the edge of uncertainty. -- Leto II -- 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/