Thread View: comp.unix.shell
5 messages
5 total messages
Started by Ben
Sun, 07 Jun 2009 08:08
Mount cygwin root on Windows root
Author: Ben
Date: Sun, 07 Jun 2009 08:08
Date: Sun, 07 Jun 2009 08:08
14 lines
2091 bytes
2091 bytes
Hey, I'm used to working with Windows (and using Command Prompt for my
"shell"), but I've recently been switching to using cygwin and bash.
The problem is, I really don't like having to go to /cygdrive/c to get
the actual Windows root, and although I played a bit with setting the
prefix to /c, I still would prefer to have the cygwin root "/"
coincide with the Windows root "C:".
Currently I have the cygwin installation on the root ("C:"), which is
working perfectly, but I'd rather have the cygwin installation on C:
\cygwin. I've tried doing that and mounting "C:" on "/", which seems
to work, but it causes several bad side effects, like I can't get g++
to work, and I can't view any man pages ("Warning: cannot open
configuration file /usr/share/misc/man.conf"), etc. Does anyone have
any suggestions for how I can get this to work? Thanks.
Re: Mount cygwin root on Windows root
Author: Mark Hobley
Date: Sun, 07 Jun 2009 12:08
Date: Sun, 07 Jun 2009 12:08
16 lines
1594 bytes
1594 bytes
In comp.unix.programmer Ben <bgold12@gmail.com> wrote:
> Currently I have the cygwin installation on the root ("C:"), which is
> working perfectly, but I'd rather have the cygwin installation on C:
I don't know the answer to your question, but there is now a new cygwin
related group alt.comp.cygwin available on usenet. Ask your Usenet provider to
make the group alt.comp.cygwin available to you.
Regards,
Mark.
--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/
Re: Mount cygwin root on Windows root
Author: Mark McIntyre
Date: Sun, 07 Jun 2009 16:31
Date: Sun, 07 Jun 2009 16:31
20 lines
2101 bytes
2101 bytes
Ben wrote:
> Hey, I'm used to working with Windows (and using Command Prompt for my
> "shell"), but I've recently been switching to using cygwin and bash.
> The problem is, I really don't like having to go to /cygdrive/c to get
> the actual Windows root, and although I played a bit with setting the
> prefix to /c, I still would prefer to have the cygwin root "/"
> coincide with the Windows root "C:".
You might be better to ask the Cygwin people direct - there's probably a
mailing list.
> Currently I have the cygwin installation on the root ("C:"), which is
> working perfectly, but I'd rather have the cygwin installation on C:
> \cygwin.
You seem to want the best of both worlds...
Question is - why do you want Windows c:\ to map to Cygwin's / ? Is it
because you have data files in c:\somedirectory and want to reference it
as /somedirectory? If so, will a symlink do the trick?
Re: Mount cygwin root on Windows root
Author: Keith Thompson
Date: Sun, 07 Jun 2009 22:53
Date: Sun, 07 Jun 2009 22:53
24 lines
2584 bytes
2584 bytes
Ben <bgold12@gmail.com> writes:
> Hey, I'm used to working with Windows (and using Command Prompt for my
> "shell"), but I've recently been switching to using cygwin and bash.
> The problem is, I really don't like having to go to /cygdrive/c to get
> the actual Windows root, and although I played a bit with setting the
> prefix to /c, I still would prefer to have the cygwin root "/"
> coincide with the Windows root "C:".
>
> Currently I have the cygwin installation on the root ("C:"), which is
> working perfectly, but I'd rather have the cygwin installation on C:
> \cygwin. I've tried doing that and mounting "C:" on "/", which seems
> to work, but it causes several bad side effects, like I can't get g++
> to work, and I can't view any man pages ("Warning: cannot open
> configuration file /usr/share/misc/man.conf"), etc. Does anyone have
> any suggestions for how I can get this to work? Thanks.
Take a look at question 2.4 of the Cygwin FAQ,
<http://www.cygwin.com/faq/>.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Re: Mount cygwin root on Windows root
Author: Gary Johnson
Date: Mon, 08 Jun 2009 22:30
Date: Mon, 08 Jun 2009 22:30
53 lines
3038 bytes
3038 bytes
In comp.unix.shell Keith Thompson <kst-u@mib.org> wrote:
> Ben <bgold12@gmail.com> writes:
> > Hey, I'm used to working with Windows (and using Command Prompt for my
> > "shell"), but I've recently been switching to using cygwin and bash.
> > The problem is, I really don't like having to go to /cygdrive/c to get
> > the actual Windows root, and although I played a bit with setting the
> > prefix to /c, I still would prefer to have the cygwin root "/"
> > coincide with the Windows root "C:".
> >
> > Currently I have the cygwin installation on the root ("C:"), which is
> > working perfectly, but I'd rather have the cygwin installation on C:
> > \cygwin. I've tried doing that and mounting "C:" on "/", which seems
> > to work, but it causes several bad side effects, like I can't get g++
> > to work, and I can't view any man pages ("Warning: cannot open
> > configuration file /usr/share/misc/man.conf"), etc. Does anyone have
> > any suggestions for how I can get this to work? Thanks.
>
> Take a look at question 2.4 of the Cygwin FAQ,
> <http://www.cygwin.com/faq/>.
I wouldn't install Cygwin in C:\ because of that FAQ answer, but there
are some things you can do to avoid having to type /cygdrive/c all the
time. One is that you can create an alias like this,
alias cd-c='cd /cygdrive/c'
Another is that you can set the $CDPATH variable like this,
export CDPATH=.:$HOME:/cygdrive/c
so that when you type "cd" followed by a directory name, bash will
search for that name first in the current directory, then in your $HOME
directory, then in /cygdrive/c. I suppose you could also define a
variable, $C, like this,
export C=/cygdrive/c
and then cd to directories under C:\ like this:
cd $C/Program\ Files
I hadn't tried that last one before, but that works really well, because
it allows bash to do filename completion. That is, if you type
cd $C/Prog
and hit Tab, bash replaces that string on the command line with this
one:
cd /cygdrive/c/Program\ Files/
--
Gary Johnson
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads