LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 02:24 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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, 12: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, 03: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 03:37 AM.
 
Old 05-11-2006, 07:27 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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, 01: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



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 07:03 AM
FTP File Corruption Firejack Linux - Networking 1 01-02-2005 02:39 PM
ftp file corruption rkfb Slackware 2 01-18-2004 07:41 AM
File Corruption in Red Hat 7.3 File Server dmurph2k2 Red Hat 3 10-09-2003 02:30 PM
File Corruption on Red Hat 7.3 File Server dmurph2k2 Linux - General 2 10-09-2003 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:59 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
Open Source Consulting | Domain Registration