justlinux.com
Sun, 06-Jul-2008 12:57:06 GMT
internet.com
Forum: Registered Users: 72406, Online: 270
nhfs Here you can view your subscribed threads, work with private messages and edit your profile and preferences Registration is free! Calendar Find other members Frequently Asked Questions Search Home Home

Help File Library: How To Create a Boot Disk in Linux


Written By: Tcrompton

Like everything in Linux, there's more then one way to do it. I'll describe the two more popular ways.

First locate the kernel image you are currently using. If you use LILO, have a look at the /etc/lilo.conf file. Here's an example lilo.conf file:

 boot=/dev/hda1
 map=/boot/map
 install=/boot/boot.b
 prompt
 timeout=0
 image=/boot/vmlinuz
        label=linux
        root=/dev/hda7
        read-only

The image= option indicates which kernel image you're using.

Sometimes image= points to a symlink (a shortcut file for you Windows users). You'll need to know the actual file that the symlink points to:


ls -al /boot/vmlinuz
lrwxrwxrwx 1 root root 20 Feb 19 18:32 /boot/vmlinuz -> vmlinuz-2.2.14-15mdk

Here vmlinuz points to vmlinuz-2.2.14-15mdk.

Method #1, The dd Command

Now we'll use the dd command to copy the kernel image to a floppy disk. Insert the floppy disk prior to entering the dd command, but don't mount it. dd needs to write raw data to the disk, which is not possible if you mount the drive. Now type the following as root:
dd if=/boot/vmlinuz of=/dev/fd0 bs=8192

This is okay because dd follows the symlink to the right file (vmlinuz-2.2.14-15mdk). You could have also used the complete file name.

dd if=/boot/vmlinuz-2.2.14-15mdk of=/dev/fd0 bs=8192

Method #2, The mkbootdisk Command

mkbootdisk needs to know the version of your kernel. In this example, the version is 2.2.14-15mdk, which is just the last part of vmlinuz-2.2.14-15mdk. If your kernel doesn't have any version information in the filename, pick the latest kernel version from the /lib/modules directory.

ls /lib/modules
2.2.13-22mdk  2.2.14-15mdk

Now type the following as root:

mkbootdisk --verbose --device /dev/fd0 2.2.14-15mdk

With the method, we have the option of using a rescue disk along with our boot disk at boot time. A rescue disk contains various utilities to fix problems in Linux.

Now that you have created a boot disk using Method #1 or #2, test the boot disk out by rebooting the computer with the disk still in the drive. This is an important step, otherwise you won't know whether it will work when you need it.

If you're locked out of Linux, and require a boot disk to get back in or the boot disk you have doesn't work, this page contains links to pre-made boot disks: http://www.linuxdoc.org/HOWTO/Bootdisk-HOWTO/premade.html

If you have access to a DOS machine, I recommend the Small Floppy Rescue System:
http://www.ibiblio.org/pub/Linux/system/recovery/ramf-90.exe

For more information on Linux boot disk or creating your own rescue disk, consult the Linux Bootdisk HOWTO at:
http://www.linuxdoc.org/HOWTO/Bootdisk-HOWTO/index.html


internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers
internet.commerce
Be a Commerce Partner
Find Project Software
Promos and Premiums
KVM Switch over IP
Online Shopping
Laptops
Desktop Computers
Web Hosting Directory
Computer Deals
Calling Cards
Best Price




JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM eBook: Planning a Service Oriented Architecture
IBM eBook: Choosing the Right Architecture--What It Means for You and Your Business
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Avaya Article: Using Intelligent Presence to Create Smarter Business Applications
Intel Go Parallel Article: Getting Started with TBB on Windows
Microsoft Article: 7.0, Microsoft's Lucky Version?
Avaya Article: How to Feed Data into the Avaya Event Processor
IBM Article: Developing a Software Policy for Your Organization
Microsoft Article: Managing Virtual Machines with Microsoft System Center
Intel Go Parallel Article: Intel Threading Tools and OpenMP
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
HP Video: StorageWorks EVA4400 and Oracle
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Red Gate Download: SQL Toolbelt and free High-Performance SQL Code eBook
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Silverlight 2 App and Walkthrough: Leverage Silverlight 2 with SQL Server and XML
IBM Article: Enterprise Search--Do You Know What's Out There?
HP Demo: StorageWorks EVA4400
Microsoft Article: The Progress and Promise of Deep Zoom
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES