{"id":296,"date":"2012-06-01T16:17:06","date_gmt":"2012-06-01T10:47:06","guid":{"rendered":"http:\/\/asgaur.com\/wp\/?p=296"},"modified":"2012-06-01T16:17:06","modified_gmt":"2012-06-01T10:47:06","slug":"linux-create-bootable-usb-pen-drive-for-installation","status":"publish","type":"post","link":"http:\/\/www.asgaur.com\/wp\/linux-create-bootable-usb-pen-drive-for-installation\/","title":{"rendered":"Linux: create bootable USB pen drive for installation"},"content":{"rendered":"<p><!-- Adsense block #904 not displayed since it exceed the limit of 3 --><!-- Adsense block #905 not displayed since it exceed the limit of 3 --><!-- Adsense block #906 not displayed since it exceed the limit of 3 --><\/p>\n<p>The server I need to install Red Hat Enterprise Linux on does not have a floppy drive or CD-rom drive, but it has a USB port. What are the steps to configure a USB pen drive to boot and install Red Hat Enterprise Linux? <br \/>\nTo configure a USB flash\/pen drive perform the following steps:<\/p>\n<p>1.\tFormat the USB flash drive as one FAT partition. <\/p>\n<p>2.    <code> # mkdosfs \/dev\/ <\/code><\/p>\n<p>3.\tCopy the contents of \/RedHat\/isolinux\/ from the first installation CD to the USB flash drive. NOTE: isolinux.bin, boot.cat and TRANS.TBL can be removed or deleted. <\/p>\n<p>4.\tRename isolinux.cfg to syslinux.cfg. <\/p>\n<p>5.\tCopy \/RedHat\/images\/pxeboot\/initrd.img from the first installation CD to the USB flash drive. <\/p>\n<p>6.\tOPTIONAL: To configure any boot settings, edit the syslinux.cfg on the USB flash drive. For example to configure the installation to use a kickstart file shared over NFS,specify the following: <\/p>\n<p>7.\t<code># linux ks=nfs::\/\/ks.cfg<\/code><\/p>\n<p>8.\tMake the USB flash drive bootable. Be sure to UNMOUNT the USB flash device. <\/p>\n<p>9.\t<code># umount \/dev\/<\/code><\/p>\n<p>10.\t<code># syslinux \/dev\/<\/code><\/p>\n<p>11.\tInstall GRUB on the USB flash drive.<\/p>\n<p>12.\t<code># mount \/dev\/ \/path\/to\/local\/USB\/mount<\/code><\/p>\n<p>13.\t<code># grub-install --root-directory=\/path\/to\/local\/USB\/mount \/dev\/<\/code><\/p>\n<p>14.\tVerify that the USB flash drive has a \/boot\/grub directory. If it does not, create the directory manually. <\/p>\n<p>15.\t<code># cd \/path\/to\/USB\/local\/mount<\/code><\/p>\n<p>16.\t<code># mkdir -p \/boot\/grub<\/code><\/p>\n<p>17.\tCreate the grub.conf file. Below is a sample grub.conf: <\/p>\n<p>\t<em>default=0<br \/>\n\ttimeout=5<br \/>\n\troot (hd1,0)<br \/>\n\ttitle<br \/>\n\tkernel \/vmlinuz<br \/>\n\tinitrd \/initrd.img<\/em><\/p>\n<p>18.\tCopy or confirm the created grub.conf file is on the \/boot\/grub\/ directory of the USB flash drive.<\/p>\n<div class=\"item_footer\">\n<p><small><a href=\"http:\/\/asgaur.com\/asgaur.php\/2009\/06\/29\/linux-create-bootable-usb-pen-drive-for\" target=\"_blank\" rel=\"noopener\">Original post<\/a> blogged on <a href=\"http:\/\/b2evolution.net\/\" target=\"_blank\" rel=\"noopener\">b2evolution<\/a>.<\/small><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The server I need to install Red Hat Enterprise Linux on does not have a floppy drive or CD-rom drive, but it has a USB port. What are the steps to configure a USB pen drive to boot and install Red Hat Enterprise Linux? To configure a USB flash\/pen drive perform the following steps: 1. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/comments?post=296"}],"version-history":[{"count":0,"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/posts\/296\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/media?parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/categories?post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.asgaur.com\/wp\/wp-json\/wp\/v2\/tags?post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}