{"id":35,"date":"2009-04-04T00:36:53","date_gmt":"2009-04-04T00:36:53","guid":{"rendered":"http:\/\/kher.org\/blog\/?p=35"},"modified":"2011-06-03T06:37:07","modified_gmt":"2011-06-03T06:37:07","slug":"ubuntu_on_external_hdd","status":"publish","type":"post","link":"https:\/\/kher.org\/blog\/ubuntu_on_external_hdd\/","title":{"rendered":"Installing Ubuntu 7.10 on External Hard Drive"},"content":{"rendered":"<p>After reading the hoopla surrounding Ubuntu for weeks and weeks, I decided to give it a whirl.<br \/>\nThe download was super fast &#8211; actually took about five minutes since I used BitTorrent to download.<br \/>\nI chose Gusty Gibbon &#8211; 7.10 build Live CD.<br \/>\nNow, I did not want to split up internal 100GB HDD of the laptop (Dell Latitude D620) nor did I want to mess up Master Boot Record(MBR) for Windows(XP).<br \/>\nBesides, I had a spare 250Gb Fujitsu USB HDD.<br \/>\nSo after bit of googling turned up DaBruGo&#8217;s this post and Android&#8217;s this post describing the whole process.<\/p>\n<p>My experiment was based on these and is chronicled below:<\/p>\n<p><!--more--><strong>Step 1<\/strong>: Configure the BIOS of the laptop to boot in order: CD-ROM, External HDD, Internal HDD<br \/>\n<strong>Step 2<\/strong>: Load the Live CD, connect the USB drive and let the laptop boot from the CD.<br \/>\n<strong>Step 3<\/strong>: Make sure the External HDD is mounted ok (Places-&gt;Disk-&gt;Double click )<br \/>\nOpen a terminal (Applications-&gt;Administrartion-&gt; Terminal) and execute<\/p>\n<blockquote><p><code>%fdisk -l<\/code><\/p><\/blockquote>\n<p>This will show the which disk has been assigned which device number. In my case it was \/dev\/sda for internal HDD while<br \/>\n\/dev\/sdb for external HDD where I planned to install Ubuntu. The distinction was easy to make due to difference in sizes (Internal<br \/>\nHDD 100 Gb, External HDD 250 Gb). Make a note of the names.<br \/>\n<strong>Step 4<\/strong>: Click on &#8220;Install&#8221; on Desktop. Set appropriate values for<br \/>\na. Language b. Time Zone etc.<br \/>\nThis will bring you to Partitioning step. I chose Guided Partitioning for &#8220;Whole Disk&#8221;<br \/>\nBe VERY CAREFUL to choose the correct device here (\/dev\/sdb in my case). There is no undo here!!<br \/>\nFollow the instructions for setting up Computer name, user name, password. Please make a note of it.(The user name and password will<br \/>\nbe needed to login once the installation is complete)<br \/>\nOnce you see &#8220;Advanced&#8221; options choose the GRUB loader path from &#8220;hd0&#8221; to &#8220;\/dev\/sdb&#8221; (The external HDD).<br \/>\nThis is very important!! Leaving the GRUB loader path unchanged will cause the installer to over write Windows MBR (&#8220;hd0&#8221;).<br \/>\nWait until the partitioning is finished.<br \/>\n<strong>Step 5<\/strong>: Follow the reboot prompt and reboot the PC with keeping the Live CD in the drive.<br \/>\n[Note: This is contradictory to Andriod&#8217;s post but in line with<br \/>\nDebugro&#8217;s post.]<br \/>\n<strong>Step 6<\/strong>: Mount the External HDD back on(Places-&gt; Disk-&gt; Right click and select &#8220;Mount&#8221;). Note the complete path to this disk. In my case it was \/media\/disk. Open a terminal and proceed to execute following commands.<\/p>\n<blockquote><p>% sudo chroot \/media\/disk<br \/>\n% sudo vim \/boot\/grub\/menu.lst<\/p><\/blockquote>\n<p><strong>a<\/strong>. Add # in front of #hidemenu to comment it out.<br \/>\n<strong>b<\/strong>. Change a &#8220;# groot&#8221; line in a section of your menu.lst file<br \/>\n## default grub root device<br \/>\n## e.g. groot=( hd0, 0)<br \/>\n# groot=(hd1,0) &#8211; CHANGE THIS LINE TO READ # groot=(hd0,0)<br \/>\n<strong>c.<\/strong> Scroll down to until you get to a section where there is a menu list (not commented out &#8230; no #s) that has Ubuntu mentioned three<br \/>\ntimes (and possibly an area mentioning Windows XP down below it, if you have XP installed on an internal drive of yours).<br \/>\nThere is a line in these three Ubuntu menu choices that has root listed on it and probably has (hd1,0) to the right of it. Change this to<br \/>\n(hd0,0) on all three of these menu choices. Why? Because according to GRUB, the external USB drive will be our first drive (hd0,0) and<br \/>\nnot our second drive (hd1,0) because we loaded GRUB on it&#8217;s bootsector(Thanks DeBugro!).<br \/>\nSave the file and exit ([Esc] :wq)<br \/>\n<strong>Step 7<\/strong>: Reboot the PC. Take out the LiveCD from the drive. The GRUB should now load from External HDD if everything went well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After reading the hoopla surrounding Ubuntu for weeks and weeks, I decided to give it a whirl. The download was super fast &#8211; actually took about five minutes since I used BitTorrent to download. I chose Gusty Gibbon &#8211; 7.10 build Live CD. Now, I did not want to split up internal 100GB HDD of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/kher.org\/blog\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kher.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kher.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kher.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kher.org\/blog\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":0,"href":"https:\/\/kher.org\/blog\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"wp:attachment":[{"href":"https:\/\/kher.org\/blog\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kher.org\/blog\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kher.org\/blog\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}