need help with booting, can't find a way to boot to linux now..

Searchalaz
Searchalaz used Ask the Experts™
on
Ok.. Once upon a time... oh (Edited by Computer101) it. well i installed linux, then i installed windows 98 then 2000 etc. so MBR has been overwritten, i can't find a way to boot to linux again, tried stuff like LOADLIN.EXE but it doesn't find my root system, which should be /dev/hda3 cause i can see it on explore2fs
i wan't to boot to linux again, i have o CD of it, only ISO in linux partition, so please help me ;)
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Kelly BlackSenior Linux / DBA / DEVOPS
Commented:
You will have to use the boot cdrom.

Boot from cdrom and at the command prompt you type

linux rescue

Remember, Windows 2000 claims the master boot record, and
will not boot otherwise.

To run a dual boot partition, you will need to install
Linux second on an empty partition, and use Loadlin or Grub.

~Kelly W. Black
Commented:
ok here is the way to do it
since u can see the linux partition on the explore2fs..
then extract the ISO image from linux partition to the windows partition..
then use some tool like
isobuster to browse the iso file
then in from the iso-browser.. extract the directories

dosutils
and
images

in dosutils u'll find utility called rawrite

and in images directory u'll find
rescue.img ( i hope its there .. other wise use boot.img  if u have older versions, which i hope isnt the case)

now use rawwrite to write the rescue.img to the empty floppy

run the rawrite utility and it'll ask for the image file name.. and for the target floppy drive.. that should be ...>  a

now boot with the floppy

then u'll be dropped to some linux root shell

then
on there type
mkdir /mnt/mylinux
mount /dev/hda3 /mnt/mylinux
chroot /mnt/linux

then cd
then cd etc
then edit the lilo.conf file .
to support the booting from both linux and windows

then save lilo.conf
and then
run lilo
sync
and
reboot
and next time u boot u shud see the lilo prompt

Commented:
yes while booting from rescue floppy u might be required to enter
linux rescue

also try this
linux root=/dev/hda3

earlier when i tried this .. this led me to the hard-disk installation ..
and i changed lilo.conf and ...etc
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Commented:
just in case u dont know how to edit lilo.conf here is one sample
---------------------------------------
prompt
timeout="100"
default=linux
boot="/dev/hda"
map=/boot/map
install=/boot/boot.b
#message=/boot/message
lba32
vga="792"

image="/boot/vmlinuz-2.4.18-3"
        password=latex
        label="linux"
        read-only
        root="/dev/hda3"

other=/dev/hda1
        optional
        label="win"
image="/boot/bzImage"
        password=latex1
        label="mynix1"
        read-only
        root="/dev/hda3"

Commented:
btw .. u can download dosutils and images from where u downloaded thelinux iso's
they put the ripped iso's also on mirrors
Searchalaz:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.

Commented:
i gave pretty good description on the rescue procedure, i believe that wud have worked for sure.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is to:

Points split between akshayxx and Searchalaz

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Paul
EE Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial