Computing.Net > Forums > Linux > Creat Boot Disk in Red Hat 9 After

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Creat Boot Disk in Red Hat 9 After

Reply to Message Icon

Name: jackypkh
Date: December 5, 2003 at 01:33:37 Pacific
OS: Red Hat Linux 9
CPU/Ram: Proliant 1600 SMP
Comment:

I hope to create the boot disk after installation of RedHat 9. I used the mkbootdisk command........
but it doesn't work

Tried 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



Sponsored Link
Ads by Google

Response Number 1
Name: taurus
Date: December 5, 2003 at 02:46:11 Pacific
Reply:

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


0

Response Number 2
Name: 3Dave
Date: December 5, 2003 at 04:14:17 Pacific
Reply:

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


0

Response Number 3
Name: 3Dave
Date: December 5, 2003 at 04:15:31 Pacific
Reply:

BTW there is also a linux bootdisk HOWTO....


0

Response Number 4
Name: khalafallah
Date: December 7, 2003 at 17:02:59 Pacific
Reply:

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



0

Response Number 5
Name: jackypkh
Date: December 9, 2003 at 00:48:49 Pacific
Reply:

thank you all

To taurus,
I tried this method. But , "No such file or directory

To 3Dave,
I have try boot quotes ` or '
and I also tried the mkbootdisk without option

But after typing mkbootdisk, the linux just show the something I can see after issuing the man mkbootdisk


Please Kindly help me again



0

Related Posts

See More



Response Number 6
Name: jackypkh
Date: December 9, 2003 at 00:51:51 Pacific
Reply:

in addition, under the /boot directory, I just see only one file there ---kernel.h


0

Response Number 7
Name: 3Dave
Date: December 9, 2003 at 01:24:55 Pacific
Reply:

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.


0

Response Number 8
Name: jackypkh
Date: December 14, 2003 at 22:21:21 Pacific
Reply:

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


0

Response Number 9
Name: 3Dave
Date: December 15, 2003 at 01:28:36 Pacific
Reply:

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.


0

Response Number 10
Name: jackypkh
Date: December 23, 2003 at 17:51:44 Pacific
Reply:

Thank 3Dave.
Here is the /etc/fstab

LABEL=/ / 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 0

By the ways, How can I re-formatted one of the harddisk ??? Can I solve the problem ?

Deep Thanks



0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Creat Boot Disk in Red Hat 9 After

Help Install RPM in Red Hat 9.0 www.computing.net/answers/linux/help-install-rpm-in-red-hat-90/24833.html

Boot Loader for Red Hat 9 / Win 2k www.computing.net/answers/linux/boot-loader-for-red-hat-9-win-2k/25396.html

Wireless card in Red Hat 9 www.computing.net/answers/linux/wireless-card-in-red-hat-9/19847.html