<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>acloudtree &#187; usb</title>
	<atom:link href="http://www.acloudtree.com/tag/usb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.acloudtree.com</link>
	<description>Programming, Computers, Writing, Economics, and Life</description>
	<lastBuildDate>Tue, 07 Feb 2012 00:03:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>(Nerd) How to: Create a DSL (damn small linux) bootable usb thumb drive using Ubuntu 9.10</title>
		<link>http://www.acloudtree.com/nerd-how-to-create-a-dsl-damn-small-linux-bootable-usb-thumb-drive-using-ubuntu-9-10/</link>
		<comments>http://www.acloudtree.com/nerd-how-to-create-a-dsl-damn-small-linux-bootable-usb-thumb-drive-using-ubuntu-9-10/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 14:00:47 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[Damn Small Linux]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[drive]]></category>
		<category><![CDATA[DSL]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/?p=221</guid>
		<description><![CDATA[You will need to download the latest .iso from the Damn Small Linux site. Also, I am running ubuntu 9.10 as my host OS but you should be able to run any linux/unix operating system and the commands should work. 1) Plug in your usb device. 2) Next, open up the terminal application and enter [...]]]></description>
			<content:encoded><![CDATA[<p>You will need to download the latest .iso from the Damn Small Linux site.</p>
<p>Also, I am running ubuntu 9.10 as my host OS but you should be able to run any linux/unix operating system and the commands should work.</p>
<p>1) Plug in your usb device.</p>
<p>2) Next, open up the terminal application and enter the following command. By issuing sudo -i command, you are assuming the identity of root for the rest of the session.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-i</span></pre></div></div>

<p>3) Run the fdisk -l command to look at the devices installed on your system.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># fdisk -l</span></pre></div></div>

<p>4) My output is posted below.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda: <span style="color: #000000;">160.0</span> GB, <span style="color: #000000;">160041885696</span> bytes
<span style="color: #000000;">255</span> heads, <span style="color: #000000;">63</span> sectors<span style="color: #000000; font-weight: bold;">/</span>track, <span style="color: #000000;">19457</span> cylinders
Units = cylinders of <span style="color: #000000;">16065</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span> = <span style="color: #000000;">8225280</span> bytes
Disk identifier: 0x355aa9d3
&nbsp;
   Device Boot      Start         End      Blocks   Id  System
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1   <span style="color: #000000; font-weight: bold;">*</span>           <span style="color: #000000;">1</span>        <span style="color: #000000;">9407</span>    <span style="color: #000000;">75561696</span>    <span style="color: #000000;">7</span>  HPFS<span style="color: #000000; font-weight: bold;">/</span>NTFS
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda2            <span style="color: #000000;">9408</span>       <span style="color: #000000;">18813</span>    <span style="color: #000000;">75553695</span>    <span style="color: #000000;">5</span>  Extended
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda3           <span style="color: #000000;">18814</span>       <span style="color: #000000;">19451</span>     <span style="color: #000000;">5124735</span>   1c  Hidden W95 FAT32 <span style="color: #7a0874; font-weight: bold;">&#40;</span>LBA<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda4           <span style="color: #000000;">19452</span>       <span style="color: #000000;">19457</span>       <span style="color: #000000;">48195</span>   ef  EFI <span style="color: #7a0874; font-weight: bold;">&#40;</span>FAT-<span style="color: #000000;">12</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">16</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">32</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5            <span style="color: #000000;">9408</span>       <span style="color: #000000;">18039</span>    <span style="color: #000000;">69336508</span>+  <span style="color: #000000;">83</span>  Linux
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda6           <span style="color: #000000;">18040</span>       <span style="color: #000000;">18813</span>     <span style="color: #000000;">6217123</span>+  <span style="color: #000000;">82</span>  Linux swap <span style="color: #000000; font-weight: bold;">/</span> Solaris
&nbsp;
Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb: <span style="color: #000000;">4047</span> MB, <span style="color: #000000;">4047502848</span> bytes
<span style="color: #000000;">4</span> heads, <span style="color: #000000;">32</span> sectors<span style="color: #000000; font-weight: bold;">/</span>track, <span style="color: #000000;">61759</span> cylinders
Units = cylinders of <span style="color: #000000;">128</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span> = <span style="color: #000000;">65536</span> bytes
Disk identifier: 0x00000000
&nbsp;
   Device Boot      Start         End      Blocks   Id  System
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1   <span style="color: #000000; font-weight: bold;">*</span>           <span style="color: #000000;">1</span>       <span style="color: #000000;">61759</span>     <span style="color: #000000;">3952560</span>    b  W95 FAT32</pre></div></div>

