LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-01-2013, 03:21 PM   #1
blodgett.donald
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
Question Samba mount Windows share convert eol characters


Is there a way to mount a Windows share on a Ubuntu server such that the text files in the share are stored on the Windows share with the eol characters as carriage-return/line-feed, but seen as just line-feed characters on the Ubuntu system?

Currently I am using /etc/fstab to mount the Windows share. I would like to be able to continue to use this method, but I am open to alternatives that provide automatically mounting the share on start-up.
 
Old 01-01-2013, 08:11 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
The problem is that the eol char(s) are stored as part of each file's data. Filesystems can store (almost) any kind of files eg binaries usually don't have eol chars like that.
In short, I believe the answer is 'no'; its up to the app to deal with it.
Of course you do have dos2unix & unix2dos utils to change the line endings.
http://linux.die.net/man/1/unix2dos
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 12:28 PM
samba mount windows xp share eyt Linux - Software 2 10-26-2007 10:35 AM
Cannot mount samba share from windows XP Astro Linux - Software 2 12-18-2004 12:26 PM
Can't mount Samba share dir in Windows XP wycolorado Linux - Software 22 10-22-2004 07:35 AM
can't mount to windows share folder using samba yawhum80 Linux - Software 4 10-25-2003 12:52 AM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration