This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Restoring text mode on a mount. How?
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Thu, 10 Apr 2008 19:14:39 -0700
- Subject: Re: Restoring text mode on a mount. How?
- References: <loom.20080411T000704-563@post.gmane.org>
- Reply-to: cygwin at cygwin dot com
Andrey Tarasevich wrote:
> So the question that I'm trying to ask is why doesn't it work without re-
> installation of Cygwin? Why does it interpret scripts from re-mounted textmode
> mount as binary files? Is there a way to get back to the original freshly-
> installed Cygwin textmode behavior without actually re-installing it?
Paste the entire contents of the mount table. The mode that is in
effect for a given file is a function of which mount table entry the
filename matched. For example, there can be both user and system
entries for cygdrive or any other mount. Also, the mode of the cygdrive
mount only matters for things accessed through that mount, not e.g.
/usr/local/bin/foo. So in other words, you have to consider the table
as a whole; show us the entire contents as well as the filename under
which you access the file.
The setup program does nothing but edit the mounts in the table, there
is nothing special about it, and everything it does can be reproduced
with the "mount" command. If you select "just me" it edits user-mode
mounts, if you select "everybody" it edits system-mode mounts.
Brian
--
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/