public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Ralph Hempel <rhempel@bmts.com>
To: cygwin-apps@cygwin.com
Subject: Running Cygwin on Different Drive etters
Date: Thu, 18 Sep 2008 18:59:00 -0000	[thread overview]
Message-ID: <48D2A4DB.6080807@bmts.com> (raw)

I've got a clean minimal install of Cygwin 1.7 on a USB
stick, and I'd like to be able to use that Cygwin install
no matter what the actual drive letter is that is assigned
to the stick.

So far, I've modified cygwin.bat with this to get the drive
letter of the stick:

SETLOCAL
   FOR /F %%D in ("%CD%") DO SET CYGDRIVE=%%~dD
   chdir %CYGDRIVE%\cygwin\bin

   bash --login -i
ENDLOCAL

%CYGDRIVE% ends up with the drive letter and colon, which is
useful, but then when we run cygwin.bat...

...it does not quite work - bash complains it cannot create /tmp
because the original drive letter was encoded into a number of
files under /etc, including:

/etc/fstab

And these files assume that the windows system files are under
c:\WINNT\system32.....

/etc/hosts
/etc/networks
/etc/protocols
/etc/services

So, my question is:

   Would it be possible to allow an environment variable to be part
   of an fstab entry?

Cheers, Ralph

             reply	other threads:[~2008-09-18 18:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-18 18:59 Ralph Hempel [this message]
2008-09-18 19:17 ` Christopher Faylor
2008-09-18 21:07   ` Ralph Hempel
2008-09-18 22:01     ` Christopher Faylor
2008-09-18 23:38       ` Ralph Hempel
2008-09-18 23:54         ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48D2A4DB.6080807@bmts.com \
    --to=rhempel@bmts.com \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).