Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I hope to create the boot disk after installation of RedHat 9. I used the mkbootdisk command........
but it doesn't workTried Method:
(1)followed the Red Hat customization Guide in terminal, login as root, type the following command/sbin/mkbootdisk 'uname -r'
However, the result is
line80 :[: /lib/modules/uname: binary operator expected
/lib/modules/name -r is not a directory(2)After reading man mkbootdisk, I found that i need to provide the kernel version
so I used "rpm -qa | grep kernl" to determin which kernel version I am using
but the system told me
"/boot/vmlinuz-2.4.20-8smp does not exist"
when this command was issued
"mkbootdisk 2.4.20-8smp"Please Help

Log in as root and change to /boot directory and type the following line, assuming that you know the name of the kernel in that directory,
dd if=vmlinuz-2.4.20 of=/dev/fd0
taurus

Which quotes did you use? ' or ` ? You need to use backticks instead of single quotes.
Alternatively just use the mkbootdisk command with no options:
# mkbootdisk

from windows and using redhat cd1 try:
x:\dosutils\rawritewin\rawwritewin.exe
where x is your cdrom drive.
using this utility and knowing that the image file you need is located at:
x:\images\bootdisk.img
you will get a boot disk for redhat linux 9

thank you all
To taurus,
I tried this method. But , "No such file or directoryTo 3Dave,
I have try boot quotes ` or '
and I also tried the mkbootdisk without optionBut after typing mkbootdisk, the linux just show the something I can see after issuing the man mkbootdisk
Please Kindly help me again

Sounds like you could have a separate boot partition which is not mounted by default (quite a sensible thing if you ask me). Does the command "mount /boot" do anything? If it comes back with "cant find /boot in /etc/fstab" then there really should be more than just kernel.h in /boot.

thank 3Dave
After issuing, "mount /boot"
the system respond
"LABEL =/boot duplicate -not mount"after some investigation, I found that there is another harddisk that contain the redhat 7.2.
I would like to ask how to deal with this problem?(i.e have another harddisk with other boot record, this harddisk can be formatted

I'm not quite sure what you want to do. Can you post up your /etc/fstab.
You can copy the boot sector from one hard drive to the other with:
# dd if=/dev/hda of=/dev/hdb bs=512 count=1
That copies from primary master to primary slave.Better though would be to reinstall your boot loader, eg if you are using lilo, edit /etc/lilo.conf so that boot=/dev/hdX where hdX is where you want to install it and then run the command lilo.

Thank 3Dave.
Here is the /etc/fstabLABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/sda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,r
o 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0By the ways, How can I re-formatted one of the harddisk ??? Can I solve the problem ?
Deep Thanks

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |