{"id":210,"date":"2008-12-28T22:53:55","date_gmt":"2008-12-29T03:53:55","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=210"},"modified":"2008-12-28T22:53:55","modified_gmt":"2008-12-29T03:53:55","slug":"upgrade-to-opensuse-111","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=210","title":{"rendered":"Upgrade to openSUSE 11.1"},"content":{"rendered":"<p>Before upgrading, it&#8217;s useful to have the partition layout written down.  Here&#8217;s Pinto&#8217;s (from parted&#8217;s &#8220;print&#8221; command):<br \/>\n<tt><br \/>\n1      32.3kB  14.0GB  14.0GB  primary   ntfs         , , , , , , , , , type=07, ,<br \/>\n3      17.2GB  18.2GB  1045MB  primary   ext3         boot, , , , , , , , , type=83, ,<br \/>\n4      18.2GB  54.7GB  36.4GB  extended               , , , , , , , , , type=05, ,<br \/>\n5      18.2GB  20.4GB  2147MB  logical   linux-swap   , , , , , , , , , type=82, ,<br \/>\n6      20.4GB  31.1GB  10.7GB  logical   ext3         , , , , , , , , , type=83, ,<br \/>\n7      31.1GB  41.8GB  10.7GB  logical   ext3         , , , , , , , , , type=83, ,<br \/>\n8      41.8GB  52.6GB  10.7GB  logical   ext3         , , , , , , , , , type=83, ,<br \/>\n2      54.7GB  60.0GB  5342MB  primary   fat32        , , , , , , , , , type=12, ,<br \/>\n<\/tt><br \/>\nThis is what&#8217;s on each of them (in partition order):<\/p>\n<ol>\n<li>Windows<\/li>\n<li>ThinkPad Recovery partition<\/li>\n<li>Boot partition (\/boot)<\/li>\n<li>Extended partion (contains logical partitions 5-8)<\/li>\n<li>swap<\/li>\n<li>Fedora Core 5<\/li>\n<li>Fedora Core 6<\/li>\n<li>openSUSE 10.2<\/li>\n<\/ol>\n<p>Rather than leave Pinto in a non-working state, I chose to copy the openSUSE 10.2 partition (<code>\/dev\/sda8<\/code>) over the old Fedora Core 5 partition (<code>\/dev\/sda6<\/code>) and upgrade that.<br \/>\nI have only one boot partition.  When the upgrade runs, it&#8217;ll replace the kernel files for the installation being upgraded.  Since I want to keep my current kernel, this is bad.  To remedy this, I copied all the files with the current kernel version to a backup area to be restored later:<br \/>\n<code># cd \/boot<br \/>\n# mkdir opensuse-10.2<br \/>\n# cp -p grub\/menu.lst opensuse-10.2\/.<br \/>\n# cp -p *2.6.18.8* opensuse-10.2\/.<\/code><br \/>\nThen I copied the current installation&#8217;s partition with the <a href=\"http:\/\/gparted.sourceforge.net\/\">GParted Live CD<\/a>.  This is required because copying a partition while in use is a bad idea.  When running from the CD the partitions aren&#8217;t in use.<br \/>\nBut GParted wouldn&#8217;t copy the partition for me, so I used the Live CD&#8217;s terminal and my <a href=\"http:\/\/www.familytidings.com\/blog\/?p=79\">older partion copying instructions<\/a>:<br \/>\n<code># dd if=\/dev\/hdb8 of=\/dev\/hda6 bs=1024k<br \/>\n# tune2fs -L opensuse-11.1 \/dev\/hda6<br \/>\n# resize2fs \/dev\/hda6<\/code><br \/>\nAlas, although I tried to have all three partitions the same size, they are slightly different (according to GParted, sda6=10237 MiB, sda7=10237 MiB and sda8=10245)<br \/>\nand resize2fs wanted e2fsck run first.  e2fsck complained the filesystem size and the physical sizeh were different.  So I switched gears.<br \/>\nThe first order was to get these partitions equal.  Using GParted, I resized sda8 to match sda6 and sda7 at 10237 MiB.<br \/>\nThere are three 10GB partitions for Linux on Pinto.  I&#8217;m only using openSUSE 10.2, leaving the other two, Fedora Core 5 and 6 free.  So the plan was updated to put an image of sda8 on sda7 and restore it to sda6.<br \/>\nUsing GParted, I formatted <code>\/dev\/sda7<\/code> as ext3<br \/>\nFrom the command line, I mounted it:<br \/>\n<code># mkdir \/mnt\/sda7<br \/>\n# mount \/dev\/sda7 \/mnt\/sda7<\/code><br \/>\nI saved an image of <code>\/dev\/sda8<\/code> to <code>\/mnt\/sda7\/sda8.img<\/code> with partimage, which is also on the GParted Live CD.  This took about 12 minutes.<br \/>\nThen using GParted, I formatted <code>\/dev\/sda6<\/code> as ext3.<br \/>\nUsing partimage, I restored the image <code>\/mnt\/sda7\/sda8.img.000<\/code> to <code>\/dev\/sda6<\/code>.<br \/>\nNext I used GParted to edit the label of the new partition copy.  If you forget this step, anything referencing the old label may use the new copy, as both partitions have the same label.  Then I mounted the boot partition (<code>\/dev\/sda3<\/code>) and edited the grub menu <code>\/mnt\/boot\/grub\/menu.lst<\/code>, copied the current openSUSE entry and changed the title from openSUSE 10.2 to openSUSE 11.1 and root from <code>\/dev\/sda8<\/code> to <code>LABEL=opensuse-11.1<\/code>.<br \/>\nTo update the location of the new partion in the file system, I mounted the new opensuse-11.1 partition and edited \/mnt\/new\/etc\/fstab to change the entry for the root to point to the new partition, <code>LABEL=opensuse-11.1<\/code>.<br \/>\nI rebooted and made sure both copies of openSUSE still worked.  For each, I ran <code>df \/<\/code> to see that the correct file system was mounted (verified the label location as root with <code>e2label \/dev\/sda6<\/code> and <code>e2label \/dev\/sda8<\/code>).<br \/>\n<a href=\"http:\/\/en.opensuse.org\/Installation\/11.1_DVD_Install\">Perform the upgrade<\/a>.<br \/>\nAfter the upgrade, I booted openSUSE 11.1 and edited the Grub configuration to restore the 10.2 entry and copied the backed up kernel files to \/boot.  One more reboot checked that the old 10.2 installation still worked.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before upgrading, it&#8217;s useful to have the partition layout written down. Here&#8217;s Pinto&#8217;s (from parted&#8217;s &#8220;print&#8221; command): 1 32.3kB 14.0GB 14.0GB primary ntfs , , , , , , , , , type=07, , 3 17.2GB 18.2GB 1045MB primary ext3 boot, , , , , , , , , type=83, , 4 18.2GB 54.7GB 36.4GB [&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-210","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\/210","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=210"}],"version-history":[{"count":34,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":244,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions\/244"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}