{"id":107,"date":"2011-07-09T17:34:54","date_gmt":"2011-07-09T17:34:54","guid":{"rendered":"http:\/\/www.davidhedges.info\/?p=107"},"modified":"2018-06-03T17:35:45","modified_gmt":"2018-06-03T17:35:45","slug":"how-to-move-the-boot-partition-in-suse-linux-11-x","status":"publish","type":"post","link":"https:\/\/www.davidhedges.info\/index.php\/2011\/07\/09\/how-to-move-the-boot-partition-in-suse-linux-11-x\/","title":{"rendered":"How to move the \/boot partition in Suse Linux 11.x"},"content":{"rendered":"<p>I was wanting to test moving the boot partition from where is it placed by default in SuSe (suse places it in \/dev\/sda1 and makes it 70MB by default&#8230; way to small). The problem I found was I was having a lot of trouble finding a good document on this. I thought I would post the procedure I used as an example. Hopefully it will be helpful to others.<\/p>\n<p>1. start by creating you new partition:<br \/>\nyast2 -&gt; partitioner<br \/>\nAdd a partition -&gt; primary partition -&gt; choose a partition size -&gt; format partition, do not mount -&gt; finish<br \/>\n2. create a temp directory and mount the partition<br \/>\n#mkdir \/mnt\/newboot<br \/>\n#mount \/dev\/sdax \/mnt\/newboot<br \/>\n3. copy \/boot partition data<br \/>\n#cp -dpR \/boot\/* \/mnt\/newboot<br \/>\n4. unmount your partitions and swap them around<br \/>\n#umount \/boot<br \/>\n#umount \/mnt\/newboot<br \/>\n#mount \/dev\/sdax \/boot<br \/>\n4. update the menu.lst file<br \/>\n#vi \/boot\/grub\/menu.lst<br \/>\nchange all of the hd(0,0) references, or whatever the default was to the correct drive. (ex. \/dev\/sda1 = hd(0,0) | \/dev\/sda3 = hd(0,2) | \/dev\/sdb1 = hd(1,0))<br \/>\n5. update fstab<br \/>\n#vi \/etc\/fstab<br \/>\nedit the line with \/boot in it, and change the reference \/dev\/sdax to the correct partition<br \/>\n6. delete the old \/boot partiton ( I had found that unless you remove the old one it will continue to try to boot from it)<br \/>\nyast2 -&gt; partitioner<br \/>\ndelete the original boot partition<br \/>\n**** DO NOT REBOOT AT THIS POINT ****<br \/>\n7. fix the boot loader (suse will not let you run grub-install so you need to do this with yast)<br \/>\nyast2 -&gt; bootloader<br \/>\nselect &#8220;boot loader installation&#8221;<\/p>\n<p>Choose custom boot partition and specify the partition used (ex. \/dev\/sda3)<br \/>\nsave, and reboot<\/p>\n<p>At this point it should be booting from your new boot partition.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was wanting to test moving the boot partition from where is it placed by default in SuSe (suse places it in \/dev\/sda1 and makes it 70MB by default&#8230; way to small). The problem I found was I was having a lot of trouble finding a good document on this. I thought I would post [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","category-it-blog","entry"],"_links":{"self":[{"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":1,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":108,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/posts\/107\/revisions\/108"}],"wp:attachment":[{"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.davidhedges.info\/index.php\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}