<p>First you will notice my internal hard drive and the several partitions that are written on it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda: <span style="color: #000000;">160.0</span> GB, <span style="color: #000000;">160041885696</span> bytes
<span style="color: #000000;">255</span> heads, <span style="color: #000000;">63</span> sectors<span style="color: #000000; font-weight: bold;">/</span>track, <span style="color: #000000;">19457</span> cylinders
Units = cylinders of <span style="color: #000000;">16065</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span> = <span style="color: #000000;">8225280</span> bytes
Disk identifier: 0x355aa9d3
&nbsp;
   Device Boot      Start         End      Blocks   Id  System
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1   <span style="color: #000000; font-weight: bold;">*</span>           <span style="color: #000000;">1</span>        <span style="color: #000000;">9407</span>    <span style="color: #000000;">75561696</span>    <span style="color: #000000;">7</span>  HPFS<span style="color: #000000; font-weight: bold;">/</span>NTFS
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda2            <span style="color: #000000;">9408</span>       <span style="color: #000000;">18813</span>    <span style="color: #000000;">75553695</span>    <span style="color: #000000;">5</span>  Extended
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda3           <span style="color: #000000;">18814</span>       <span style="color: #000000;">19451</span>     <span style="color: #000000;">5124735</span>   1c  Hidden W95 FAT32 <span style="color: #7a0874; font-weight: bold;">&#40;</span>LBA<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda4           <span style="color: #000000;">19452</span>       <span style="color: #000000;">19457</span>       <span style="color: #000000;">48195</span>   ef  EFI <span style="color: #7a0874; font-weight: bold;">&#40;</span>FAT-<span style="color: #000000;">12</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">16</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">32</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5            <span style="color: #000000;">9408</span>       <span style="color: #000000;">18039</span>    <span style="color: #000000;">69336508</span>+  <span style="color: #000000;">83</span>  Linux
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda6           <span style="color: #000000;">18040</span>       <span style="color: #000000;">18813</span>     <span style="color: #000000;">6217123</span>+  <span style="color: #000000;">82</span>  Linux swap <span style="color: #000000; font-weight: bold;">/</span> Solaris</pre></div></div>

<p>5) We are primarily concerned about the following segment.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb: <span style="color: #000000;">4047</span> MB, <span style="color: #000000;">4047502848</span> bytes
<span style="color: #000000;">4</span> heads, <span style="color: #000000;">32</span> sectors<span style="color: #000000; font-weight: bold;">/</span>track, <span style="color: #000000;">61759</span> cylinders
Units = cylinders of <span style="color: #000000;">128</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span> = <span style="color: #000000;">65536</span> bytes
Disk identifier: 0x00000000
&nbsp;
   Device Boot      Start         End      Blocks   Id  System
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1   <span style="color: #000000; font-weight: bold;">*</span>           <span style="color: #000000;">1</span>       <span style="color: #000000;">61759</span>     <span style="color: #000000;">3952560</span>    b  W95 FAT32</pre></div></div>

<p>6) Since I only have two drives installed on my system (Internal HD, and USB thumb drive) we can logically deduce that /dev/sdb is the thumb drive, and for several reasons. The primary one being that I am using a 4GB drive, and the output next to /dev/sdb shows the total amount of memory.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb: <span style="color: #000000;">4047</span> MB</pre></div></div>

<p>7) Unmount the /dev/sdb1 partition</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># umount /dev/sdb1</span></pre></div></div>

<p>8 ) Run the following command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># fdisk /dev/sdb</span></pre></div></div>

<p>Which will produce this prompt.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:</pre></div></div>

<p>9) Delete any existing partitions.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: d
Selected partition <span style="color: #000000;">1</span></pre></div></div>

<p>9a) Please note, you may get a prompt asking you for a number selection (1-4). You will need to keep going through this step in order to delete ALL of the existing partitions on the usb device. Example below assumes there are two partitions on the usb device.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: d
Partition number <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">1</span>
&nbsp;
Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: d
Selected partition <span style="color: #000000;">2</span></pre></div></div>

<p>10) Once the partition(s) are deleted, create a new one. Type the letter &#8216;n&#8217; and press return. &#8216;n&#8217; is for &#8220;New&#8221; partition.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: n</pre></div></div>

<p>***) Enter the letter &#8216;p&#8217; for primary and press return.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command action
   e   extended
   p   primary partition <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
p</pre></div></div>

