LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 05-10-2006, 02:29 PM   #1
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
file corruption!!


Hi to all,

I wanted some views on the following:

When I copy .txt and .c files from my linux partition to my C (Windows) drive, and then burn them on a CD in Windows, those .txt and .c files no longer work on linux. Can s.o tell me why is that so and how can I solve this problem without having to type it again in linux.

Warm regards,
Visham
 
Old 05-10-2006, 03:24 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Since I can't see the files I'm guessing, but if the line endings in the files get converted to MS-DOS (carriage return/line feed) that can affect whether they operate properly under Linux.

To avoid it, can you burn the CD under Linux? If not, can you create the ISO under Linux and copy the ISO to Windows?
 
Old 05-11-2006, 01:25 AM   #3
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Original Poster
Rep: Reputation: 31
Hi gilead,

Many thx for the reply..

You've guessed right about what happens to the files..no, I can't burn under linux..how do I create the iso files under linux; what configurations/software do I have to use?

Warm regards,
Visham
 
Old 05-11-2006, 04:35 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Burning a cd is both easier and quicker with Linux. ( I am assuming a dual boot with the same cd drive here)

Create the iso file;

mkisofs -r -o name_of_file.iso /home/usr_name/source_directory

This will produce the file name_of_file.iso

To burn to cd do (with a 2.6.X kernel);

cdrecord -v dev=/dev/hdX /home/usr_name/source_directory/name_of_file.iso
where X is the relevant drive number.

Last edited by TigerOC; 05-11-2006 at 04:37 AM.
 
Old 05-11-2006, 08:27 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
You could also take a look at the man pages for the utilities dos2unix and unix2dos which will convert between the end-of-lines used by dos and unix (linux) and vice versa. This would mean that you do not have to re-burn your CD.

HTH
 
Old 05-12-2006, 02:45 AM   #6
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Original Poster
Rep: Reputation: 31
Many thx to all you guys for the very handy suggestions..

Warm regards,
Visham
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP!! File corruption using SWSUSP2 BroX Slackware 3 09-28-2005 08:03 AM
FTP File Corruption Firejack Linux - Networking 1 01-02-2005 03:39 PM
ftp file corruption rkfb Slackware 2 01-18-2004 08:41 AM
File Corruption in Red Hat 7.3 File Server dmurph2k2 Red Hat 3 10-09-2003 03:30 PM
File Corruption on Red Hat 7.3 File Server dmurph2k2 Linux - General 2 10-09-2003 01:38 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration