Split and join files in Ubuntu with lxsplit
Posted: July 21, 2009 at 7:44 pm | Tags: lxsplit install , join files , lxsplit , split filesBelow I DESCRIBE how to split the file into larger Several small files. This is Useful When You Want to copy the file on the stick is Bigger Than the Stick's capacity.
The file used is this example is a 75 MB. Mkv.
I Will use for splitting and joining the lxsplit. Mkv file. So, i need to install lxsplit:
wget http://sourceforge.net/projects/lxsplit/files/lxsplit/lxsplit-0.2.4.tar.gz/download
Decompression:
Ducu mylaptop @: ~ / temp $ tar-xvvzf lxsplit-0.2.4.tar.gz
drwxrwxr-x Ozzie / Ozzie 0 3/10/2008 3:28 p.m. lxsplit-0.2.4 /
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/mkuoff_t.c 3200 02/02/2008 10:03
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/Makefile 1618 05/31/2008 11:03
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/func.c 2520 8:15 p.m. 07/02/2008
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/config.h 2440 3:05 p.m. 10/03/2008
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/merge.c 4749 02/02/2008 10:03
-Rw-rw-r-Ozzie / 1070 02/02/2008 9:45 Ozzie lxsplit-0.2.4/merge.h
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/README 2345 3:09 p.m. 10/03/2008
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/ChangeLog 1715 3:09 p.m. 10/03/2008
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/func.h 1174 8:15 p.m. 07/02/2008
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/lxsplit.spec 1320 3:25 p.m. 10/03/2008
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/split.h 1080 02/02/2008 10:03
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/split.c 4375 3:04 p.m. 10/03/2008
-Rw-rw-r-Ozzie / Ozzie lxsplit-0.2.4/main.c 3670 3:03 p.m. 10/03/2008
-Rw-rw-r-Ozzie / Ozzie 17990 02/02/2008 9:45 lxsplit-0.2.4/COPYING
Access Give the new folder and make the command:
lxsplit-0.2.4 cd /
make
Next, make install command. This is the result:
Ducu mylaptop @: ~ / $ sudo make install temp/lxsplit-0.2.4
lxsplit cp / usr / local / bin
This is my 75MB. Mkv file:
Ducu mylaptop @: ~ / $ ls-ALH movies/Inside.Man.2006.1080p.HDDVD.x264-SZ/Sample
total 75M
drwxr-xr-x 2 4.0K 21/07/2009 9:28 p.m. Ducu Ducu.
drwxr-xr-x 3 4.0K 06/13/2009 2:15 Ducu Ducu ..
-Rw-r-r-1 Ducu Ducu 75M 6/13/2009 2:47 Inside.Man.2006.1080p.HDDVD.x264-SZ-SAMPLE.mkv
I Will split the 75 MB file in chunks of 20 MB.
Ducu mylaptop @: ~ / $ movies/Inside.Man.2006.1080p.HDDVD.x264-SZ/Sample lxsplit, and SZ-SAMPLE.mkv Inside.Man.2006.1080p.HDDVD.x264, 20M
Inside.Man.2006.1080p.HDDVD.x264-SZ-SAMPLE.mkv splitting into four pieces.
SZ-SAMPLE.mkv.001 Inside.Man ... 20,971,520 bytes
SZ-SAMPLE.mkv.002 Inside.Man ... 20,971,520 bytes
SZ-SAMPLE.mkv.003 Inside.Man ... 20,971,520 bytes
SZ-SAMPLE.mkv.004 Inside.Man ... 14,767,172 bytes
Done!
Now I Will join the four files resulted:
Ducu mylaptop @: ~ / $ movies/Inside.Man.2006.1080p.HDDVD.x264-SZ/Sample lxsplit-j-SZ-SAMPLE.mkv Inside.Man.2006.1080p.HDDVD.x264 .001
Creating merged file `Inside.Man.2006.1080p.HDDVD.x264-SZ-SAMPLE.mkv '.
Full size: 77681732 in 4 files.
Processing file `SZ-SAMPLE.mkv.001 Inside.Man ... '...
Processing file `SZ-SAMPLE.mkv.002 Inside.Man ... '...
Processing file `SZ-SAMPLE.mkv.003 Inside.Man ... '...
Processing file `SZ-SAMPLE.mkv.004 Inside.Man ... '...
Done!
If you used this tutorial or have Any questions, feel free to leave a comment Below. You Can Also rate this tutorial to let me know how I'm doing. Thanks! ![]()

















The Discussion
see what everyone is Saying
Very good tutorial. Exactly what I needed.
It Would Be amazing if it WAS in English, or if There Was a plugin for translation.
Thanks a lot!
@ Dean
I'm Glad you find this helpful. Soon the translation plugin will be avaible. Come back and check it!
Super loud, I thought the only one looking for such information
.
Thank you for your help!
Hi
I got the Following error while i tried 'make' on the lxsplit-0.2.4 folder.
I have the structure as ~ / download/lxsplit-0.2.4.
help requested.
thx
raj
@ Raj: Please specify the error you get.
lxsplit is in the ubuntu repositories - you CAN install with synaptic or apt.
Does not work if you just split the files. Sure, you get two files of size Unspecified - but if you view # 1 - Will it still show the full length and the second one will be soundless and garbled video.
Thanks for your step by step illustration!

worked perfectly for me ....
keep up the good work ...
im Able to open just the first file ... later ones seem corrupted
anyone help?
You you should make changes to the post subject Split and join files in Ubuntu with lxsplit | EtutsResourcesIT to Something more specific for your blog post you create. I loved the writing the eventual sononetheless.