<p>11) Select number &#8217;1&#8242;  for the partition number definition.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Partition number <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">1</span></pre></div></div>

<p>12) Enter &#8217;1&#8242; to designate the first cylinder.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">First cylinder <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">61759</span>, default <span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">1</span></pre></div></div>

<p>13) Enter the large default number so that we can use the entire disk. In my case, the ending cylinder number is 61759.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Last cylinder, +cylinders or +<span style="color: #c20cb9; font-weight: bold;">size</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>K,M,G<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">61759</span>, default <span style="color: #000000;">61759</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">61759</span></pre></div></div>

<p>14) Make the drive bootable</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: a
Partition number <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span>-<span style="color: #000000;">4</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">1</span></pre></div></div>

<p>15) Show the definition table by entering the letter &#8216;p&#8217; from the prompt. This is to make sure there is an asterisk under the &#8216;boot&#8217; column.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: p
&nbsp;
Disk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb: <span style="color: #000000;">4047</span> MB, <span style="color: #000000;">4047502848</span> bytes
<span style="color: #000000;">4</span> heads, <span style="color: #000000;">32</span> sectors<span style="color: #000000; font-weight: bold;">/</span>track, <span style="color: #000000;">61759</span> cylinders
Units = cylinders of <span style="color: #000000;">128</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span> = <span style="color: #000000;">65536</span> bytes
Disk identifier: 0x00000000
&nbsp;
   Device Boot      Start         End      Blocks   Id  System
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb1   <span style="color: #000000; font-weight: bold;">*</span>           <span style="color: #000000;">1</span>       <span style="color: #000000;">61759</span>     <span style="color: #000000;">3952560</span>   <span style="color: #000000;">83</span>  Linux</pre></div></div>

<p>16) Write the changes to the disk by entering the letter &#8216;w&#8217;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Command <span style="color: #7a0874; font-weight: bold;">&#40;</span>m <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #7a0874; font-weight: bold;">help</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #c20cb9; font-weight: bold;">w</span>
The partition table has been altered<span style="color: #000000; font-weight: bold;">!</span></pre></div></div>

<p>16a) Note: you may get the following error. Don&#8217;t worry, it is not a big deal but it does mean you probably didn&#8217;t correctly unmount the device in step (STEP #7).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Calling ioctl<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> to re-read partition table.
&nbsp;
WARNING: Re-reading the partition table failed with error <span style="color: #000000;">16</span>: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">8</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> or kpartx<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">8</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Syncing disks.</pre></div></div>

<p>If this happens, it is now like a choose your own adventure book. You can&#8230;</p>
<ul>
<li>Start over</li>
<li>Go back to step #7</li>
<li>Or remember that things may be screwed up, and proceed just to see if you can</li>
</ul>
<p>Choose wisely&#8230;</p>
<p>17) Format the disk using ext2. !!!WARNING!!! if you mess this up, you can easily format the root partition of YOUR internal hard drive.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># mke2fs /dev/sdb1</span></pre></div></div>

<p>Which will produce the following output.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mke2fs 1.41.9 <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">22</span>-Aug-<span style="color: #000000;">2009</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Filesystem <span style="color: #007800;">label</span>=
OS <span style="color: #7a0874; font-weight: bold;">type</span>: Linux
Block <span style="color: #007800;">size</span>=<span style="color: #000000;">4096</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">log</span>=<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
Fragment <span style="color: #007800;">size</span>=<span style="color: #000000;">4096</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">log</span>=<span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000;">247008</span> inodes, <span style="color: #000000;">987989</span> blocks
<span style="color: #000000;">49399</span> blocks <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">5.00</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> reserved <span style="color: #000000; font-weight: bold;">for</span> the super user
First data <span style="color: #007800;">block</span>=<span style="color: #000000;">0</span>
Maximum filesystem <span style="color: #007800;">blocks</span>=<span style="color: #000000;">1015021568</span>
<span style="color: #000000;">31</span> block <span style="color: #c20cb9; font-weight: bold;">groups</span>
<span style="color: #000000;">32768</span> blocks per group, <span style="color: #000000;">32768</span> fragments per group
<span style="color: #000000;">7968</span> inodes per group
Superblock backups stored on blocks:
	<span style="color: #000000;">32768</span>, <span style="color: #000000;">98304</span>, <span style="color: #000000;">163840</span>, <span style="color: #000000;">229376</span>, <span style="color: #000000;">294912</span>, <span style="color: #000000;">819200</span>, <span style="color: #000000;">884736</span>
&nbsp;
Writing inode tables: <span style="color: #000000; font-weight: bold;">done</span>
Writing superblocks and filesystem accounting information: <span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
This filesystem will be automatically checked every <span style="color: #000000;">28</span> mounts or
<span style="color: #000000;">180</span> days, whichever comes first.  Use tune2fs <span style="color: #660033;">-c</span> or <span style="color: #660033;">-i</span> to override.</pre></div></div>

<p>18) Make a usb directory inside /mnt</p>
<p>NOTE: if you are using a different flavor of linux/unix you will have to adjust the tutorial accordingly.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># mkdir /mnt/usb</span></pre></div></div>

<p>19) mount the usb thumb drive partition to the newly created directory. In my case it is the 1st partition, sdb1.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:~<span style="color: #666666; font-style: italic;"># mount /dev/sdb1 /mnt/usb</span></pre></div></div>

<p>20) Create an iso directory to eventually mount the dsl-4.4.10.iso</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;"># mkdir /mnt/iso</span></pre></div></div>

<p>21) Find the directory where your damn small linux .iso file exists. Since I used firefox3.5 to download the .iso, my file is in the &#8216;Downloads&#8217; directory.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>YOUR_USERNAME<span style="color: #000000; font-weight: bold;">/</span>Downloads</pre></div></div>

<p>22) Mount the .iso to the directory. Conceptually, this allows you access to the files stored in the .iso as if it were a common directory on your file system.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># mount -o loop /home/YOUR_USERNAME/Downloads/dsl-4.4.10.iso /mnt/iso</span></pre></div></div>

<p>23) Copy all the files from /mnt/iso into /mnt/usb. We issue the &#8216;-p&#8217; flag so that we keep the existing permissions. We issue the &#8216;-R&#8217; flag so the the copy is recursive.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># cp -pR /mnt/iso/* /mnt/usb</span></pre></div></div>

<p>24) Install grub into the boot block of /dev/sdb.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># grub-install --no-floppy --root-directory=/mnt/usb /dev/sdb</span></pre></div></div>

<p>25) You should get the following output.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Probing devices to guess BIOS drives. This may take a long time.
Installing GRUB to <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb <span style="color: #c20cb9; font-weight: bold;">as</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd1<span style="color: #7a0874; font-weight: bold;">&#41;</span>...
Installation finished. No error reported.
This is the contents of the device map <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>usb<span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>device.map.
Check <span style="color: #000000; font-weight: bold;">if</span> this is correct or not. If any of the lines is incorrect,
fix it and re-run the script <span style="color: #000000; font-weight: bold;">`</span>grub-install<span style="color: #ff0000;">'.
&nbsp;
(hd0)	/dev/sda
(hd1)	/dev/sdb</span></pre></div></div>

<p>26)  Create the file menu.lst in the /mtn/usb/boot/grub/ folder.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #000000; font-weight: bold;">/</span><span style="color: #666666; font-style: italic;"># vi /mnt/usb/boot/grub/menu.lst</span></pre></div></div>

<p>28) Here is the contents of my menu.lst file and you are more than welcome to copy/paste the contents. There is one issue though, your hardware may not lay itself out like mine, so some further troubleshooting may be involved.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">title Damn Small Linux
root <span style="color: #7a0874; font-weight: bold;">&#40;</span>hd0,<span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
kernel <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>isolinux<span style="color: #000000; font-weight: bold;">/</span>linux24 <span style="color: #007800;">root</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1 ro <span style="color: #007800;">lang</span>=us toram noeject frugal
initrd <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>isolinux<span style="color: #000000; font-weight: bold;">/</span>minirt24.gz
boot
EOF</pre></div></div>

<p>29) At this point, you should be able to issue the following four commands in order to cleanup your file system</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># umount /mnt/iso</span>
root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># umount /mnt/usb</span>
root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># rm -R /mnt/usb</span>
root<span style="color: #000000; font-weight: bold;">@</span>jetBook:<span style="color: #666666; font-style: italic;"># rm -R /mnt/iso</span></pre></div></div>

<p>And from here on, it is all you. Just reboot your machine, and go into your BIOS in order to make sure you are booting from the usb device.</p>
<p>Please understand, in step #28 where you potentially copy/paste my &#8216;menu.lst&#8217; settings, it is an area where you could run into problems. I will try and cover some information on the GRUB boot loader eventually. Because GRUB seems to mistify so many people, yet it is incredibly powerful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/nerd-how-to-create-a-dsl-damn-small-linux-bootable-usb-thumb-drive-using-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

