LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-12-2002, 04:17 AM   #1
leihsun
Member
 
Registered: Jan 2002
Location: taipei
Posts: 39

Rep: Reputation: 15
how to make boot.img


There is a file on RedHat installation cdrom called "boot.img".
Is there anyone know how to build this file?
 
Old 07-12-2002, 05:05 AM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You copy the "boot.img" to a floppy. If you have a linux system that is working, you can use the dd command to copy the boot.img file to the floppy disk. You would mount the cdrom disk and then run:
dd if=<path_to_boot.img> of=/dev/fd0.

If you don't have a linux system that is working, you can use the rawrite.exe program to copy the file. You can find rawrite.exe on the RedHat cdrom disk. It might be in a directory named "dosutils". Also, there are probably README files in there about using rawrite.exe.

Last edited by linuxcool; 07-12-2002 at 05:06 AM.
 
Old 07-12-2002, 07:33 AM   #3
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691

Rep: Reputation: 45
Quote:
You copy the "boot.img" to a floppy.
Actually, you don't "copy" it, you must write it using either the Linux "dd" utilty or DOS/Windows "rawrite.exe" or "rawritent.exe" programs. A technical point, perhaps, but a difference that can cause some misunderstanding.
 
Old 07-14-2002, 08:18 PM   #4
leihsun
Member
 
Registered: Jan 2002
Location: taipei
Posts: 39

Original Poster
Rep: Reputation: 15
Both dd and rawrite are writing the image file to floopy disk. This is what I already known. I want to create the image file, and then write to disk. The file step "create the image" is my question.
 
Old 07-14-2002, 09:06 PM   #5
turnip
Member
 
Registered: Jul 2002
Posts: 143

Rep: Reputation: 15
dd if=/dev/hda1 bs=512 count=1 of=/dev/fd0/boot.img

where hda1 is the / partition
 
Old 07-15-2002, 01:04 AM   #6
leihsun
Member
 
Registered: Jan 2002
Location: taipei
Posts: 39

Original Poster
Rep: Reputation: 15
I had ever use that way. It can work with floppy disk, but hard disk fail. So how to make a boot.img to fit for hard disk?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make initrd.img? zahadumy Slackware 2 11-13-2005 09:05 AM
how to make initrd.img for your kernel without boot disk? donaldtalbert Linux - Software 1 06-19-2005 10:30 PM
Why use boot.img tacoshell Fedora - Installation 1 10-06-2004 04:45 PM
command to make initrd.img utanja Debian 12 09-06-2004 12:18 PM
.img burner or way to boot from a .img American Psycho Linux - Software 4 03-24-2004 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration