{"id":3167,"date":"2011-11-14T17:27:39","date_gmt":"2011-11-14T09:27:39","guid":{"rendered":"http:\/\/www.janleow.com\/life\/?p=3167"},"modified":"2011-11-14T17:27:39","modified_gmt":"2011-11-14T09:27:39","slug":"dual-boot-ubuntu-and-puppy-linux-in-usb-pendrive","status":"publish","type":"post","link":"https:\/\/www.janleow.com\/life\/dual-boot-ubuntu-and-puppy-linux-in-usb-pendrive.html","title":{"rendered":"Dual Boot Ubuntu and Puppy Linux in USB Pendrive"},"content":{"rendered":"<p>How to dual boot Ubuntu and Puppy Linux in USB pendrive. It was actually rather easy although it took me a long while to figure it out. All along I was carrying two thumbdrive, one with Ubuntu Linux installed and the other with Puppy Linux. Why bring along so many Linux distros? Well, each has its own pros and cons. Ubuntu is more complete with its software and GUI interface plus other heavy duty application, but it runs a little slow in my SanDisk 32GB flash drive. Puppy Linux is blazingly fast for its small size distro, and perfect for those times when you need to do quick fixes to your PC.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.janleow.com\/imgs\/wp\/linux-dualboot-usb-drive.jpg\" alt=\"Dual boot Ubuntu and Puppy Linux in your thumb drive\" \/><\/p>\n<p><!--more--><\/p>\n<p>I tried to find out more info online but no one has any good solution to dual boot Ubuntu and Puppy Linux especially in a thumbdrive. Most were dual booting it in their normal hard drive and the way they go about doing it wasn&#8217;t very easy. It requires copying the vmlinuz and initrd into a folder inside the Ubuntu partition and had booting problems for those who tried it. And some people used the UUID for identification of Puppy Linux partition and when I tried it, it didn&#8217;t work and it was also complicated to set up.<\/p>\n<p>Then it dawn onto me that Puppy Linux didn&#8217;t require MBR modification, all it needed was its own partition to be made bootable. You can&#8217;t have Puppy partition bootable as that would render Ubuntu partition unbootable. Then I thought about how GRUB could boot up Windows using chainloader command by passing the booting duty to its own partition for Windows. Giving this idea a go, I edited the GRUB configuration, and voila! It works! Using the chainloader simplifies the entire process. All you needed to do was edit the grub.cfg file (for GRUB 2 or menu.lst if GRUB version 1) and that&#8217;s it!<\/p>\n<p>For dual booting of Puppy \/ Ubuntu Linux, some preparation will be needed. For my SanDisk Cruzer thumbdrive, the partition was done up long time ago (well not that long but for gadget time it was long time ago, haha!), so the \/dev\/sdx numbering was not in sequence (well, I&#8217;m kinda fastidious and would like it to be sdx1, sdx2, sdx3, sdx4 sequence but it would be too troublesome and takes too long to place the \/dev\/sdx in the proper numbering sequence due to too much data. So left it as sdx1, sdx4, sdx2, sdx3. Perhaps next time when I clean up my flash drive. Anyway, it still works).<\/p>\n<h3>Gnome Partition Manager \u2013 Gparted<\/h3>\n<p>First you need to prepare your flash drive. Fire up Gparted Gnome Partition Manager and allocated your spacing accordingly. I have an earlier <a href=\"http:\/\/www.janleow.com\/life\/installing-a-portable-ubuntu-linux-in-a-usb-thumbdrive.html\">partition with Ubuntu Linux<\/a><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.janleow.com\/imgs\/wp\/linux-gpart-dualboot.jpg\" alt=\"My flash drive partition in Gparted for dual booting Puppy and Ubuntu Linux\" \/><\/p>\n<p>So I just push back the NTFS by 1 GB and create an ext3 partition for Puppy Linux. (Note: make sure you have back up your important data if you are doing any partition resizing). If you are starting clean (which is the best), make sure the first partition is a Windows based partition (eg FAT16, FAT32, NTFS) as Microsoft Windows can only read from the first partition. Next create the Linux partitions giving about >5.5 GB for Ubuntu (more may be needed if you plan to update Ubuntu versions without clean installs, but I don&#8217;t have so much space to spare), about 1GB for Puppy. And finally a linux swap partition (about 128MB to 512MB). And you will have something like my USB drive partition configuration.<\/p>\n<p>You can install either Ubuntu first or Puppy Linux first. Either way ok. Though I have not tried it, if you install Puppy First, Ubuntu installer may spot the Puppy partition and include it in the GRUB configuration and solve all your headache. In my case, Ubuntu was already installed, and Puppy came in later, thus making the dual booting of Puppy and Ubuntu configuration a bit more difficult.<\/p>\n<h3>Installing Puppy Linux<\/h3>\n<p>Boot up the Puppy Linux and install O\/S into the your thumb drive. Make sure that the booting is not installed into MBR (which was the default setting).<\/p>\n<p>If you boot up your pendrive now, you will only be able to boot into Ubuntu. So while still in Puppy Linux, navigate to the Ubuntu partition and goto the Grub folder and edit the grub.cfg (or menu.lst). Although the correct way was to create was to use a 40_custom config file and tail into grub.cfg because if Grub were to update (by gtub-mkconfig), any changes that you made would be lost. However I find doing editing the grub.cfg directly this way is simpler for me.<\/p>\n<pre>\n        \/boot\/grub\/grub.cfg\n<\/pre>\n<p><\/p>\n<p>If you are in Ubuntu itself, you will need to bring up the terminal and key in:<\/p>\n<pre>\n        sudo su\n\tgedit \/boot\/grub\/grub.cfg\n<\/pre>\n<p><\/p>\n<p>Navigate to the menu entry area and key in:<\/p>\n<pre>\n\tmenuentry 'Puppy Linux' {\n\tset root = (hd0, x)\n\tchainloader +1\n        }\n<\/pre>\n<p><\/p>\n<p>Where &#8220;x&#8221; is the partition number where your Puppy Linux was installed.<\/p>\n<p>Boot your USB flash drive and give the Puppy Linux entry a try and see if it will boot. If yes, congratulations! You have made your pendrive dual boot Puppy and Ubuntu Linux!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to dual boot Ubuntu and Puppy Linux in USB pendrive. It was actually rather easy although it took me a long while to figure it out. All along I was carrying two thumbdrive, one with Ubuntu Linux installed and the other with Puppy Linux. Why bring along so many Linux distros? Well, each has &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.janleow.com\/life\/dual-boot-ubuntu-and-puppy-linux-in-usb-pendrive.html\"> <span class=\"screen-reader-text\">Dual Boot Ubuntu and Puppy Linux in USB Pendrive<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[6],"tags":[46,50,51,115,135,139],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1bS5F-P5","jetpack-related-posts":[{"id":3458,"url":"https:\/\/www.janleow.com\/life\/multi-boot-usb-linux-with-pendrive-linux-yumi-software.html","url_meta":{"origin":3167,"position":0},"title":"Multi Boot USB Linux with Pendrive Linux Yumi Software","author":"Jan","date":"3 February 2012","format":false,"excerpt":"Multi boot USB Linux comes in really handy and recently I just discovered this Yumi software by Lance of Pendrive Linux website that can be used for booting multiple live distros of Linux! Previously my linux project was to install linux itself into my SanDisk Ultra 64GB flash drive, however\u2026","rel":"","context":"In &quot;Computer Devices&quot;","block_context":{"text":"Computer Devices","link":"https:\/\/www.janleow.com\/life\/category\/computer-devices"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3020,"url":"https:\/\/www.janleow.com\/life\/installing-a-portable-ubuntu-linux-in-a-usb-thumbdrive.html","url_meta":{"origin":3167,"position":1},"title":"Installing a portable Ubuntu Linux in a USB Thumbdrive","author":"Jan","date":"3 June 2011","format":false,"excerpt":"I couldn't wait for the price of 32GB USB thumb drive to come down and decided to get one. I think the current size of most USB drive is way more than enough for the average Joe's but not for power users like me! It seems like Moore's Law don't\u2026","rel":"","context":"In &quot;Computer Devices&quot;","block_context":{"text":"Computer Devices","link":"https:\/\/www.janleow.com\/life\/category\/computer-devices"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1116,"url":"https:\/\/www.janleow.com\/life\/dual-booting-with-ubuntu-linux-and-windows-vista.html","url_meta":{"origin":3167,"position":2},"title":"Dual booting with Ubuntu Linux and Windows Vista","author":"Jan","date":"3 July 2009","format":false,"excerpt":"My dell computer laptop is about two years old already and I'm running a little short on storage space. I have been dual booting the dell computer laptop with Ubuntu Linux and Windows Vista, however I didn't think it out thoroughly on the partitioning and thus I have linux partition\u2026","rel":"","context":"In &quot;Computer Devices&quot;","block_context":{"text":"Computer Devices","link":"https:\/\/www.janleow.com\/life\/category\/computer-devices"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2972,"url":"https:\/\/www.janleow.com\/life\/usb-2-0-to-ide-sata-adapter.html","url_meta":{"origin":3167,"position":3},"title":"USB 2.0 to IDE \/ SATA Adapter","author":"Jan","date":"31 March 2011","format":false,"excerpt":"Finally went ahead to purchase this hardware - USB 2.0 to IDE \/ SATA Adapter. At about $15 (RM45) it is probably not comparable to say a portable hard drive or an external powered hard drive that you can get for about $33 (RM100) with more storage capacity. I have\u2026","rel":"","context":"In &quot;Computer Devices&quot;","block_context":{"text":"Computer Devices","link":"https:\/\/www.janleow.com\/life\/category\/computer-devices"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4180,"url":"https:\/\/www.janleow.com\/life\/how-to-usb-boot-in-raspberry-pi4.html","url_meta":{"origin":3167,"position":4},"title":"How to USB Boot in Raspberry Pi4","author":"Jan","date":"2 November 2020","format":false,"excerpt":"One of the features of Raspberry Pi4 is the ability to have USB boot. One of the good reasons why you might want to boot up via USB is the faster read writes by using SSD external drives and alternate options to boot up your OS. This option was not\u2026","rel":"","context":"In &quot;Computer Devices&quot;","block_context":{"text":"Computer Devices","link":"https:\/\/www.janleow.com\/life\/category\/computer-devices"},"img":{"alt_text":"Raspberry Pi 4 bootloader message","src":"https:\/\/i0.wp.com\/www.janleow.com\/imgs\/wp\/2020-11-02_rpi4_bootloader.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.janleow.com\/imgs\/wp\/2020-11-02_rpi4_bootloader.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.janleow.com\/imgs\/wp\/2020-11-02_rpi4_bootloader.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.janleow.com\/imgs\/wp\/2020-11-02_rpi4_bootloader.jpg?resize=700%2C400 2x"},"classes":[]},{"id":105,"url":"https:\/\/www.janleow.com\/life\/shifting-over-to-linux.html","url_meta":{"origin":3167,"position":5},"title":"Shifting over to Linux","author":"Jan","date":"11 April 2008","format":false,"excerpt":"Since I don't see my current slow and sluggish office PC will be upgraded any time soon. I've decided to do a full trial of using Linux, specifically Ubuntu Linux and see how it will compare against the Windows XP. Naturally, there will be lots of incompatibility, but I do\u2026","rel":"","context":"In &quot;Computer Devices&quot;","block_context":{"text":"Computer Devices","link":"https:\/\/www.janleow.com\/life\/category\/computer-devices"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/posts\/3167"}],"collection":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/comments?post=3167"}],"version-history":[{"count":0,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/posts\/3167\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/media?parent=3167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/categories?post=3167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.janleow.com\/life\/wp-json\/wp\/v2\/tags?post=3167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}