{"id":6088,"date":"2016-07-29T22:35:43","date_gmt":"2016-07-29T14:35:43","guid":{"rendered":"http:\/\/rmohan.com\/?p=6088"},"modified":"2016-07-29T22:35:43","modified_gmt":"2016-07-29T14:35:43","slug":"rebuilding-the-initrd-rhel-3-4-5-and-initramfs-rhel-6-7","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6088","title":{"rendered":"Rebuilding the initrd RHEL 3, 4, 5 and initramfs RHEL 6, 7"},"content":{"rendered":"<p>Rebuilding the initrd (RHEL 3, 4, 5)<\/p>\n<p># cp \/boot\/initrd-$(uname -r).img \/boot\/initrd-$(uname -r).img.$(date +%m-%d-%H%M%S).bak<br \/>\n# mkinitrd -f -v \/boot\/initrd-$(uname -r).img $(uname -r)<\/p>\n<p>If you are in a kernel version different to the initrd you are building (including if you are in Rescue Mode) you must specify the full kernel version, without architecture:<\/p>\n<p># mkinitrd -f -v \/boot\/initrd-2.6.18-348.2.1.el5.img 2.6.18-348.2.1.el5<\/p>\n<p>Rebuilding the initramfs (RHEL 6, 7)<\/p>\n<p># cp \/boot\/initramfs-$(uname -r).img \/boot\/initramfs-$(uname -r).img.$(date +%m-%d-%H%M%S).bak<br \/>\n# dracut -f -v<\/p>\n<p>If you are in a kernel version different to the initrd you are building (including if you are in Rescue Mode) you must specify the full kernel version, including architecture:<\/p>\n<p># dracut -f \/boot\/initramfs-2.6.32-220.7.1.el6.x86_64.img 2.6.32-220.7.1.el6.x86_64<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rebuilding the initrd (RHEL 3, 4, 5)<\/p>\n<p># cp \/boot\/initrd-$(uname -r).img \/boot\/initrd-$(uname -r).img.$(date +%m-%d-%H%M%S).bak # mkinitrd -f -v \/boot\/initrd-$(uname -r).img $(uname -r)<\/p>\n<p>If you are in a kernel version different to the initrd you are building (including if you are in Rescue Mode) you must specify the full kernel version, without architecture:<\/p>\n<p># mkinitrd -f [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6088"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6088"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6088\/revisions"}],"predecessor-version":[{"id":6089,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6088\/revisions\/6089"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}