|
Prev: can any one tell whats the problem is ... what i need to do
Next: Can ls be made to show the targets of links
From: Poma on 5 Mar 2007 17:45 As is M$' wont, it overwrote the MBR and now although RH9 resides somewhere in my harddisk, I cannot boot as there's no lilo/grub. Can anybody please assist me to retrieve RH9 without reinstalling it. I chose lilo during installation. I have tried quite a few steps but to no avail. Many thanks in advance. Rgds Poms
From: Jan Gerrit Kootstra on 5 Mar 2007 14:55 Poma wrote: > As is M$' wont, it overwrote the MBR and now although RH9 resides somewhere > in my harddisk, I cannot boot as there's no lilo/grub. Can anybody please > assist me to retrieve RH9 without reinstalling it. I chose lilo during > installation. > > I have tried quite a few steps but to no avail. > > Many thanks in advance. > > Rgds Poms > > Poms, What did you try? lilo from a commandline, run from the rescue disk or disk 1. Kind regards, Jan Gerrit
From: dold on 5 Mar 2007 16:09 Poma <Poma(a)poms.net> wrote: > As is M$' wont, it overwrote the MBR and now although RH9 resides somewhere > in my harddisk, I cannot boot as there's no lilo/grub. Can anybody please > assist me to retrieve RH9 without reinstalling it. I chose lilo during > installation. Can you boot Windows? If there is a bootable Windows, and you think there are some valid Linux partitions out there, you could try bootpart. I used http://www.winimage.com/bootpart.htm bootpart finds the Linux partitions, and creates a file on the Windows partition that acts as a stage 1.5 loader for boot.ini. bootpart lists the partitions, and notes Linux and swap entries. Then for me, bootpart 6 bootsect.lnx Redhat Linux copy bootsect.lnx c:\ adds a new line to boot.ini: C:\bootsect.lnx="Redhat Linux" No change at all to the Windows MBR. -- --- Clarence A Dold - Hidden Valley Lake, CA, USA GPS: 38.8,-122.5
From: Unruh on 5 Mar 2007 17:58 "Poma" <Poma(a)poms.net> writes: >As is M$' wont, it overwrote the MBR and now although RH9 resides somewhere >in my harddisk, I cannot boot as there's no lilo/grub. Can anybody please >assist me to retrieve RH9 without reinstalling it. I chose lilo during >installation. >I have tried quite a few steps but to no avail. >Many thanks in advance. OK, lets try again. YOu have to know how your original drive was set up-- ie which partitions are where. For example, did you have a separate boot partition or not. boot up the Redhat installtion disk and choose rescue ( you apparently already know how to do that) mkdir /hd fdisk -l /dev/hda (I am assuming that the disk on which redhat resides is /dev/hda If it is different, substutute yours for /dev/hda) This will tell you which partitions are on /dev/hda and tell you what type they are. Do not worry about NTFS or FAT partitions. For every ext2 or ext3 partition do mount /dev/hda# /hd where # is to be replaced by each of the numbers that were listed as being ext2 or ext3 partitions (Again I am assuming you did not do something like make your redhat partitions reisner or xfs or some other option.) ls /hd Now look. If there is an etc directory in that, then you now know which the / partition is. Write it down. If it has vmlinuz or vmlinuz-something, that is the /boot partition. Write down its number. Those are the only two be be concerned about. After each ls, unmount the partition, and mount the next number, until you have gone through all of them. Now, first mount the / partition. Let me assume it is /dev/hda7. Use the number you found. mount /dev/hda7 /hd Now, if you had a boot partition ( ie you found vmlinuz in one of the ones you tried to mount) do mount /dev/hda2 /hd/boot (If there was no /boot partition, do not worry about it. Now check ls /hd/etc/lilo.conf ls /hd/boot/vmlinuz* ls /hd/dev/hda* ls /hd/etc/fstab All of those should list those files and not come back and say no such file.If you have any trouble, check that you did each and every one of the steps above. Now do lilo -r /hd And you should be done. However, it may be that you will now not be able to boot windows. If you cannot, then edit /etc/lilo.conf and put in a windows section other=/dev/hda1 label="windows table=/dev/hda for example, assuming your windows is on /dev/hda1 mount /dev/hda7
From: Poma on 7 Mar 2007 10:45
Gentlemen, with a heavy heart I regret to inform you that my first installation disc is FUBAR. Hence, I could not try any recent steps given by you all. I'm planning to get the disc from one of my colleagues within 2-3 days. Thank you all once again for your help and co-operation. Maybe I can try the steps later. Rgds Poms |