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 Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <008801c1aee9$114b3900$0d00a8c0@mchasecompaq> From: "Michael A Chase" To: , "Steinar Bang" References: <87665hrz8w DOT fsf AT home DOT lan><01bf01c1ab50$f3255cd0$0d00a8c0 AT mchasecompaq><873d0frqtz DOT fsf AT home DOT lan> <87y9i7qbs9 DOT fsf AT home DOT lan> Subject: Re: changing default text type without reinstall? Date: Wed, 6 Feb 2002 00:28:15 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 ----- Original Message ----- From: "Steinar Bang" To: Sent: Wednesday, February 06, 2002 00:01 Subject: Re: changing default text type without reinstall? > >>>>> Steinar Bang : > > >>>>> "Michael A Chase" : > >>>> "Steinar Bang" wrote: > > >>> Platform: CygWin 1.3.2, CygWin/XFree86 4.1.0, Win2k > > >>> Is it possible to change from text type "Unix" to text type "DOS", > >>> without reinstall? > > >> mount --help > > The results of "mount --help", is here > > > > I'm guessing "mount -t" is what I should use? The explanation is > > "text files get \r\n line endings". > > > But I am unsure of how I should use this command. What exactly does > > it do? Does it insert a translation between the file system and the > > cygwin programs? I think you found most of what you needed, but did the articles you found explain enough? If not, what parts were insufficient or unclear? > > Will just running the mount command make the change persistent? I > > didn't find anything under /etc or /usr/etc that looked like a mount > > table. As you discovered, mount points are kept in the registry. One set under HKEY_LOCAL_MACHINE and one under HKEY_CURRENT_USER. They are persistent. > Here's some more information on the cygwin mount table > > > The mount table is in the registry, and running the mount command > should put the changes there. The documentation says that the mount > command can be used to add mount points, which makes it strange that > the below command failed: > > > I tried changing the mode of the /home directory > > ~$ mount -t c:\cygwin\home /home > > mount: /home: Invalid argument > > Why is "/home" an invalid argument? Have I misunderstodd what is > meant by a "posix path"? The thing that puzzles me about that error message is that it didn't complain about c:cygwinhome instead since the bash command line reader uses '\' as an escape character. The easy way to avoid that problem is to use '/' instead of '\' even in Windows paths passed to cygwin programs. There are two types of mount points, user and system. By default mount creates user (-u) mount points. These only apply to the current user and override the corresponding system mount points. Normally I only create system (-s) mount points. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/