{"id":981,"date":"2012-08-26T10:30:51","date_gmt":"2012-08-26T15:30:51","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=981"},"modified":"2012-08-26T15:01:39","modified_gmt":"2012-08-26T20:01:39","slug":"pinto-repartition","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=981","title":{"rendered":"Pinto Repartition"},"content":{"rendered":"<p>Pinto, the Thinkpad T60, has three OS partitions of 10 GB each. \u00c2\u00a0Space is getting tight on there, so I&#8217;m going to repartition the disk into two 15 GB \u00c2\u00a0partitions. \u00c2\u00a0The partitions are as follows:<\/p>\n<p>sda6: Ubuntu 10.04<\/p>\n<p>sda7: old Ubuntu (partial installation)<\/p>\n<p>sda8: openSUSE 10.2<\/p>\n<p>I&#8217;m not using sda7 or sda8, so I&#8217;ll remove them and resize sda6 to 15 GB, then create a new sda7 partition of 15 GB. \u00c2\u00a0But first, I&#8217;m going to back up the sda6 partition.<\/p>\n<p>I&#8217;m going to use <a href=\"http:\/\/www.sysresccd.org\/\">SystemRescueCD<\/a> to back up the partition. \u00c2\u00a0Download the ISO (<a href=\"http:\/\/superb-dca2.dl.sourceforge.net\/project\/systemrescuecd\/sysresccd-x86\/2.8.1\/systemrescuecd-x86-2.8.1.iso\">systemrescuecd-x86-2.8.1.iso<\/a>). \u00c2\u00a0Check the downloaded file with MD5Sum by\u00c2\u00a0creating a file with the same name as the ISO but with an appended .md5sum extention. \u00c2\u00a0In this file, copy the MD5sum number from the web site, followed by two spaces and the ISO file name. \u00c2\u00a0Save the file, then run\u00c2\u00a0<code>md5sum -c systemrescuecd-x86-2.8.1.iso.md5sum<\/code>.<\/p>\n<p>If the MD5sum is OK, burn the ISO to a CD with k3b (Tools-&gt;Burn Image). \u00c2\u00a0If you forget to select verify CD in k3b, you can do so afterward with the mounted CD. \u00c2\u00a0Run <code>df<\/code> to see which device the CD is mounted on. \u00c2\u00a0Then run MD5sum on the device, for example, <code>md5sum \/dev\/sr0<\/code>. Compare the output to the MD5sum you saved earlier.<\/p>\n<p>I booted with the default options and after loading the kernel, the screen went blank right after &#8220;&gt;&gt; Loading modules&#8230;&#8221; and never came back. \u00c2\u00a0I tried a few different boot options in the <a href=\"http:\/\/www.sysresccd.org\/Sysresccd-manual-en_Booting_the_CD-ROM\">manual<\/a>, and\u00c2\u00a0<code>nomodeset<\/code> fixed the problem.<\/p>\n<p>I started the GUI with the wizard and mounted a USB drive manually in \/mnt:<\/p>\n<ul>\n<li><code>mkdir usb<\/code><\/li>\n<li><code>mount \/dev\/sdb<\/code><\/li>\n<\/ul>\n<p>You can see where the USB drive is with System-&gt;Show Filesystems.<\/p>\n<p>Next, I ran PartImage and saved sda6 to \/mnt\/usb\/pinto-sda6-ubuntu10.img.<\/p>\n<p>With the partition backed up, I started GParted and deleted sda7 and sda8. Now sda6 was in the middle of 30,710 MiB. I made sda6 15,355 MiB with 15,355 MiB left. When the resize was done, there was only 15,353 MiB left, so I resized sda6 to 13,354. I made a new ext3 partition after sda6 that was also 13,354 and labeled it ubuntu12, which what it will become. Last, I copied the file system:<br \/>\n<code>dd if=\/dev\/sda6 of=\/dev\/sda7 bs=1024k<\/code><br \/>\nthen followed the <a href=\"http:\/\/www.familytidings.com\/blog\/?p=210\">rest of the steps<\/a> to make sda7 it&#8217;s own OS:<\/p>\n<ul>\n<li>In GParted, select the new partition and give it its own UUID with Partition-&gt;New UUID.<\/li>\n<li>Save the Grub configuration and current kernel files in \/boot<\/li>\n<li>Change the new partition name<\/li>\n<li>Add an entry to grub&#8217;s menu.lst to boot the new partition<\/li>\n<li>Update the new partition&#8217;s <code>\/etc\/fstab<\/code><\/li>\n<\/ul>\n<p>For the last step, Grub has changed on my system since the linked post above. \u00c2\u00a0Rather than specifying root for the new entry, the disk is specified by UUID. \u00c2\u00a0To get that, use blkid, in this case: <code>blkid \/dev\/sda7<\/code>. You can also use <code>ls -l \/dev\/disk\/by-uuid<\/code>. Note this is not the UUID on the line that starts with <code>uuid<\/code> (that&#8217;s for \/boot), but the uuid in the line that starts with <code>kernel<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pinto, the Thinkpad T60, has three OS partitions of 10 GB each. \u00c2\u00a0Space is getting tight on there, so I&#8217;m going to repartition the disk into two 15 GB \u00c2\u00a0partitions. \u00c2\u00a0The partitions are as follows: sda6: Ubuntu 10.04 sda7: old Ubuntu (partial installation) sda8: openSUSE 10.2 I&#8217;m not using sda7 or sda8, so I&#8217;ll remove [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-981","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=981"}],"version-history":[{"count":15,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/981\/revisions"}],"predecessor-version":[{"id":996,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/981\/revisions\/996"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}