Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Linux Resources > Linux Tutorials, HOWTO's & Reference Material > How to set up a Fedora Core 4 on a USB disk drive

Forgot Password?
 Linux Tutorials, HOWTO's & Reference Material   A useful collection of tutorials, guides and reviews compiled here for easy reference purposes.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
 
Thread Tools Display Modes
Old 12-20-2005   #1 (permalink)
Trusted Penguin
 
Roxoff's Avatar
 
Join Date: Aug 2005
Location: Nottingham, England
Posts: 2,836
How to set up a Fedora Core 4 on a USB disk drive

Before you start, make sure your pc will boot off the USB drive - this is a bios setting, turn on the PC with the drive already attached and see if the bios gives the option to boot from it. If all is working, proceed as follows:

Install FC4 using the 'linux expert' command line boot option, the USB drive appears as /dev/sda, so partition and install to that drive. When asked, make sure that grub is installed to the boot sector of the USB drive. This is very important.

Once the system is in, boot up off the rescue CD, dont bother getting it to try and find your linux system, skip that stage and go to the command line. Now mount the / partition on /mnt/system (or whatever mount point it gives you) and the /boot partition on /mnt/system/boot.

Use chroot to change the root to /mnt/system (or wherever you mounted your drives to) and cd to /boot.

now issue the following command:

mkinitrd --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod /boot/[initrdname]-usb.img [kernel-no., as per the kernel you're loading, e.g. 2.6.12-...FC4]

the initrdname should be the same as the kernel, so you can identify it if you upgrade the kernel later - take a look at the existing .img file so you get a good idea what to call it. The kernel number is the same as the kernel you're loading, for instance my kernel filename might be 'vmlinuz-2.6.11-1.1369_FC4', so i'd put '2.6.11-1.1369_FC4' in this field.

Edit /boot/grub/grub.conf and make sure the entry for the kernel you're going to be booting uses the new ...-usb.img file not the original img file.

reboot the computer off the USB drive and check that everything works.

You'll need to repeat this each time you upgrade the kernel, but you dont need to use the rescue disk every time. After your yum or apt update, just cd back to the /boot directory and start from the mkinitrd command with the new kernel info, update grub and reboot.

And there you have it, a fully working USB boot! I keep a brief reminder of these instructions in a text file in my /boot partition, just so I dont forget how to do it on the infrequent occasions that the kernel is updated.
__________________
Linux user #126863 - see http://counter.li.org/
Roxoff is offline  


 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:31 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2