LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-14-2004, 07:31 PM   #1
dougp25
Member
 
Registered: Dec 2003
Location: Seacoast NH
Distribution: PCLinuxOS
Posts: 37

Rep: Reputation: 2
Exclamation Errors When I copied Win files from Lin back to Win!


Argh!

I had a failing hard drive with Windoze on it, and my good hard drive had Suse 8.2 on it. So I just copied over everything from the (now very noisy) Windoze drive onto my Suse drive. So far so good! then I got a new hard drive, put Windoze back on that, loaded up the apps, and then copied the stuff from Suse back onto the new Doze drive. When I go to open those files, (many are Photoshop, or Adobe Illustrator), I get this error (in Windoze, of course)

Can't open this file. An unexpected end of file was encountered.

Now, I know Linux and Windoze write files differently (Windoze likes a line break plus new line char for 'returns', Linux doesn't). Is it possible I should have added some sort of swith to my copy command to preserve these files?

I'd appreciate any help! I still have the old (and now VERY noisy, clunky, and SLOW) Windoze HD, so if there is another way to try and grab the files, I'd be willing to try again.

Much thanks.
 
Old 09-14-2004, 07:39 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Maybe they where corrupted? I've never had trouble moving files between windows and Linux, apart from having to reset permissions in Linux.

You could simply put the HD as a third disk ( removing a CD drive if needed ), and try to copy them directly. Or you could use a compression and copy say "tar -cjf windows.tar.bzip2 /mnt/win/" as an example.
 
Old 09-15-2004, 05:03 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,772

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
Sounds more like that damned windows newline character again. There are scripts, free for the taking. Bash, perl, whatever, which will peruse files and remove/insert the necessary control characters to convert from windows to Linux format. I've seen them, but haven't had occasion to use them, so I don't remember where to find them. Google/Linux is your friend. Use it.
 
  


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
How to use a slave HD to back up files Linux/Win? jos1983 Linux - Hardware 3 12-04-2005 11:34 PM
vsftpd not list files when viewed from deifferent win machine win ftp application in anuj_sharma25 Linux - Newbie 2 11-22-2005 11:08 PM
inet ok, yast update not ok, win to lin ok, lin to win not ok captain skywave Linux - Networking 4 08-22-2005 02:17 AM
win to lin-lin to win aamehl Linux - Networking 5 09-10-2003 03:10 AM
Win 4 Lin ??? landshark753 Linux - General 1 02-01-2002 12:55 PM


All times are GMT -5. The time now is 03:38 AM.

Main Menu
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