Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more  

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Linux Operating System > Linux Talk > Tips and Tricks
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-31-2005, 08:18 AM   #1 (permalink)
sandman
Junior Member
 
Join Date: Jul 2005
Posts: 35
Default Creating a boot disk in Linux

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/Bootdi...O/premade.html
sandman is offline   Reply With Quote
Sponsored Links
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 06:27 AM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums