{"id":177,"date":"2011-06-05T21:24:44","date_gmt":"2011-06-05T11:24:44","guid":{"rendered":"http:\/\/helms-deep.net\/~rwh\/blog\/?p=177"},"modified":"2011-07-01T19:02:56","modified_gmt":"2011-07-01T09:02:56","slug":"installing-ubuntu-on-the-lenovo-ideapad-s205","status":"publish","type":"post","link":"https:\/\/helms-deep.net\/~rwh\/blog\/?p=177","title":{"rendered":"Installing Ubuntu on the lenovo ideapad S205"},"content":{"rendered":"<p>My girlfriend&#8217;s laptop died recently, and as her birthday was coming up I thought I&#8217;d buy her a new netbook to get her up and running again (well, really, to get my mac back).\u00c2\u00a0 For \u00c2\u00a3300 from Amazon, we had a machine that was much like her old laptop; it&#8217;s amazing what you can get for so little money these days.\u00c2\u00a0 However, there were two things I didn&#8217;t realise: one, the ideapad-S205 lacks an optical drive (whoops).\u00c2\u00a0 The second was that it&#8217;d take me basically a whole day of dicking around to get Ubuntu to dual boot with Windows 7.\u00c2\u00a0 I hope this guide will help people out with the second problem (and I solved the first one by buying a USB DVD drive for another \u00c2\u00a330).<!--more--><\/p>\n<p>1. download and install Ubuntu 11.04 on a USB key<br \/>\n&#8211; I used the Startup Disk Creator on another Ubuntu machine to create the bootable USB key.<\/p>\n<p>2. Put in the bootable Ubuntu USB key and boot the ideapad.\u00c2\u00a0 Press Fn-F11 to get the boot menu, and choose the USB boot device.\u00c2\u00a0 The screen will be garbled, seems like an issue with the kernel framebuffer driver.\u00c2\u00a0 Just hit enter, and the Ubuntu setup process will start fine.<\/p>\n<p>3. Connect to an ethernet cable as wireless doesn&#8217;t work (says that it&#8217;s disabled by hardware switch despite not being, needs more investigation).<\/p>\n<p><strong>Update:<\/strong> Turns out that wireless works in 10.10&#8230; OK I have found a workaround for the wireless.\u00c2\u00a0 It even works with suspend\/resume.  <strong>Update 2:<\/strong> there&#8217;s an even simpler method in the comments, though I&#8217;ve not tested it myself. \u00c2\u00a0 Here&#8217;s how you can connect using wireless:<br \/>\n&#8211; connect via the wired ethernet port<br \/>\n&#8211; apt-get install wicd<br \/>\n&#8211; apt-get remove network-manager<br \/>\n&#8211; disconnect the wired ethernet port<br \/>\n&#8211; rfkill unblock all<br \/>\n&#8211; start wicd from the applications menu, then use it to connect to your wireless connection.<\/p>\n<p>You can have the &#8220;rfkill unblock all&#8221; command run automatically on startup\u00c2\u00a0 by adding it to \/etc\/rc.local above the &#8220;exit 0&#8221; line.\u00c2\u00a0 That&#8217;s all you should need to do to have the wireless connection come up automatically when you log in.<\/p>\n<p>Seems like this might be the combination of a couple of bugs, one a configuration problem that necessitates the use of rfkill unblock all, and the other a bug in network-manager.\u00c2\u00a0 I will file some bug reports when I get time and post an update here.<\/p>\n<p>4. After the Ubuntu 11.04 environment starts up, double click on the desktop icon to start the install process.\u00c2\u00a0 You&#8217;ll eventually read the message: &#8220;This computer currently has Windows 7 on it.\u00c2\u00a0 What would you like to do?&#8221;<br \/>\n&#8211; I first did the &#8220;Install Ubuntu alongside Windows 7&#8221; option and shrunk the windows partition.\u00c2\u00a0 As I later learned, this doesn&#8217;t work because GRUB 2 fails, we need to set up the partitions in a GRUB legacy friendly setup (it requires a boot partition, formatted ext2, as it doesn&#8217;t understand ext4 yet; I&#8217;m not sure what the status of its ext3 support is).\u00c2\u00a0 So I restarted the install process and:<br \/>\n&#8211; chose the &#8220;Something else&#8221; option.\u00c2\u00a0 I deleted the ext4 and swap partitions from the previous install and then used the resulting empty space to set it up like this:<br \/>\n&#8211; \/dev\/sda6 ext2 \/boot 255MB<br \/>\n&#8211; \/dev\/sda7 ext4 \/\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 13684MB<br \/>\n&#8211; \/dev\/sda8 swap<br \/>\n&#8211; device boot loader installation: \/dev\/sda6<br \/>\n&#8211; proceed through the install, setting up your location and user details, etc.<\/p>\n<p>5. Once the install completes, you will be prompted to restart, however we need to set up GRUB legacy first, so:<br \/>\n&#8211; start a terminal (click the button in the top left, type terminal and hit enter, or try ctrl-alt-t).\u00c2\u00a0 Then use the following commands (these assume my partition setup from above, modify them if yours differs):<br \/>\n&#8211; sudo su<br \/>\n&#8211; mkdir \/mnt\/sda7<br \/>\n&#8211; mount \/dev\/sda7 \/mnt\/sda7<br \/>\n&#8211; cd \/mnt\/sda7<br \/>\n&#8211; mount \/dev\/sda6 .\/boot<br \/>\n&#8211; mount &#8211;bind \/sys .\/sys<br \/>\n&#8211; mount &#8211;bind \/proc .\/proc<br \/>\n&#8211; mount &#8211;bind \/dev .\/dev<br \/>\n&#8211; chroot .<br \/>\nIn plain English, what we just did was mount the new partitions that we created, in the same configuration that they will be in the new system.\u00c2\u00a0 Then we bound all the special filesystems into this, and then we used &#8220;chroot&#8221; a magical command that moves our terminal into our newly setup system, almost as if we&#8217;d just booted into it.\u00c2\u00a0 So all our following commands will affect the new system instead of our temporary live USB boot.<\/p>\n<p>6. Follow these instructions to download to grub legacy: https:\/\/help.ubuntu.com\/community\/Grub2#Uninstalling%20GRUB%202<br \/>\n&#8211; apt-get update ; apt-get install grub<br \/>\n&#8211; update-grub<br \/>\n&#8211; yes to generate list<br \/>\n&#8211; grub-install \/dev\/sda6<br \/>\nWe&#8217;ve now installed grub legacy in \/dev\/sda6, which is our ubuntu \/boot partition.\u00c2\u00a0 We now need to get the Windows 7 bootloader to chain-boot this.\u00c2\u00a0 We do this using a little utility called <a title=\"EasyBCD\" href=\"http:\/\/neosmart.net\/dl.php?id=1\">EasyBCD<\/a>, though it&#8217;s possible to modify the Windows config files manually if you prefer.<\/p>\n<p>7. Reboot into windows 7.<br \/>\n&#8211; download, install and run Easy BCD<br \/>\n&#8211; Add new entry<br \/>\n&#8211; Linux\/BSD tab<br \/>\n&#8211; Type: GRUB (Legacy)<br \/>\n&#8211; Name: Ubuntu 11.04<br \/>\n&#8211; Partition 5 (Linux -244 MiB)<br \/>\n&#8211; Click Add Entry<br \/>\n&#8211; Edit Boot Menu<br \/>\n&#8211; Boot default OS after: change to 4 seconds.<br \/>\n&#8211; Save Settings.<\/p>\n<p>8. Reboot, and you should see a boot menu with Windows 7 and Ubuntu 11.04.\u00c2\u00a0 Done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My girlfriend&#8217;s laptop died recently, and as her birthday was coming up I thought I&#8217;d buy her a new netbook to get her up and running again (well, really, to get my mac back).\u00c2\u00a0 For \u00c2\u00a3300 from Amazon, we had &hellip; <a href=\"https:\/\/helms-deep.net\/~rwh\/blog\/?p=177\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[53,59,65,58,66,60,63,62,55,61,54,90,89,73,77,23,75,56,44,76,64,74,72,57,71],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-11-04","tag-boot","tag-chroot","tag-dualboot","tag-easybcd","tag-grub","tag-grub2","tag-grublegacy","tag-ideapad","tag-legacy","tag-lenovo","tag-narwhal","tag-natty","tag-network-manager","tag-networking","tag-partition","tag-rfkill","tag-s205","tag-ubuntu","tag-unblock","tag-usb","tag-wicd","tag-wifi","tag-windows7","tag-wireless"],"_links":{"self":[{"href":"https:\/\/helms-deep.net\/~rwh\/blog\/index.php?rest_route=\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helms-deep.net\/~rwh\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/helms-deep.net\/~rwh\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/helms-deep.net\/~rwh\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helms-deep.net\/~rwh\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=177"}],"version-history":[{"count":15,"href":"https:\/\/helms-deep.net\/~rwh\/blog\/index.php?rest_route=\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":180,"href":"https:\/\/helms-deep.net\/~rwh\/blog\/index.php?rest_route=\/wp\/v2\/posts\/177\/revisions\/180"}],"wp:attachment":[{"href":"https:\/\/helms-deep.net\/~rwh\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/helms-deep.net\/~rwh\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/helms-deep.net\/~rwh\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}