Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 11-15-2006, 11:05 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Booting RHEL 4 from a USB flash drive

What I am trying to do is put something on my Lexar JumpDrive (128MB) that will allow me to boot to an existing Linux partition on my computer. First, some background. I have a dual boot Dell Latitude 610 laptop. The Windows XP partition is encrypted. As a result of this I can't mess with the Master Boot Record. (I tried installing GRUB on the MBR with the loss of my Windows partition; for some reason the commercial encryption software needs to start from the MBR).
I was able to load RHEL 4 onto a Linux partition and using mkbootdisk --iso <boot_version> I was able to create an ISO file that I burned onto a CD. I now boot into Linux by booting off of that CD (that is I start the computer with the boot CD in the drive and have my boot order set to USB, CDROM, C drive). So every time the kernel changes I need to create a new ISO file and burn a new boot CD (the boot CD has about 2MB of stuff on it).
Then I thought, why not do the same thing only from a flash drive? My computer will boot from a USB device. Then when the kernel changes, I only need to update the flash drive and save creating yet another boot CD; plus I can actually use a 128MB flash drive for something useful.
I have casted around on how to do this. I know several ways that don't work. Copying the boot CD onto the flash drive, using mkbootdisk --device <device name for the mount flash drive e.g. /dev/sba> <kernel_version>, and any other combination of arguments for mkbootdisk all don't work. What I am not trying to do is run Linux from the flash drive. I am trying to get the same capability with the flash drive as I have with the CD without continually buring new CDs (environment friendly).
Sorry about the long winded question. TIA.

Old 11-16-2006, 05:15 AM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
Why not just let the Windows bootloader boot RHEL4???
Old 11-16-2006, 08:31 AM   #3
LQ Newbie
Registered: Aug 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks. That worked like a champ. I guess that I focussed in on one solution and ignored the obvious. I did have a few alternations to this solution that might be helpful to others. First, I don't have a /boot partition, but doing the same dd command on the / partition worked fine. Second, when I went to edit the boot.ini file in Windows, I could not find it. In XP Professional, Windows hides the file, but it can be edited by opening the control panel and go to system->Advanced tab->Settings under Startup and Recovery->Edit and add the line specified in the link above. Thanks again.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a usb thumb drive or flash drive as a swap partition. stevenjoseph Linux - Hardware 8 01-16-2012 12:09 PM
Booting from USB flash drive is my only option? ex0r Linux - Laptop and Netbook 1 11-03-2006 04:25 AM
LXer: Booting Knoppix from a USB flash drive LXer Syndicated Linux News 0 04-18-2006 08:54 PM
Help booting USB flash drive with DSLinux Backstander DamnSmallLinux 4 02-22-2006 04:56 PM
how to mount usb flash memory on RHEL 3.0 Owen_Townsend Red Hat 2 12-19-2004 01:32 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration