mount -b option question
Earnie Boyd
earnie_boyd@hotmail.com
Thu Nov 13 17:57:00 GMT 1997
You should generally mount with the -b option. To change the / mount do
this:
cd /gnuwin32/b18/H-i386-cygwin32/bin
./umount /
./mount -b D:\\ /
This is assuming that you are executing in bash. If you have a .bashrc
file you will need to:
cp .bashrc /tmp/.bashrc
tr -d "\r" < /tmp/.bashrc > .bashrc
in order to remove the \r. Changing to binary mode does NOT remove the
\r automatically from any file. It does stop prepending \r to the \n.
I also suggest that you have a directory /text and then mount that
directory as text!=binary. ie "mount D:\\text /text". This way you can
easily have the \r if needed for other WIN32 type programs.
- \\||//
---o0O0--Earnie--0O0o----
-earnie_boyd@hotmail.com-
------ooo0O--O0ooo-------
>From: ryl@innovix.com (Raymond Y. Lillard)
>Subject: mount -b option question
>To: gnu-win32@cygnus.com
>Date: Thu, 13 Nov 1997 11:29:56 -0800 (PST)
>Reply-To: gnu-win32@cygnus.com
>
>Hi all,
>
>I am new to Cygwin (just an old dog struggling with a
>new trick called NT) just having a few days experience
>with it.
>
>My first attempt at mounting disks in the "/" (my C: drive)
>was chaotic because after reading the FAQ it seemed that
>the proper thing to do was mount the volumes with the
>test = binary mode. I used (mount -b D: /volD). Doing
>this broke virtually everything.
>
>My best clue to the problem was that after each command
>my cursor was positioned at the left edge of the window.
>Further investigation with:
>
> echo :$PS1: | od -xc
>
>yielded:
>
> 0000000 5c3a 4075 685c 203a 0a3a
> : \ u @ \ h : \r : \n
>
>Note the <CR> character tacked on end of the prompt.
>
>
>I remounted my volumes sans the '-b' option and my world
>was restored.
>
>Question: When would it be appropriate to us he '-b'
> option to the mount command?
>
>
>Thank to all
>Ray
>
>-
>For help on using this list (especially unsubscribing), send a message
to
>"gnu-win32-request@cygnus.com" with one line of text: "help".
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
More information about the Cygwin
mailing list