{"id":7,"date":"2007-02-01T10:36:38","date_gmt":"2007-02-01T18:36:38","guid":{"rendered":"http:\/\/jim-zimmerman.com\/blog\/?p=7"},"modified":"2007-05-20T05:57:12","modified_gmt":"2007-05-20T13:57:12","slug":"howto-install-linux-via-grub","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=7","title":{"rendered":"Howto Install linux via grub."},"content":{"rendered":"<p>What I used to install FC6 on the dell4100, from the information found on the<br \/>\nweb below my write up.<\/p>\n<p>1) Copy vmlinuz and initrd from isolinux directory on the first CD,<br \/>\nto \/boot of the machine you want to install on.<br \/>\n2) Create grub entry on the machine you want to install on.<br \/>\ntitle Fedora Core 6 Install<br \/>\nkernel \/vmlinuz-fc6install<br \/>\ninitrd \/initrd-fc6install.img<br \/>\n3) Setup up FTP, NFS or HTTP install location.<br \/>\n4) Boot installation target, and choose Fedora Core 6 Install.<br \/>\n5) When prompted, select the method that you setup in step 3.<\/p>\n<p>How I setup install to use HTTP:<br \/>\n1) Copied the install to a common directory by mounting each CD using  You<br \/>\ncan overwrite on not overwrite the file prompted about.  They are not<br \/>\nimportant or are the same:<br \/>\nmount -t iso9660 -o loop FC-6-i386-disc1.iso \/mnt\/tmp<br \/>\ncp -r \/mnt\/tmp\/* \/home\/FC6<br \/>\n2) After all the CDs are copied, set the permissions to:<br \/>\ndrwxr-xr-x  7 root    root          4096 Oct 25 09:59 FC6<\/p>\n<p>chown -R 755 \/home\/FC6<br \/>\n3) Create link in web server directory:<br \/>\nlrwxrwxrwx 1 root root 10 Oct 25 10:11 FC6 -> \/home\/FC6\/<\/p>\n<p>cd \/var\/www\/html<br \/>\nln -s \/home\/FC6<\/p>\n<p>============================================================================<\/p>\n<p>From the web:<\/p>\n<p>1.  Loopmount diskboot.img<br \/>\n2.  Copy vmlinuz and initrd.img (with unique names) to your \/boot directory<br \/>\n3.  Configure grub (you should be on grub with RH7.3) to boot from the<br \/>\ncopied kernel<br \/>\n4.  At boot time type &#8216;linux askmethod&#8217; and you&#8217;ll get to specify the<br \/>\nCDROM<\/p>\n<p>I used this method to install FC3 online.  Just downloaded the boot.iso<br \/>\nand chose &#8216;ftp&#8217; as the install method&#8230;<\/p>\n<p>or<\/p>\n<p>1.  Copy boot.iso to your hard disk<br \/>\n2.  Configure grub to boot from the iso [0]<br \/>\n3.  At boot time type &#8216;linux askmethod&#8217; and you&#8217;ll get to specify the<br \/>\nCDROM<\/p>\n<p>This assumes that there is a suitable scsi driver available in the<br \/>\ninitrd.img.  If not, you can go about it this way.<\/p>\n<p>1.  copy the contents of the CDs to the hard disk (second and subsequent<br \/>\nCDs&#8217; rpm files go in the RPMS directory copied from the first CD<br \/>\n2.  Use either of the above boot methods and specify &#8216;hard disk&#8217; as the<br \/>\nsource.<\/p>\n<p>NB.  Make sure you copy the CD contents to a filesystem that is _not_<br \/>\ngoing to be formatted at install time otherwise there&#8217;ll be nothing<br \/>\nthere for the installer to use!<\/p>\n<p>Conor<\/p>\n<p>[0] Booting direct from an iso is mentioned here:<br \/>\nhttp:\/\/www.linux.ie\/lists\/pipermail\/ilug\/2005-February\/022062.html<\/p>\n<p>Basically, it&#8217;s:<\/p>\n<p>grub> chainloader hd(0,0)\/image.iso<br \/>\ngrub> boot<br \/>\n&#8212;<br \/>\nConor Daly <conor.daly at oceanfree.net><\/p>\n<p>The loopmount is so you can get at the vmlinuz and initrd.img that you&#8217;re<br \/>\ngoing to use to boot from.  Where did you get the files you copied?  When<br \/>\nyou say you modified grub.conf, do you mean to say you changed the<br \/>\nexisting boot config rather than adding an extra one?  Ooops!  You&#8217;ll be<br \/>\nable to boot your original system in any case by using the grub shell at<br \/>\nboot time.  My RH9 grub.conf has two sections, one to boot the system and<br \/>\none to boot the FC3 installer (I plugged the spare disk into this machine<br \/>\nto start the install&#8230;).  Each section looks like this:<\/p>\n<p>title Red Hat Linux (2.4.20-8)<br \/>\nroot (hd0,0)<br \/>\nkernel \/boot\/vmlinuz-2.4.20-8 ro root=\/dev\/hda1 hdc=ide-scsi<br \/>\ninitrd \/boot\/initrd-2.4.20-8.img<br \/>\ntitle Fedora Core 3 install<br \/>\nroot (hd0,0)<br \/>\nkernel \/boot\/vmlinuz-FC3-install text askmethod<br \/>\ninitrd \/boot\/initrd-FC3-install.img<\/p>\n<p>The &#8220;Red Hat Linux&#8221; section boots my main kernel and your main kernel will<br \/>\nlook similar but with different version numbers.  The &#8220;Fedora Core 3<br \/>\ninstall&#8221; section boots the installer&#8217;s kernel instead.  You need to modify<br \/>\nyour grub.conf so that you have both sections.  This actually won&#8217;t matter<br \/>\nonce the upgrade happens since it will overwrite your grub.conf but, in<br \/>\nthe meantime&#8230;<\/p>\n<p>Since you can&#8217;t boot your RH7.3 kernel at present, you can go about things<br \/>\ntwo ways.  1.  Boot interactively using grub.  2.  Boot the installer,<br \/>\nmount your current partitions, edit grub.conf and reboot.<\/p>\n<p>1.  Interactively using grub<br \/>\no boot the machine, at the grub screen, press &#8216;e&#8217; to edit<br \/>\no select the &#8216;kernel&#8217; line and press &#8216;e&#8217; again to edit<br \/>\no Set the kerenl line to the correct vmlinuz-&#8230; root=\/dev\/hd&#8230; and press<br \/>\n<enter><br \/>\no select the &#8216;initrd&#8217; line and press &#8216;e&#8217; to edit<br \/>\no set the initrd line to the correct initrd&#8230; and press <enter><br \/>\no press &#8216;b&#8217; to boot<br \/>\no once booted, edit \/etc\/grub.conf to include correct values.<\/p>\n<p>2.  Using the FC installer<br \/>\no boot the machine, at the grub screen, press &#8216;e&#8217; to edit<br \/>\no select the &#8216;kernel&#8217; line and press &#8216;e&#8217; again to edit<br \/>\no remove the &#8216;askmethod&#8217; keyword and instead type &#8216;rescue&#8217; and press<br \/>\n<enter><br \/>\no press &#8216;b&#8217; to boot<br \/>\no once booted, it should tell you where your original system is mounted<br \/>\nit may even do a chroot <wherever your system is><br \/>\no edit \/etc\/grub.conf to include correct values.<br \/>\no type &#8216;exit&#8217; to reboot.<\/p>\n<p>That should get you back to being able to boot your RH7.3 system.  Of<br \/>\ncourse, you could just go ahead and run the FC3 installer and do the<br \/>\nsystem upgrade&#8230;<\/p>\n<p>Conor`<br \/>\n&#8212;<br \/>\nConor Daly <conor.daly at oceanfree.net><\/p>\n<p>Domestic Sysadmin \ud83d\ude42<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nHobbiton.cod.ie<br \/>\n10:34:05  up 2 days, 21:54,  1 user,  load average: 0.04, 0.03, 0.00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What I used to install FC6 on the dell4100, from the information found on the web below my write up. 1) Copy vmlinuz and initrd from isolinux directory on the first CD, to \/boot of the machine you want to install on. 2) Create grub entry on the machine you want to install on. title [&#038;hellip<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-documentation"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":0,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}