-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhjsplit-and-linux-split.html
More file actions
112 lines (105 loc) · 4.31 KB
/
hjsplit-and-linux-split.html
File metadata and controls
112 lines (105 loc) · 4.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Dreams of thought</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/theme/styles.css">
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="/theme/slicknav.css">
<script src="/theme/jquery.slicknav.min.js"></script>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
<![endif]-->
<script>
$(function(){
$('#menu').slicknav({'label':''});
});
</script>
<link rel="icon" href="/theme/favicon.ico" sizes="16x16 32x32 48x48 64x64" type="image/vnd.microsoft.icon">
<link rel="apple-touch-icon" sizes="114x114" href="/theme/apple-touch-icon-precomposed.png">
<link rel="apple-touch-icon" sizes="152x152" href="/theme/favicon152.png">
<link rel="apple-touch-icon" sizes="196x196" href="/theme/favicon196.png">
</head>
<body>
<div id="wrapper">
<header>
<nav class="byline"><ul id="menu">
</ul></nav><!-- /#menu -->
<div class="downloads">
<a href="#" class="fa fa-Twitter"></a>
<a href="#" class="fa fa-Github"></a>
</div>
<hgroup>
<h1>hjsplit and linux split</h1>
<footer class="article-footer">
<address class="vcard author">
By <a class="url fn" href="./author/admin.html">admin</a>
</address>
<abbr class="published" title="2009-06-23T00:58:00+05:30">
on 23.06.2009
</abbr>
</footer><!-- /.post-info -->
</hgroup>
</header>
<section id="content" class="body article">
<div class="entry-content">
<p>The other day I had to fit in a 4.4 GB file (A Debian testing dvd iso
image, if you want to know) on a 4 GB thumb drive. This, of course, is
not possible. So I had to split the file into chunks, transfer them
twice, take them to my friend's windows machine and use hjsplit to join
the files. How did I split the file so hjsplit could read it, when I
didn't use the linux version of hjsplit?</p>
<p>It looks like hjsplit splits its files by just cutting them into pieces.
This is exactly what is done by the split command. Which is probably why
I could use the linux split to split the file into a format hjsplit
could join.</p>
<p>You could use a command similar to this one if you want to try it out :</p>
<p>$ split -b900M -d
/home/anirudh/downloads/debian/debian-testing-i386-DVD-1.iso
debian-testing-i386-DVD-1.iso.</p>
<p>the '-b' option is used to specify the size of each chunk - 900 MB in
this case. '-d' means the output should be numeric (000,001,002...). Now
we specify the large file and a prefix to attach to the generated
filenames (note the dot at the end). This command will generate files :</p>
<p>debian-testing-i386-DVD-1.iso.000</p>
<p>debian-testing-i386-DVD-1.iso.001</p>
<p>debian-testing-i386-DVD-1.iso.002</p>
<p>debian-testing-i386-DVD-1.iso.003</p>
<p>debian-testing-i386-DVD-1.iso.004</p>
<p>Now this should be relatively easy to join with hjsplit. Do some
renaming if required.</p>
<p>Edit :</p>
<p>meaculpa has noted that split starts renaming its files with 000 and not
001 as required by hjsplit. Please check <a class="reference external" href="#comment-51">his comment
below</a> for the solution.</p>
<p>As a follow up to this post, I had written another on <a class="reference external" href="http://gingerjoos.com/blog/linux/how-to-join-split-files">how to join the
split files in
linux</a>. You
can <a class="reference external" href="http://gingerjoos.com/blog/linux/how-to-join-split-files">check it out as
well</a>.</p>
</div><!-- /.entry-content -->
<div class="article-share-tags">
<div class="end-article-tags">
</div>
<div class='article-share'>
share -
</div>
</div>
</section>
<div class="neighbors">
</div>
<footer>
<a href="./pages/about.html" >About</a>
<div class="right-footer">
<a href="./categories.html" >Categories</a>
<a href="./tags.html" >Tags</a>
</div>
</footer>
</body>
</html>