[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: rescue disk



At 12:03 PM 7/18/95 +0530, you wrote:
>I have installed redhat 5.2 from pcq cd.
>After that i have installes win95 so my mbr is overwritten
>Now my rescue disk become currupeted so i can not replace my old mbr.
>Only thing i have is pcq cd of april month which is bootable.
>What should i do?
>Kunal
>

Your Red Hat/PCQ Linux CD had a directory called 'Dosutils' this contains
the file 'loadlin.exe' and the 'vmlinuz' kernel file in the 'autoboot'
sub-directory. Copy both files to (say) the c:\linux\ directory in your
win95 partition.
Then boot into DOS Mode. You don't need to copy the files to your
hard-disk, if you can use your CD-ROM in DOS mode.
Then type the following command on the DOS prompt - 

> c:\linux\loadlin c:\linux\vmlinuz root=/dev/hda5

if you have copied the files to your primary hard-disk in the linux
directory, and

> x:\dosutils\loadlin c:\dosutils\autoboot\vmlinuz root=/dev/hda5
if you have the files on the CD.

Also I assume /dev/hda5 is your Linux root partition. Your computer will
now boot into linux.

I wouldn't recommend running the command from the DOS Prompt under windows.
It is similar to restarting your computer without a proper shutdown.

If you think you like loadlin, then you can copy your kernel to your dos
partition and add the following lines to the beginning of your autoexec.bat
file.

       rem
______________________________________________________________________
               @echo off
               cls
               echo.
               echo.
               echo.
               echo.
               choice /t:n,5 "Do you wish to boot Linux? "
               if errorlevel 2 goto End
               c:\linux\loadlin c:\linux\vmlinuz root=/dev/hda5
               :End
       rem
______________________________________________________________________

For this, the loadlin.exe and vmlinuz (or your kernel) files should exist
on your dos partition.

However lilo is the recommended option.

To restore lilo to your mbr, run

lilo -v 

at the command-line after logging in as root.



- -Rajesh J Advani
r.j.advani@xxxxxxxx
Live and let Live
... and use Linux.


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Please do not post HTML email to this mailing list.  HTML mails will be
thoroughly ignored and derisively sniggered at in private.

------------------------------

End of Linux India Digest V1 #112
*********************************

--------------------------------------------------------------------
To unsubscribe send an email to majordomo@xxxxxxxxx with the word
'unsubscribe linux-india-digest' (without the quotes) in the body
of the email.