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 16:39:17 -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: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/ > -- 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/