LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-18-2007, 01:27 PM   #1
SW-ANIKY
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Rep: Reputation: 0
Problem with files (corrupted)


I am trying to install a package, jdk6-i586.
After downloading the file in winxp, i put the file in a pendrive and then copy this file to sw.
But allways i have a error with the file, file corrupted error code 2. I have been copying the file one and other time, burning the files in winxp in a cd and copying in sw, and one and other time with the pendrive, all the files are corrupted, only one package works was this: lshw-B.02.12.01-i486-1mfb.tgz

What can be the problem? why the files are being corrupted all the time. The pendrive is fat, can be a problem this? In windows appear to be fine the file, if i copy the file descompresed can how can install the package (maybe this way works).

I am very desesperated, i dont know what can be the problem.

The cpu is this, a i586 must perfectly works in this.
*-cpu
description: CPU
product: Pentium III (Katmai)
vendor: Intel Corp.
physical id: 4
bus info: cpu@0
version: 6.7.3
slot: Slot-1
size: 450MHz
capacity: 800MHz
width: 32 bits
clock: 100MHz
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse up
 
Old 12-18-2007, 01:55 PM   #2
raconteur
Member
 
Registered: Dec 2007
Location: Slightly left of center
Distribution: slackware
Posts: 276
Blog Entries: 2

Rep: Reputation: 43
Windows puts CR/LF pairs at the end of all lines in uncompressed files.
I suspect you are falling victim to that, with a minor chance that you may also have fallen victim to the 8.3 file naming format (if your pen drive is not VFAT).

In any case, transfer the files compressed to avoid the problem, only decompress them on the Slackware box. Have a care, though... if you compress files in Windows, then the files in the archive will also have those embedded evil CR/LF pairs when you uncompress them in Slackware.

The tedious way to fix it is to edit all of the text files in vi's binary mode, and strip all of the extraneous CRs. The easy way to do it is to avoid Windows altogether and download the files from within Slackware.

Last edited by raconteur; 12-18-2007 at 01:57 PM.
 
Old 12-18-2007, 03:18 PM   #3
SW-ANIKY
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 0
The pendrive must be a vfat, i am working with winxp here.
About cr/lf, the file was downloaded from slackware ftp and copied compresed, windows do some modification to compresed files?.
 
Old 12-18-2007, 03:25 PM   #4
raconteur
Member
 
Registered: Dec 2007
Location: Slightly left of center
Distribution: slackware
Posts: 276
Blog Entries: 2

Rep: Reputation: 43
Yes, sometimes. I don't know what the exact mechanism was, but I've had trouble before transferring compressed files that were originally downloaded in Windows. I haven't done it for a long time but if I recall correctly it had something to do with the save file dialog's default file types.

Get the files via ftp from within Slackware and I would venture a bet that they will decompress correctly.
 
Old 12-19-2007, 03:34 AM   #5
pappy_mcfae
Member
 
Registered: Feb 2007
Location: Dallas
Distribution: Gentoo x86 & x86_64
Posts: 190

Rep: Reputation: 30
Post

My first question would be, why are you not downloading the files under Slackware directly? My second question would be, why the need for the pen drive?

If you are dual booting, you can copy a file from an NTFS partition to a Linux partition, and not lose anything in translation. I have done so numerous times, and have had no difficulty whatsoever.

Also, you can write to NTFS partitions, which is very convenient. You need to do some set up work to make it happen, but it is very doable. I do it with three different machines, and they all work perfectly.

The only problem I have ever had with NTFS volumes under Slackware is when the computer is shut down incorrectly (as in power goes out). Then, in order to get the NTFS volumes working again under Linux, I had to switch to Windoze to have it fix any problems with the NTFS partitions. Once that was done, full NTFS support came back.

Long and short: you are adding more steps than are really necessary. Either download the files directly under Slackware, or copy them from your NTFS partition to your Linux partition. Cut out the middle pen drive completely.

Blessed be!
Pappy

Last edited by pappy_mcfae; 12-19-2007 at 03:39 AM. Reason: change verb tense and subject-predicate agreement
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupted files in my linux? leo1981 Linux - General 1 04-16-2007 12:56 AM
Source files corrupted? Badut Linux From Scratch 7 05-12-2006 09:07 PM
Corrupted Files??? rm6990 Yoper 2 09-19-2004 01:29 AM
Corrupted Library Files Star Child Linux - General 1 04-07-2004 01:13 PM
HELP!!! Corrupted files!!! broxys Linux - General 7 08-18-2003 07:09 PM


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

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
Open Source Consulting | Domain Registration