<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>RHEL/CentOS 5.1 install</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=421245316-30042008>I have some notes about what it took to make bootable
usb sticks for an existing system. Many of the same steps will apply and should
give you an idea about making bootable devices with grub. The notes use ext2
though, which you probably want to change to ext3... </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=421245316-30042008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=421245316-30042008>Notes follow:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=421245316-30042008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=421245316-30042008>insert usb stick, ---> /dev/sdb<BR>fdisk
/dev/sdb<BR>-- n - create partition<BR>-- p - primary partition<BR>-- a - mark
bootable<BR>-- w - write changes<BR>-- q - quit</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=421245316-30042008>mke2fs -j /dev/sdb1</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=421245316-30042008>tune2fs -c 0 -i 0 /dev/sdb1</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><FONT><SPAN
class=421245316-30042008>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2></FONT><BR><FONT
face=Arial color=#0000ff size=2>mkdir /mnt/usbstick</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>mount
/dev/sdb<SPAN class=421245316-30042008>1</SPAN> /mnt/usbstick</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>cp -av /boot
/mnt/usbstick</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>grub info<BR>--
find /boot/grub/stage1 ---> (hd0,0) and (hd1,0) or whatever - say hd1,0
is usb, for sake of example<BR>-- root (hd1,0)<BR>-- setup (hd1) --->
messages will scroll, should say successful at end<BR>-- quit</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>vi
/mnt/usbstick/boot/grub/device.map<BR>-- change to (hd1) /dev/sdb
---> **hdx should match whatever parameter you give setup in grub
shell**</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>vi
/mnt/usbstick/boot/grub/menu.lst<BR>-- for all kernels, change root line to
read: root (hd0,0)</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>set bios to boot
from usb, done. </FONT></SPAN></FONT></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nflug-bounces@nflug.org
[mailto:nflug-bounces@nflug.org] <B>On Behalf Of </B>Robert
Wolfe<BR><B>Sent:</B> Wednesday, April 30, 2008 12:50 PM<BR><B>To:</B>
nflug@nflug.org<BR><B>Subject:</B> [nflug] RHEL/CentOS 5.1
install<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/plain format --><BR>
<P><FONT size=2>Hi all!<BR><BR>I have a 250GB external USB hard drive at work
and was wondering if it would be possible to install either RHEL or CentOS on
it and be able to boot from it since my workstation supports that
feature? And, if so, what preparations would I need to do to make that
happen?</FONT></P></BLOCKQUOTE></BODY></HTML>