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.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Linux Resources > Linux Tutorials, HOWTO's & Reference Material
Reload this Page How to set up a Fedora Core 4 on a USB disk drive
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

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

 
 
Thread Tools Display Modes
Old 12-20-2005   #1 (permalink)
Roxoff
Linux Guru
 
Roxoff's Avatar
 
Join Date: Aug 2005
Location: Nottingham, England
Posts: 2,346
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/
My Blog
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


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

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0