LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba mount Windows share convert eol characters (https://www.linuxquestions.org/questions/linux-newbie-8/samba-mount-windows-share-convert-eol-characters-4175443709/)

blodgett.donald 01-01-2013 02:21 PM

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.

chrism01 01-01-2013 07:11 PM

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


All times are GMT -5. The time now is 04:19 PM.