LinuxQuestions.org
Help answer threads with 0 replies.
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, 02: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, 07:11 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
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 11:28 AM
samba mount windows xp share eyt Linux - Software 2 10-26-2007 09:35 AM
Cannot mount samba share from windows XP Astro Linux - Software 2 12-18-2004 11:26 AM
Can't mount Samba share dir in Windows XP wycolorado Linux - Software 22 10-22-2004 06:35 AM
can't mount to windows share folder using samba yawhum80 Linux - Software 4 10-24-2003 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:47 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