<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;DkQMSHY8fip7ImA9WhRTE0U.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303</id><updated>2011-11-03T22:26:29.876-07:00</updated><category term='tcpdump'/><category term='dnsmasq'/><category term='how to'/><category term='/dev/kmem'/><category term='workspace'/><category term='awk'/><category term='whiptail'/><category term='google map'/><category term='openflow'/><category term='cp'/><category term='source code analysis'/><category term='python'/><category term='latitude'/><category term='study'/><category term='tips'/><category term='invalid credentials'/><category term='volatile'/><category term='/dev/mem'/><category term='linux kernel'/><category term='layout'/><category term='rabbitmq'/><category term='scp'/><category term='vim'/><category term='linear regression'/><category term='resizing partition'/><category term='c++'/><category term='cross compile'/><category term='linux'/><category term='screen'/><category term='ubuntu 11.10'/><category term='post fix calculator'/><category term='openstack'/><category term='tasklet; interrupt; Linux; device driver'/><category term='small files'/><category term='nox'/><category term='envi'/><category term='function backtrace'/><category term='terminator'/><category term='ascii'/><category term='ifstat'/><category term='cross-compile'/><category term='c'/><category term='click'/><category term='iperf'/><category term='print'/><category term='echo'/><category term='android'/><category term='html'/><category term='color'/><category term='kernel'/><category term='source code'/><category term='structure'/><category term='ubuntu'/><category term='longitude'/><category term='remote gdb'/><title>How To by Examples</title><subtitle type='html'>simple examples of how to</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>94</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;DkQNQX4-fyp7ImA9WhRTE0U.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-6523311562904352270</id><published>2011-11-03T22:23:00.000-07:00</published><updated>2011-11-03T22:26:30.057-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-03T22:26:30.057-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='whiptail'/><title>[Linux] whiptail simple example</title><content type='html'>Simple whiptail example.&lt;br /&gt;&lt;br /&gt;#! /bin/bash&lt;br /&gt;if (whiptail --title "PPP Configuration" --backtitle "Welcome to SEUL" --yesno "&lt;br /&gt;Do you want to configure your PPP connection?"  10 40 )&lt;br /&gt;then &lt;br /&gt;        echo -e "\nWell, you better get busy!\n"&lt;br /&gt;elif    (whiptail --title "PPP Configuration" --backtitle "Welcome to&lt;br /&gt;SEUL" --yesno "           Are you sure?" 7 40)&lt;br /&gt;        then&lt;br /&gt;                echo -e "\nGood, because I can't do that yet!\n"&lt;br /&gt;        else&lt;br /&gt;                echo -e "\nToo bad, I can't do that yet\n"&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Credit goes to http://archives.seul.org/seul/project/Feb-1998/msg00069.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-6523311562904352270?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/6523311562904352270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/linux-whiptail-simple-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/6523311562904352270?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/6523311562904352270?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/linux-whiptail-simple-example.html' title='[Linux] whiptail simple example'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkINR3o_eyp7ImA9WhRTEkQ.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-9115486323567623788</id><published>2011-11-02T21:26:00.000-07:00</published><updated>2011-11-02T21:29:56.443-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-02T21:29:56.443-07:00</app:edited><title>[Ubuntu] ccache</title><content type='html'>compiler caching for gcc, g++&lt;br /&gt;&lt;br /&gt;here goes an example&lt;br /&gt;&lt;br /&gt;$ sudo apt-get install ccache&lt;br /&gt;&lt;br /&gt;$ PATH=$PATH:/usr/lib/ccache&lt;br /&gt;&lt;br /&gt;next time you compile with gcc, g++, it is faster&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-9115486323567623788?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/9115486323567623788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/ubuntu-ccache.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/9115486323567623788?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/9115486323567623788?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/ubuntu-ccache.html' title='[Ubuntu] ccache'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUENRHs5eCp7ImA9WhRTEkQ.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-6592239908077357393</id><published>2011-11-02T20:41:00.000-07:00</published><updated>2011-11-02T21:14:55.520-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-02T21:14:55.520-07:00</app:edited><title>[Error] Package sun-java6-jdk is not available, but is referred to by another package.</title><content type='html'>&lt;div&gt;Ubuntu 11.10 (Oreinic)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If this error happens, just follow this.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# note that we use lucid repo, although we use oreinic, it works for me anyway&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;then&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ sudo apt-get update&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ sudo apt-get install sun-java6-jdk&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-6592239908077357393?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/6592239908077357393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/package-sun-java6-jdk-is-not-available.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/6592239908077357393?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/6592239908077357393?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/package-sun-java6-jdk-is-not-available.html' title='[Error] Package sun-java6-jdk is not available, but is referred to by another package.'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CU4GR3k9fCp7ImA9WhRTEkU.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-1795768738014271647</id><published>2011-11-02T18:21:00.000-07:00</published><updated>2011-11-02T18:32:06.764-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-02T18:32:06.764-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='screen'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title>[Linux] screen simple how to by example</title><content type='html'>Assume you have 'a remote' and 'a local'.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;At the remote, you access via ssh and launch 'screen -S test'.&lt;/div&gt;&lt;div&gt;Then, you will see a terminal-look which is no difference, but in background, there are lot of difference.&lt;/div&gt;&lt;div&gt;First, this terminal-look is not the ssh session that you connect but the session stored in the remote itself (i.e., screen session). &lt;/div&gt;&lt;div&gt;The difference is that although the ssh session dies unexpectedly, screen session does not die.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can whenever connect this session by screen command.&lt;/div&gt;&lt;div&gt;Here are the most frequently used screen commands&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;screen -S test (create a new screen session named as 'test')&lt;/div&gt;&lt;div&gt;screen -ls (list the currently created screen sessions)&lt;/div&gt;&lt;div&gt;the results would look like this&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;16373.test1&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;(11/03/2011 10:29:08 AM)&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;(Multi, detached)&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;15342.test2&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;(11/03/2011 10:30:08 AM)&lt;span class="Apple-tab-span" style="white-space: pre; "&gt; &lt;/span&gt;(Multi, attached)&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Multi means that multiple attachments are possible. &lt;/div&gt;&lt;div&gt;Attached means that this session is already attached by someone. &lt;/div&gt;&lt;div&gt;If you want to join the attached session, you should use screen -x.&lt;/div&gt;&lt;div&gt;If you want to join the detached session, you should use screen -r.&lt;/div&gt;&lt;div&gt;For example&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ screen -r test1 #reattaching screen session&lt;/div&gt;&lt;div&gt;$ screen -x test2 #attach the currently attached screen session (it looks like a remote desktop of terminal version)&lt;/div&gt;&lt;div&gt;In order to use screen -x, make sure that it is Multi.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;At the screen session, if you type 'exit' then the screen session quits.&lt;/div&gt;&lt;div&gt;If you just want to leave the session without quiting it, you type Ctrl+A  and d.&lt;/div&gt;&lt;div&gt;it means Detaching from the current screen session.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-1795768738014271647?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/1795768738014271647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/linux-screen-simple-how-to-by-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/1795768738014271647?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/1795768738014271647?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/linux-screen-simple-how-to-by-example.html' title='[Linux] screen simple how to by example'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DE4NQX05eyp7ImA9WhRTEk4.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-4764218882219418891</id><published>2011-11-02T05:26:00.000-07:00</published><updated>2011-11-02T05:29:50.323-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-02T05:29:50.323-07:00</app:edited><title>[Latex] error ! I can't find file `pcrr7t'.</title><content type='html'>&lt;pre style="outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; background-color: rgb(247, 247, 241); "&gt;&lt;span class="Apple-style-span"  style="font-size: 12px; line-height: 18px; white-space: normal;"&gt;&lt;b&gt;If you encounter the following error " ! I can't find file `pcrr7t'. " while you compile a tex in ubuntu, try this&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; background-color: rgb(247, 247, 241); "&gt;&lt;span class="Apple-style-span"  style="font-size: 12px; line-height: 18px; white-space: normal;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; background-color: rgb(247, 247, 241); "&gt;&lt;span class="Apple-style-span"  style="font-size: 12px; line-height: 18px; white-space: normal;"&gt;&lt;b&gt;sudo apt-get install texlive-fonts-recommended&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; background-color: rgb(247, 247, 241); "&gt;&lt;span class="Apple-style-span"  style="font-size: 12px; line-height: 18px; white-space: normal;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style="outline-width: 0px; outline-style: initial; outline-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; vertical-align: baseline; background-color: rgb(247, 247, 241); "&gt;&lt;span class="Apple-style-span"  style="font-size: 12px; line-height: 18px; white-space: normal;"&gt;&lt;b&gt;then try again&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-4764218882219418891?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/4764218882219418891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/latex-error-i-cant-find-file-pcrr7t.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/4764218882219418891?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/4764218882219418891?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/latex-error-i-cant-find-file-pcrr7t.html' title='[Latex] error ! I can&apos;t find file `pcrr7t&apos;.'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEIGSX4yfCp7ImA9WhRTEk4.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-3098893136227910388</id><published>2011-11-02T05:20:00.000-07:00</published><updated>2011-11-02T05:22:08.094-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-02T05:22:08.094-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu 11.10'/><category scheme='http://www.blogger.com/atom/ns#' term='workspace'/><title>[Ubuntu] Expanding workspace in Ubuntu 11.10</title><content type='html'>first install compizconfig-settings-manager&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ sudo apt-get install  compizconfig-settings-manager&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;then&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;# for vertical size&lt;/div&gt;&lt;div&gt;$ gconftool-2 --type=int --set /apps/compiz-1/general/screen0/options/vsize 4&lt;/div&gt;&lt;div&gt;$ gconftool-2 --type=int --set /apps/compiz-1/general/screen0/options/hsize 4&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-3098893136227910388?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/3098893136227910388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/ubuntu-expanding-workspace-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/3098893136227910388?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/3098893136227910388?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/ubuntu-expanding-workspace-in-ubuntu.html' title='[Ubuntu] Expanding workspace in Ubuntu 11.10'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Dk4GRH49fyp7ImA9WhRTEk4.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-3354352919159542565</id><published>2011-11-02T04:44:00.000-07:00</published><updated>2011-11-02T04:55:25.067-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-02T04:55:25.067-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='layout'/><category scheme='http://www.blogger.com/atom/ns#' term='terminator'/><title>[Linux] terminator restoring layout</title><content type='html'>Terminator version above 0.91&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;1) open up a terminator.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;2) split the terminals the way you want&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;3) left click, and choose preferences&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;4) go to the layouts tab&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;5) at the left bottom, click add button&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;6) write a name for adding layout (for example, test)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;7) now launch terminator at any terminal with the added layout&lt;/div&gt;&lt;div&gt;    ( e.g., terimnator -l test)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-3354352919159542565?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/3354352919159542565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/linux-terminator-restoring-layout.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/3354352919159542565?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/3354352919159542565?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/linux-terminator-restoring-layout.html' title='[Linux] terminator restoring layout'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEQGQXo4eCp7ImA9WhRTEkw.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-2051624135482867571</id><published>2011-11-01T23:40:00.000-07:00</published><updated>2011-11-01T23:45:20.430-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-01T23:45:20.430-07:00</app:edited><title>[Linux] Tip for assuring download file</title><content type='html'>In some projects, they give tutorials about how to download and install.&lt;div&gt;Some of them also provide with checksum (such as the following)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: rgb(255, 255, 255); "&gt;The SHA-1 checksum for repo is e1fd3bef059d152edf4d0522590725d317bc637f&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;you can easily verify the checksum by various sum binaries such as md5sum, sha1sum, etc&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ sha1sum bin/repo&lt;/div&gt;&lt;div&gt;e1fd3bef059d152edf4d0522590725d317bc637f  bin/repo&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;it is useful in the sense that the downloaded file is not corrupted but also useful to find out that the downloaded file is right on track on without any further update on the project since fast evolving project, there could be un-noted changes which brings you to the hell of install and configuration bugs&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-2051624135482867571?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/2051624135482867571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/linux-tip-for-assuring-download-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/2051624135482867571?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/2051624135482867571?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/linux-tip-for-assuring-download-file.html' title='[Linux] Tip for assuring download file'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUAESH46fCp7ImA9WhRTEk0.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-3919065923835318938</id><published>2011-11-01T19:14:00.000-07:00</published><updated>2011-11-01T21:21:49.014-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-11-01T21:21:49.014-07:00</app:edited><title>[Android] services</title><content type='html'>&lt;b&gt;racoon service&lt;/b&gt;: acoon speaks the IKE (ISAKMP/Oakley) key management protocol, to establish security associations with other hosts. The SPD (Security Policy Database) in the kernel usually triggers racoon.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://linux.die.net/man/8/racoon"&gt;http://linux.die.net/man/8/racoon&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;drm service:&lt;/b&gt; stands for digital rights management for protecting contents.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;dbus service&lt;/b&gt;: dbus (Desktop Bus) is a simple inter-process communication (IPC) open-source system for software applications to communicate with one another.  An implementation of dbus supports most POSIX operating systems. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;http://en.wikipedia.org/wiki/D-Bus&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;zygote service&lt;/b&gt;: this service half-initializes the android apps and if the android app is launching (e.g., clicked by user) the other half is initialized using zygote service.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-3919065923835318938?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/3919065923835318938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/android-services.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/3919065923835318938?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/3919065923835318938?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/11/android-services.html' title='[Android] services'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYNQnY6cSp7ImA9WhRTEU8.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-7595705077872422267</id><published>2011-10-31T22:25:00.000-07:00</published><updated>2011-10-31T22:59:53.819-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-31T22:59:53.819-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='cp'/><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title>[Android] can't create '/system/bin/busybox': read-only filesystem</title><content type='html'>&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: AppleGothic, Dotum, sans-serif; font-size: 12px; line-height: 19px; background-color: rgb(255, 255, 255); "&gt;You just need to change the read-only option of the mounted filesystem.  (FYI it uses yaffs2 filesystem)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: AppleGothic, Dotum, sans-serif; font-size: 12px; line-height: 19px; background-color: rgb(255, 255, 255); "&gt;In my case,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: AppleGothic, Dotum, sans-serif; font-size: 12px; line-height: 19px; background-color: rgb(255, 255, 255); "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: AppleGothic, Dotum, sans-serif; font-size: 12px; line-height: 19px; background-color: rgb(255, 255, 255); "&gt;$ &lt;/span&gt;&lt;b style="font-size: 12px; line-height: 19px; text-align: justify; background-color: rgb(255, 255, 255); font-family: 'courier new', monospace; "&gt;adb shell&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: AppleGothic, Dotum, sans-serif; font-size: 12px; line-height: 19px; text-align: justify; background-color: rgb(255, 255, 255); "&gt;$ &lt;/span&gt;&lt;b style="font-family: AppleGothic, Dotum, sans-serif; font-size: 12px; line-height: 19px; text-align: justify; background-color: rgb(255, 255, 255); "&gt;&lt;span style="font-family: 'courier new', monospace; "&gt;su&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: AppleGothic, Dotum, sans-serif; font-size: 12px; line-height: 19px; text-align: justify; background-color: rgb(255, 255, 255); "&gt;$ &lt;/span&gt;&lt;b style="font-size: 12px; line-height: 19px; text-align: justify; background-color: rgb(255, 255, 255); font-family: 'courier new', monospace; "&gt;mount -o rw,remount /dev/block/mmcblk0p4 /system&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="font-size: 12px; line-height: 19px; text-align: justify; background-color: rgb(255, 255, 255); font-family: 'courier new', monospace; "&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="font-size: 12px; line-height: 19px; text-align: justify; background-color: rgb(255, 255, 255); font-family: 'courier new', monospace; "&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="font-size: 12px; line-height: 19px; text-align: justify; background-color: rgb(255, 255, 255); font-family: 'courier new', monospace; "&gt;application: how to change init.rc&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="font-size: 12px; line-height: 19px; text-align: justify; background-color: rgb(255, 255, 255); font-family: 'courier new', monospace; "&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre style="text-align: -webkit-auto; background-color: rgb(255, 255, 255); font-size: medium; "&gt;$ mount -o remount,rw rootfs /&lt;/pre&gt;&lt;pre style="text-align: -webkit-auto; background-color: rgb(255, 255, 255); font-size: medium; "&gt;&lt;/pre&gt;&lt;pre style="text-align: -webkit-auto; background-color: rgb(255, 255, 255); font-size: medium; "&gt;and change it!!&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;b style="font-size: 12px; line-height: 19px; text-align: justify; background-color: rgb(255, 255, 255); font-family: 'courier new', monospace; "&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-7595705077872422267?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/7595705077872422267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/android-cant-create-systembinbusybox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/7595705077872422267?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/7595705077872422267?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/android-cant-create-systembinbusybox.html' title='[Android] can&apos;t create &apos;/system/bin/busybox&apos;: read-only filesystem'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkECQ3k5cCp7ImA9WhRTEU8.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-7217490090640562609</id><published>2011-10-31T22:16:00.000-07:00</published><updated>2011-10-31T22:17:42.728-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-31T22:17:42.728-07:00</app:edited><title>[Android] connecting android in linux</title><content type='html'>first, download android-sdk and use&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ sudo adb start-server # you should start the server as root&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ adb shell # you can connect to the android shell &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-7217490090640562609?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/7217490090640562609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/android-connecting-android-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/7217490090640562609?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/7217490090640562609?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/android-connecting-android-in-linux.html' title='[Android] connecting android in linux'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;C0IER387fip7ImA9WhdaGUg.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-2127580387968832652</id><published>2011-10-29T22:11:00.001-07:00</published><updated>2011-10-29T22:11:46.106-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-29T22:11:46.106-07:00</app:edited><title>[PYTHON] waiting for key input</title><content type='html'>raw_input("Press Enter to continue")&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-2127580387968832652?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/2127580387968832652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/python-waiting-for-key-input.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/2127580387968832652?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/2127580387968832652?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/python-waiting-for-key-input.html' title='[PYTHON] waiting for key input'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0QFSXw6fip7ImA9WhdaGUk.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-4683291058682081354</id><published>2011-10-29T21:34:00.000-07:00</published><updated>2011-10-29T21:35:18.216-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-29T21:35:18.216-07:00</app:edited><title>[Openstack] QEMU at most memory 2047 occurs</title><content type='html'>try to use euca-run-instance xxx -k key -t m1.tiny&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;m1.tiny only requests 512MB memory&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-4683291058682081354?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/4683291058682081354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-qemu-at-most-memory-2047.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/4683291058682081354?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/4683291058682081354?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-qemu-at-most-memory-2047.html' title='[Openstack] QEMU at most memory 2047 occurs'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEINQ389eSp7ImA9WhdaGUk.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-8637354247512845845</id><published>2011-10-29T20:48:00.000-07:00</published><updated>2011-10-29T20:49:52.161-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-29T20:49:52.161-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='openstack'/><category scheme='http://www.blogger.com/atom/ns#' term='dnsmasq'/><title>[Openstack] dnsmasq bind error</title><content type='html'>If you see bind error while running openstack nova-compute or nova-network,&lt;div&gt;it probably is the generic dnsmasq launched by /etc/init.d&lt;/div&gt;&lt;div&gt;Just /etc/init.d/dnsmasq stop&lt;/div&gt;&lt;div&gt;and try again&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-8637354247512845845?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/8637354247512845845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-dnsmasq-bind-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/8637354247512845845?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/8637354247512845845?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-dnsmasq-bind-error.html' title='[Openstack] dnsmasq bind error'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CEEMQX8yfCp7ImA9WhdaGEU.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-5882627016742346842</id><published>2011-10-29T03:01:00.000-07:00</published><updated>2011-10-29T03:04:40.194-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-29T03:04:40.194-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='openstack'/><category scheme='http://www.blogger.com/atom/ns#' term='rabbitmq'/><category scheme='http://www.blogger.com/atom/ns#' term='invalid credentials'/><title>[Openstack] rabbitmq rejects with invalid credentials</title><content type='html'>When rabbitmq log shows invalid credentials and rejects nova-services to join the cluster, &lt;div&gt;it probably means that the password is wrong.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;nova-services in default use guest/guest (id/pw) for rabbitmq.&lt;/div&gt;&lt;div&gt;you can add (or change) the a user (or pw) with the following commands&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;add a user guest/guest&lt;/div&gt;&lt;div&gt;$ rabbitmqctl add_user guest guest&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;change the pw&lt;/div&gt;&lt;div&gt;$ rabbitmqctl change_password guest guest&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-5882627016742346842?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/5882627016742346842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-rabbitmq-rejects-with-invalid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/5882627016742346842?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/5882627016742346842?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-rabbitmq-rejects-with-invalid.html' title='[Openstack] rabbitmq rejects with invalid credentials'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkYDQXYyeyp7ImA9WhdaGE0.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-5180785651092138683</id><published>2011-10-28T05:15:00.001-07:00</published><updated>2011-10-28T05:16:10.893-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-28T05:16:10.893-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='openstack'/><title>[Openstack] Suggestion on the tight correlation to the mysql database and nove-service processes</title><content type='html'>If we stop the service, such as 'stop nova-network'&lt;br /&gt;it would be appreciated if the corresponding service is deleted in mysql services table in nova.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-5180785651092138683?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/5180785651092138683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-suggestion-on-tight.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/5180785651092138683?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/5180785651092138683?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-suggestion-on-tight.html' title='[Openstack] Suggestion on the tight correlation to the mysql database and nove-service processes'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkcASXY5fyp7ImA9WhdaGE0.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-1911050305771832628</id><published>2011-10-28T05:09:00.000-07:00</published><updated>2011-10-28T05:14:08.827-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-28T05:14:08.827-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='openstack'/><title>[Openstack] nova.conf configuration</title><content type='html'>in nova.conf configuration flag, routing_source_ip flag should use 'numbered-ip' such as 192.168.1.1, but not the host name.&lt;br /&gt;I thinkg openstack guys try to tell us by naming the flag as 'routing_source_IP'.&lt;br /&gt;Since it is used as the input param to iptable-restore, thus if you use host name on 'routing_source_ip' nova-network will unexpected die.&lt;br /&gt;If you try to run the nova-network again, it will be on deadlock, since the module that performs this use external lock in /var/log/nova/ and hangs in ps aux.&lt;br /&gt;This makes you think nova-network is working fine but NO IT IS NOT.&lt;br /&gt;&lt;br /&gt;It takes half a day to figure out what the heck is going on.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-1911050305771832628?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/1911050305771832628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-novaconf-configuration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/1911050305771832628?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/1911050305771832628?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-novaconf-configuration.html' title='[Openstack] nova.conf configuration'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUABQ3o_fyp7ImA9WhdaGE0.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-1488484115090574185</id><published>2011-10-28T05:06:00.000-07:00</published><updated>2011-10-28T05:09:12.447-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-28T05:09:12.447-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='openstack'/><title>[OpenStack] possible self-deadlock?</title><content type='html'>Openstack manages external lock in /var/lock/nova directories.&lt;br /&gt;&lt;br /&gt;If a service, (in my case, nova-network) dies while it is acquiring the lock, nova-network never be able to run properly since it is waiting for the lock that will be never released. (since the process that acquires the lock was terminated unexpectedly).&lt;br /&gt;&lt;br /&gt;Openstack servies should release all locks with 'launch-all' command things like that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-1488484115090574185?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/1488484115090574185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-possible-self-deadlock.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/1488484115090574185?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/1488484115090574185?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-possible-self-deadlock.html' title='[OpenStack] possible self-deadlock?'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CkAGQH47eip7ImA9WhdaGE0.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-2635508105704485186</id><published>2011-10-28T04:17:00.000-07:00</published><updated>2011-10-28T04:18:41.002-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-28T04:18:41.002-07:00</app:edited><title>[OpenStack] nova-xxx who registers itself to DB as service?</title><content type='html'>At function nova/service.py, line around 143&lt;br /&gt;&lt;br /&gt;            service_ref = db.service_get_by_args(ctxt,&lt;br /&gt;                                                 self.host,&lt;br /&gt;                                                 self.binary)&lt;br /&gt;&lt;br /&gt;function!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-2635508105704485186?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/2635508105704485186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-nova-xxx-who-registers-itself.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/2635508105704485186?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/2635508105704485186?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/openstack-nova-xxx-who-registers-itself.html' title='[OpenStack] nova-xxx who registers itself to DB as service?'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;AkADSXg8fyp7ImA9WhdaF0s.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-4949135188815557893</id><published>2011-10-27T19:25:00.000-07:00</published><updated>2011-10-27T19:26:18.677-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-27T19:26:18.677-07:00</app:edited><title>[Python] Starting document for python paste</title><content type='html'>About WSGI application and WSGI middleware: http://pythonpaste.org/url-parsing-with-wsgi.html&lt;br /&gt;&lt;br /&gt;About deployment and ini-configuration : http://pythonpaste.org/deploy/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-4949135188815557893?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/4949135188815557893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/python-starting-document-for-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/4949135188815557893?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/4949135188815557893?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/python-starting-document-for-python.html' title='[Python] Starting document for python paste'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Ck8HQHo9fyp7ImA9WhdaFk8.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-3486015459637293517</id><published>2011-10-26T02:19:00.000-07:00</published><updated>2011-10-26T02:20:31.467-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-26T02:20:31.467-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='resizing partition'/><title>How To Resize ext3 Partitions Without Losing Data</title><content type='html'>&lt;div&gt;From &lt;a href="http://www.howtoforge.com/linux_resizing_ext3_partitions"&gt;http://www.howtoforge.com/linux_resizing_ext3_partitions&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: verdana, sans-serif; font-size: 12px; line-height: 18px; background-color: rgb(255, 255, 255); "&gt;&lt;h3 style="padding-top: 0px; padding-right: 0px; padding-bottom: 0.2em; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); font-family: arial, verdana, sans-serif; font-size: 14px; font-weight: 700; "&gt;1 Preliminary Note&lt;/h3&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;(I run all the commands in this tutorial as the root user, so make sure you're logged in as root. If you are on a Ubuntu system, you can become root like this:&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;sudo su&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;)&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;I have tested this on a Ubuntu Edgy Eft desktop system that has all files in one large partition (around 10 GB, device &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt;). The partitioning looks like this:&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;df -h&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;/dev/sda1             9.5G  4.1G  4.9G  46% /&lt;br /&gt;varrun                 94M  132K   94M   1% /var/run&lt;br /&gt;varlock                94M     0   94M   0% /var/lock&lt;br /&gt;udev                   10M   52K   10M   1% /dev&lt;br /&gt;devshm                 94M     0   94M   0% /dev/shm&lt;br /&gt;lrm                    94M   18M   77M  19% /lib/modules/2.6.17-10-generic/volatile&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;The partition that is to be resized must be unmounted when we do the resizing; obviously this is not possible if this is the partition that holds all important system files like in this example. Therefore we download a Live Linux-CD such as &lt;a mce_real_href="http://www.knopper.net/knoppix-mirrors/index-en.html" href="http://www.knopper.net/knoppix-mirrors/index-en.html" target="_blank" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 51, 153); text-decoration: underline; "&gt;Knoppix&lt;/a&gt; from which we boot later on (if you have physical access to the system). If it is a remote system that you don't have physical access to, you need a rescue system on that system (a lot of hosting companies offer dedicated servers with rescue systems nowadays) that you can boot into (instead of Knoppix), and this rescue system must have the following tools: &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fdisk&lt;/span&gt;, &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;umount&lt;/span&gt;, &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fsck&lt;/span&gt;,&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;tune2fs&lt;/span&gt;, &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;e2fsck&lt;/span&gt;, &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;resize2fs&lt;/span&gt;.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;If the partition that you want to resize doesn't hold any system files (such as &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/home&lt;/span&gt; partitions, partitions for backups, etc.), you don't need a Knoppix Live-CD or a rescue system, because all steps can be run from the original system.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;If you want to resize partitions on production systems, please back up your data before, because it is possible you lose all your data if you don't calculate the size of your new partition correctly (especially when shrinking a partition)! You have been warned! Tutorials about backups can be found here:&lt;a mce_real_href="http://www.howtoforge.com/taxonomy_menu/1/34" href="http://www.howtoforge.com/taxonomy_menu/1/34" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 51, 153); text-decoration: underline; "&gt;http://www.howtoforge.com/taxonomy_menu/1/34&lt;/a&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;I'm going to resize &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt; in this tutorial. If your partition is named differently, please replace &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt; with your own device (e.g. &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/hda5&lt;/span&gt;, &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sdb3&lt;/span&gt;, etc.).&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt; &lt;/p&gt;&lt;h3 style="padding-top: 0px; padding-right: 0px; padding-bottom: 0.2em; padding-left: 0px; margin-top: 1em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); font-family: arial, verdana, sans-serif; font-size: 14px; font-weight: 700; "&gt;2 Shrinking An ext3 Partition&lt;/h3&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;This chapter is about shrinking an ext3 partition. I want to shrink&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt; /dev/sda1&lt;/span&gt; in this example. First we gather some details on our original system:&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;df&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Filesystem           1K-blocks      Used Available Use% Mounted on&lt;br /&gt;/dev/sda1              9859036   4234908   5123304  46% /&lt;br /&gt;varrun                   95480       132     95348   1% /var/run&lt;br /&gt;varlock                  95480         0     95480   0% /var/lock&lt;br /&gt;udev                     10240        52     10188   1% /dev&lt;br /&gt;devshm                   95480         0     95480   0% /dev/shm&lt;br /&gt;lrm                      95480     17580     77900  19% /lib/modules/2.6.17-10-generic/volatile&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;df -B 4k&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Filesystem           4K-blocks      Used Available Use% Mounted on&lt;br /&gt;/dev/sda1              2464759   1058727   1280826  46% /&lt;br /&gt;varrun                   23870        33     23837   1% /var/run&lt;br /&gt;varlock                  23870         0     23870   0% /var/lock&lt;br /&gt;udev                      2560        13      2547   1% /dev&lt;br /&gt;devshm                   23870         0     23870   0% /dev/shm&lt;br /&gt;lrm                      23870      4395     19475  19% /lib/modules/2.6.17-10-generic/volatile&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;df -h&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;/dev/sda1             9.5G  4.1G  4.9G  46% /&lt;br /&gt;varrun                 94M  132K   94M   1% /var/run&lt;br /&gt;varlock                94M     0   94M   0% /var/lock&lt;br /&gt;udev                   10M   52K   10M   1% /dev&lt;br /&gt;devshm                 94M     0   94M   0% /dev/shm&lt;br /&gt;lrm                    94M   18M   77M  19% /lib/modules/2.6.17-10-generic/volatile&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fdisk -l&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;&lt;br /&gt;Disk /dev/sda: 10.7 GB, 10737418240 bytes&lt;br /&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;  Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sda1   *           1        1247    10016496   83  Linux&lt;br /&gt;/dev/sda2            1248        1305      465885    5  Extended&lt;br /&gt;/dev/sda5            1248        1305      465853+  82  Linux swap / Solaris&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fdisk -s /dev/sda1&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;10016496&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Then we shut down the system and boot into our Knoppix Live-CD (or your rescue system) (if the partition you want to resize doesn't hold any system files, you can do everything from the original system; the steps are the same, just omit booting into Knoppix/your rescue system).&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;shutdown -r now&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;After Knoppix has booted, open a terminal and become root by running&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;su&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt; should be unmounted by default, but you can run&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;umount /dev/sda1&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;to go sure.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Then run&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fsck -n /dev/sda1&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;The output looks like this:&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fsck 1.38 (30-Jun-2005)&lt;br /&gt;e2fsck 1.38 (30-Jun-2005)&lt;br /&gt;/dev/sda1: clean, 159037/1254176 files, 1095299/2504124 blocks&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Next we remove the journal from &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt;, thus turning it into an ext2 partition:&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;tune2fs -O ^has_journal /dev/sda1&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;The output looks like this:&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;tune2fs 1.38 (30-Jun-2005)&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Then run&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;e2fsck -f /dev/sda1&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;e2fsck 1.38 (30-Jun-2005)&lt;br /&gt;Pass 1: Checking inodes, blocks, and sizes&lt;br /&gt;Pass 2: Checking directory structure&lt;br /&gt;Pass 3: Checking directory connectivity&lt;br /&gt;Pass 4: Checking reference counts&lt;br /&gt;Pass 5: Checking group summary information&lt;br /&gt;/dev/sda1: 164178/1254176 files (0.6% non-contiguous), 1051617/2504124 blocks&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Now we resize our file system with &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;resize2fs&lt;/span&gt;. &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;resize2fs&lt;/span&gt; can resize ext2 file systems, but not ext3 file systems, that's why we had to turn &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt; to ext2. Currently, 4.1GB are used on &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt; (see the &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;df -h&lt;/span&gt; output above), So it's safe to shrink it from 10GB to about 6GB (if you make it smaller than 4.1GB, you will lose data!). Therefore we run&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;resize2fs /dev/sda1 6000M&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;The output is as follows:&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;resize2fs 1.38 (30-Jun-2005)&lt;br /&gt;Resizing the filesystem on /dev/sda1 to 1536000 (4k) blocks.&lt;br /&gt;The filesystem on /dev/sda1 is now 1536000 blocks long.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Please take note of the amount of blocks (&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;1536000&lt;/span&gt;) and their size (&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;4k&lt;/span&gt;). We need that soon.&lt;/p&gt;&lt;div id="adrectangleb_flex" align="center" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; height: 252px; width: 305px; "&gt;&lt;div id="adrectangleb" align="center" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; height: 252px; width: 305px; "&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="adibm300x600_flex" align="center" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; width: 300px; height: 5px; "&gt;&lt;div id="adibm300x600" align="center" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; height: 5px; width: 0px; "&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Now we delete our &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt; partition (don't be afraid, no data will be lost) and create a new, smaller one (but still big enough to hold our resized file system!). We can do this with&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt; fdisk&lt;/span&gt;:&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fdisk /dev/sda&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;(Yes, it's &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda&lt;/span&gt;, not &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt;.)&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;The number of cylinders for this disk is set to 1305.&lt;br /&gt;There is nothing wrong with that, but this is larger than 1024,&lt;br /&gt;and could in certain setups cause problems with:&lt;br /&gt;1) software that runs at boot time (e.g., old versions of LILO)&lt;br /&gt;2) booting and partitioning software from other OSs&lt;br /&gt;  (e.g., DOS FDISK, OS/2 FDISK)&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Type &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;m&lt;/span&gt; to get a list of all commands:&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Command (m for help): m&lt;br /&gt;Command action&lt;br /&gt;  a   toggle a bootable flag&lt;br /&gt;  b   edit bsd disklabel&lt;br /&gt;  c   toggle the dos compatibility flag&lt;br /&gt;  d   delete a partition&lt;br /&gt;  l   list known partition types&lt;br /&gt;  m   print this menu&lt;br /&gt;  n   add a new partition&lt;br /&gt;  o   create a new empty DOS partition table&lt;br /&gt;  p   print the partition table&lt;br /&gt;  q   quit without saving changes&lt;br /&gt;  s   create a new empty Sun disklabel&lt;br /&gt;  t   change a partition's system id&lt;br /&gt;  u   change display/entry units&lt;br /&gt;  v   verify the partition table&lt;br /&gt;  w   write table to disk and exit&lt;br /&gt;  x   extra functionality (experts only)&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Now we delete partition no. 1 (&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt;):&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Command (m for help): d&lt;br /&gt;Partition number (1-5): 1&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Next we create a new &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt; partition. It was a primary partition before, so we choose &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;p&lt;/span&gt; again, and again it is our partition no. 1:&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Command (m for help): n&lt;br /&gt;Command action&lt;br /&gt;  l   logical (5 or over)&lt;br /&gt;  p   primary partition (1-4)&lt;br /&gt;p&lt;br /&gt;Partition number (1-4): 1&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Now comes the crucial part - we are asked about the size of the new partition. The first cylinder is no problem, it is the one from the &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fdisk -l&lt;/span&gt; output at the beginning of this chapter (&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;1&lt;/span&gt;).&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;First cylinder (1-1305, default 1): 1&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;But we don't have a value for the last cylinder of our new partition. Fortunately, we can specify the size in kilobytes (&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;K&lt;/span&gt;), so we calculate the size like this:&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;We multiply the amount of blocks from the &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;resize2fs&lt;/span&gt; output (&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;1536000&lt;/span&gt;) by the size of a block (&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;4k&lt;/span&gt;), and to go sure the partition is big enough, we add 3 to 5% to it (3% was enough for me, but if you want to go sure take 5%):&lt;/p&gt;&lt;p class="highlight" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: rgb(255, 0, 0); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 12px; text-decoration: underline; "&gt;1536000 * 4k * 1.03 = 6328320k&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;So we prepend that value with a &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;+&lt;/span&gt; sign and replace the small &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;k&lt;/span&gt; with a capital one (&lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;K&lt;/span&gt;) and enter it:&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Last cylinder or +size or +sizeM or +sizeK (1-1247, default 1247): +6328320K&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Our original &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt; had the bootable flag (see the &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fdisk -l&lt;/span&gt; output from the beginning of this chapter), so we must add it to our new &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt; again:&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Command (m for help): a&lt;br /&gt;Partition number (1-5): 1&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Now let's write our new partition table and exit &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fdisk&lt;/span&gt;:&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Command (m for help): w&lt;br /&gt;The partition table has been altered!&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Calling ioctl() to re-read partition table.&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;WARNING: Re-reading the partition table failed with error 16: Device or resource busy.&lt;br /&gt;The kernel still uses the old table.&lt;br /&gt;The new table will be used at the next reboot.&lt;br /&gt;Syncing disks.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Now we reboot the system, and again we boot into our Knoppix system (rescue system; original system if resized partition doesn't hold system files):&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;shutdown -r now&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Become root again (on Knoppix run&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;su&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;)&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;and then run this:&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fsck -n /dev/sda1&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;The output should look like this:&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fsck 1.38 (30-Jun-2005)&lt;br /&gt;e2fsck 1.38 (30-Jun-2005)&lt;br /&gt;/dev/sda1: clean, 159036/765536 files, 1047239/1536000 blocks&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Then we create the journal on our new &lt;span class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;/dev/sda1&lt;/span&gt;, thus turning it into an ext3 partition again:&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;tune2fs -j /dev/sda1&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;tune2fs 1.38 (30-Jun-2005)&lt;br /&gt;Creating journal inode: done&lt;br /&gt;This filesystem will be automatically checked every 30 mounts or&lt;br /&gt;0 days, whichever comes first. Use tune2fs -c or -i to override.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;Now we are done. Shut down the system and boot into the &lt;span class="highlight" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); font-family: Georgia, 'Times New Roman', Times, serif; font-size: 12px; text-decoration: underline; "&gt;original system&lt;/span&gt;:&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;shutdown -r now&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; "&gt;If everything goes well, the original system will boot up, and no data has been lost. Now we can gather some details about our new partitioning and compare them with the information we collected at the beginning of this chapter:&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;df&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Filesystem           1K-blocks      Used Available Use% Mounted on&lt;br /&gt;/dev/sda1              6047868   4224140   1639408  73% /&lt;br /&gt;varrun                   95480       132     95348   1% /var/run&lt;br /&gt;varlock                  95480         0     95480   0% /var/lock&lt;br /&gt;udev                     10240        52     10188   1% /dev&lt;br /&gt;devshm                   95480         0     95480   0% /dev/shm&lt;br /&gt;lrm                      95480     17580     77900  19% /lib/modules/2.6.17-10-generic/volatile&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;df -B 4k&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Filesystem           4K-blocks      Used Available Use% Mounted on&lt;br /&gt;/dev/sda1              1511967   1056035    409852  73% /&lt;br /&gt;varrun                   23870        33     23837   1% /var/run&lt;br /&gt;varlock                  23870         0     23870   0% /var/lock&lt;br /&gt;udev                      2560        13      2547   1% /dev&lt;br /&gt;devshm                   23870         0     23870   0% /dev/shm&lt;br /&gt;lrm                      23870      4395     19475  19% /lib/modules/2.6.17-10-generic/volatile&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;df -h&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br /&gt;/dev/sda1             5.8G  4.1G  1.6G  73% /&lt;br /&gt;varrun                 94M  132K   94M   1% /var/run&lt;br /&gt;varlock                94M     0   94M   0% /var/lock&lt;br /&gt;udev                   10M   52K   10M   1% /dev&lt;br /&gt;devshm                 94M     0   94M   0% /dev/shm&lt;br /&gt;lrm                    94M   18M   77M  19% /lib/modules/2.6.17-10-generic/volatile&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fdisk -l&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;&lt;br /&gt;Disk /dev/sda: 10.7 GB, 10737418240 bytes&lt;br /&gt;255 heads, 63 sectors/track, 1305 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;  Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sda1   *           1         789     6337611   83  Linux&lt;br /&gt;/dev/sda2            1248        1305      465885    5  Extended&lt;br /&gt;/dev/sda5            1248        1305      465853+  82  Linux swap / Solaris&lt;/p&gt;&lt;p class="command" style="padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; border-left-style: dashed; border-top-color: rgb(47, 111, 171); border-right-color: rgb(47, 111, 171); border-bottom-color: rgb(47, 111, 171); border-left-color: rgb(47, 111, 171); color: black; background-color: rgb(249, 249, 249); line-height: 1.1em; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;fdisk -s /dev/sda1&lt;/p&gt;&lt;p class="system" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; color: black; font-family: 'Courier New', Courier, mono; font-size: 12px; font-style: italic; "&gt;6337611&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-3486015459637293517?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/3486015459637293517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/how-to-resize-ext3-partitions-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/3486015459637293517?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/3486015459637293517?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/how-to-resize-ext3-partitions-without.html' title='How To Resize ext3 Partitions Without Losing Data'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DUYNRHw9eyp7ImA9WhdaFUk.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-5844962090584742917</id><published>2011-10-25T05:50:00.000-07:00</published><updated>2011-10-25T05:53:15.263-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-25T05:53:15.263-07:00</app:edited><title>[Linux] Managing users and groups</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;cat /etc/passwd&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-5844962090584742917?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/5844962090584742917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/linux-managing-users-and-groups.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/5844962090584742917?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/5844962090584742917?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/linux-managing-users-and-groups.html' title='[Linux] Managing users and groups'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>5</thr:total></entry><entry gd:etag='W/&quot;DEYARno6fip7ImA9WhdaEko.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-3682546358546644393</id><published>2011-10-22T01:57:00.000-07:00</published><updated>2011-10-22T02:35:47.416-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-22T02:35:47.416-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='/dev/mem'/><category scheme='http://www.blogger.com/atom/ns#' term='/dev/kmem'/><title>[Linux Kernel] The difference between /dev/mem and /dev/kmem</title><content type='html'>/dev/mem is the character device for physical memory and /dev/kmem is the character device for kernel virtual address space&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Also check out /dev/fb* for frame-buffer memory (video).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Would it be possible to change the hostname through accessing /dev/mem?&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-3682546358546644393?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/3682546358546644393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/linux-kernel-difference-between-devmem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/3682546358546644393?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/3682546358546644393?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/linux-kernel-difference-between-devmem.html' title='[Linux Kernel] The difference between /dev/mem and /dev/kmem'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;D0EDRX4yeip7ImA9WhdaEUU.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-2753540350814809434</id><published>2011-10-21T01:24:00.000-07:00</published><updated>2011-10-21T01:27:54.092-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-21T01:27:54.092-07:00</app:edited><category scheme='http://www.blogger.com/atom/ns#' term='source code analysis'/><category scheme='http://www.blogger.com/atom/ns#' term='function backtrace'/><category scheme='http://www.blogger.com/atom/ns#' term='c'/><title>[Cheating in C] How to know a certain function is called by which function.</title><content type='html'>When you want to know which function calls a function name A(), and there are many other functions that call A(), here is simple cheating.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First, find out the condition that you want to know who calls A() and make a hard coding there like this.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;if( the condition you want )  {&lt;/div&gt;&lt;div&gt;int *a=0;&lt;/div&gt;&lt;div&gt;*a=0;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;and run with GDB&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-2753540350814809434?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/2753540350814809434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/cheating-in-c-how-to-know-certain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/2753540350814809434?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/2753540350814809434?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/cheating-in-c-how-to-know-certain.html' title='[Cheating in C] How to know a certain function is called by which function.'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;D0QMQH44cSp7ImA9WhdaEUU.&quot;'><id>tag:blogger.com,1999:blog-1417685868262630303.post-6451101111764671884</id><published>2011-10-21T01:19:00.000-07:00</published><updated>2011-10-21T01:23:01.039-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-10-21T01:23:01.039-07:00</app:edited><title>[Linux] The difference between block and character device</title><content type='html'>&lt;div&gt;The one big difference is how you handle the device. When you perform open, close, read, write, seek, etc. &lt;/div&gt;&lt;div&gt;For block devices, it reads and writes in the unit of a block of bytes size.&lt;/div&gt;&lt;div&gt;For character devices, it reads and writes in the unit of a byte.&lt;/div&gt;&lt;div&gt;More important thing to remember is that block devices are able to random-access such as hard-disk, but character devices are in stream such as keyboard.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1417685868262630303-6451101111764671884?l=ilovekernel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ilovekernel.blogspot.com/feeds/6451101111764671884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/linux-difference-between-block-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/6451101111764671884?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1417685868262630303/posts/default/6451101111764671884?v=2'/><link rel='alternate' type='text/html' href='http://ilovekernel.blogspot.com/2011/10/linux-difference-between-block-and.html' title='[Linux] The difference between block and character device'/><author><name>jaeyong</name><uri>http://www.blogger.com/profile/11569075085991311857</uri><email>noreply@blogger.com</email></author><thr:total>0</thr:total></entry></feed>