Errors When I copied Win files from Lin back to Win!
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.