Hello,
For a couple of days now I have been trying to concatenate the Wikipedia image and English dump files but without any success. I am using Windows XP as an operating system but I also have Knoppix when I want to use Linux environment.
For some reason that I do not understand when I do
knoppix@ttyp0[hdg1]$ cat 20040609_upload.tar.aa 20040609_upload.tar.ab > test.tar
the new file created does not contain any part of the second file (.ab) yet the file size is the addition of both files.
The same is true with the English dump files (xaa, xab, xac, xad, xae).
It seem only the first file of each split data are valid.
Does anybody have any suggestion?
Thanks,
Claudio
______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca
On Mon, Jun 21, 2004 at 11:02:09AM -0400, Claudio V wrote:
Hello,
For a couple of days now I have been trying to concatenate the Wikipedia image and English dump files but without any success. I am using Windows XP as an operating system but I also have Knoppix when I want to use Linux environment.
For some reason that I do not understand when I do
knoppix@ttyp0[hdg1]$ cat 20040609_upload.tar.aa 20040609_upload.tar.ab > test.tar
the new file created does not contain any part of the second file (.ab) yet the file size is the addition of both files.
What does "does not contain any part of the second file" mean? How did you check this? What happens if you untar test.tar?
JeLuF
When I open the test.tar with WinRar it says that there is a certain amount of files which is equivalent to opening 20040609_upload.tar.aa.tar by itself. In other words, I could open 20040609_upload.tar.aa or test.tar and I would get the same output.
Another particular problem is that while logged in Knoppix I cannot do "cat xaa xab xac xad xae > somefile.bz2" because it will return an error. I have found that I could concatenate these files using a little program called "ConCat" with Windows XP but if I try to decompress it fails as if the file is corrupted.
Claudio
--- Jens Frank JeLuF@gmx.de wrote: > On Mon, Jun 21, 2004 at 11:02:09AM -0400, Claudio V
What does "does not contain any part of the second file" mean? How did you check this? What happens if you untar test.tar?
JeLuF
______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca
Timwi:
The error was something like "cannot perform this operation" (sorry I forgot the exact error message).
Claudio
--- Timwi timwi@gmx.net wrote: > Claudio V wrote:
Another particular problem is that while logged in Knoppix I cannot do "cat xaa xab xac xad xae > somefile.bz2" because it will return an error.
Why don't you tell us what this error is?
Wikitech-l mailing list Wikitech-l@Wikipedia.org
http://mail.wikipedia.org/mailman/listinfo/wikitech-l
______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca
Claudio V wrote:
Another particular problem is that while logged in Knoppix I cannot do "cat xaa xab xac xad xae > somefile.bz2" because it will return an error.
By default Knoppix mounts all drives read-only, so I'm guessing the error is that it's unable to write somefile.bz2 to a read-only drive (though if you provided the actual error message I could be more certain). If the drive is something Linux can write to (i.e. not NTFS), you can remount it read/write from the file manager (right-click and it'll be an option in the context menu).
You can also concatenate files from a command line in Windows (go to start->run and enter "cmd" to get there) by doing: copy xaa+xab+xac+xad+xae somefile.bz2
(I'm not sure what utilities on Windows can decompress bzip2 files though.)
-Mark
Delirium wrote:
You can also concatenate files from a command line in Windows (go to start->run and enter "cmd" to get there) by doing: copy xaa+xab+xac+xad+xae somefile.bz2
You probably need to use the /b flag to copy.
(I'm not sure what utilities on Windows can decompress bzip2 files though.)
bzip2 works nicely. Google it up to find the main site, there's a win32 .exe. Or get cygwin for a full suite of Unix tools, and do: cat xa? | bzip2 -dc > big_darn_file.sql
This is of course assuming the files are downloaded correctly, aren't corrupt, and were right to begin with.
-- brion vibber (brion @ pobox.com)
By default Knoppix mounts all drives read-only, so I'm guessing the error is that it's unable to write somefile.bz2 to a read-only drive (though if you provided the actual error message I could be more certain). If the drive is something Linux can write to (i.e. not NTFS), you can remount it read/write from the file manager (right-click and it'll be an option in the context menu).
I know about the �read-only� problem with Knoppix because that was one of my first problems I encounter with that OS.
Solution:
1- mount the hard drive and remove the �read only� 2- write : sudo mount �o remount,rw /dev/hdg1 /mnt/hdg1
(hdg1 is my hdd)
After doing that I could write with no problem on the hard drive.
My drive is NTFS because if it was on a FAT32 it would be impossible for me to have a single file larger then 4 GB.
You can also concatenate files from a command line in Windows (go to start->run and enter "cmd" to get there) by doing: copy xaa+xab+xac+xad+xae somefile.bz2
I have tried that alrady by doing: copy /b xaa+xab+xac+xad+xae somefile.bz2 but strangely I get a file somefile.bz2 but with the size of 1 KB
(I'm not sure what utilities on Windows can decompress bzip2 files though.)
To decompress a bzip2 file you can use WinRar or Bzip for Windows
bzip2 works nicely. Google it up to find the main
site, there's a win32 ..exe. Or get cygwin for a full suite of Unix tools, and do: cat xa? | bzip2 -dc > big_darn_file.sql
I will that tomorrow, Thanks!
Claudio
______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca
Claudio V wrote:
I know about the “read-only” problem with Knoppix because that was one of my first problems I encounter with that OS.
Solution:
1- mount the hard drive and remove the “read only” 2- write : sudo mount –o remount,rw /dev/hdg1 /mnt/hdg1
(hdg1 is my hdd)
After doing that I could write with no problem on the hard drive.
My drive is NTFS because if it was on a FAT32 it would be impossible for me to have a single file larger then 4 GB.
This is getting vaguely off-topic, but I'm pretty sure it's simply impossible to mount NTFS drives read/write on Linux, as the NTFS write code has never been reasonably functional, and has been completely disabled in more recent kernels. You sure you can actually successfully write files to the drive?
-Mark
wikitech-l@lists.wikimedia.org