File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes bootrecord of a linx bootdisk Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "bootrecord of a linx bootdisk" Watch "bootrecord of a linx bootdisk" New topic
Author

bootrecord of a linx bootdisk

Dieter Monstrey
Greenhorn

Joined: Mar 11, 2002
Posts: 1
hi,
I have three OS's running currently on my pc, on C: win 98, on D: win2k and RedHat 7.2 on a third partition. In the beginning I only had win98 and redhat, everything worked fine, I could boot with LILO. Due to serious problems with win98 I needed to reinstall. I decided I would like to run win2k as well and created another partition with bootmagic. so I reinstalled win98 on my C and win2k on my D. Off course my LILO was overwritten and lost. but I still could boot my RedHat with a bootdisk (after modifying the hda reference) and I could boot win98 and win2k with the win2k bootmanager.
I recently heard of a friend that it should be possible to boot RedHat with the win2k bootmanager. However since he was able to copy his bootrecord from his HD he wasn't sure where the bootrecord would be on my RedHat bootdisk, neither am I.
So this is my question, Is it possible to find the bootrecord on a bootdisk and if so, where can I find it ???
I know I will need to copy this bootrecord into a file so once I know the answer to the question above I should be able to continue.
If you have any further questions, don't hesitate to ask. Thanks
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Hi - Boot your Linux system from floppy.
Look at /etc/lilo.conf.
The 1st line in it should be:
boot=/dev/hd??
The /dev/hd?? is where the boot code is.
To copy it to a DOS/Win floop do:
# Insert a clean DOS floppy
mount /dev/fd0
dd if=/dev/hd?? of=/mnt/floppy/bootsect.lnx bs=512 count=1
umount /dev/fd0
Shutdown Linux, boot W2K.
Copy bootsect.lnx to C:\.
Edit C:\boot.ini (you probably have to unhide it and reset readonly 1st) to add a line at the bottom that says:
C:\bootsect.lnx="Linux"
This should get you a W2K boot option for Linux.
There is nothing 'magic' about the file name 'bootsect.lnx' - you can call it 'junk.dat' if you want to.
HTH, Guy
 
 
subject: bootrecord of a linx bootdisk
 
Threads others viewed
Install Red Hat 7.3 with windows already installed?
My wife on Linux
Problem booting Linux 7 plzzzzzzzzz help
Linux Installation
Partition Magic with win2k/redhat
IntelliJ Java IDE