Computing.Net > Forums > Linux > linux boot problem

linux boot problem

Reply to Message Icon

Original Message
Name: cinmas
Date: August 31, 2005 at 02:37:50 Pacific
Subject: linux boot problem
OS: winxp
CPU/Ram: P4/512
Comment:

I had my MBR rewritten when I reinstalled Windows XP . I have Linux Fedora Core2 installed . Now the problem is that I dont have the boot disk & since the MBR is rewritten I am not able to boot into linux.
Can anyone suggest me a solution.

CINMAS


Report Offensive Message For Removal

Response Number 1
Name: 3Dave
Date: August 31, 2005 at 03:30:31 Pacific
Subject: linux boot problem
Reply: (edit)

Are you not able to boot a pre-installed system from the Fedora installation CD? Is there a "rescue" option or similar?

Failing that you may be able to boot from the installation CD and pass a root=/dev/hdXX at the boot prompt where hdXX is your root partition.

Still no joy? Then boot a live distro like knoppix or use a floppy like Tom's Root/Boot Disk (http://www.toms.net/rb/), mount your root partition to a temporary mount point, change your root to it and then reinstall lilo/grub, eg:

# mkdir /mnt/temp
# mount /dev/hdb1 /mnt/temp
(assuming that /dev/hdb1 is your linux root partition)
# chroot /mnt/temp
# lilo
or
# grub-install /dev/hda
Now you can reboot.

Once you have it up and going again, make a boot disk for future use:
# mkbootdisk


Report Offensive Follow Up For Removal

Response Number 2
Name: cinmas
Date: September 1, 2005 at 07:13:13 Pacific
Subject: linux boot problem
Reply: (edit)

3Dave,

Thank for your advice, anyway here I still have something need to reconfirm with you.

I try to boot from the Fedora installation CD, i enter 'linux rescue' at the boot prompt, after that system boot into sh-shell and print the following message:
"your system has been mounted under /mnt/sysimage"

then, at the
sh-2.05b#
i type 'chroot /mnt/sysimage' to mount to the root environment.

the question i would like to ask you is: can i reinstall lilo/grub using the following command in shell:

# mkdir /mnt/temp
# mount /dev/hdb1 /mnt/temp
(assuming that /dev/hdb1 is your linux root partition)
# chroot /mnt/temp
# lilo
or
# grub-install /dev/hda


and, will this command install boot loader into MBR.

CINMAS


Report Offensive Follow Up For Removal

Response Number 3
Name: 3Dave
Date: September 5, 2005 at 03:59:46 Pacific
Subject: linux boot problem
Reply: (edit)

The steps I gave about "mkdir /mnt/temp" etc is similar to what has already been done when you do "linux rescue" only that your root partition has been mounted under /mnt/sysimage instead. Once you have done the "chroot /mnt/sysimage" then all you need to do is to run the lilo or grub-install command...I'm guessing that Fedora uses grub so try that one first.


Report Offensive Follow Up For Removal

Response Number 4
Name: krishnakantpps
Date: September 7, 2005 at 00:22:57 Pacific
Subject: linux boot problem
Reply: (edit)

hi guys..
i have a similar problem. I had windows xp sp2 and redhat linux 9.0. I had done some silly changes in the windows filesystem that next time i restarted windows.. it wudnt show me the OS options but wud directly go to grub> prompt. me being a linux newbie.. i had to finally reinstall windows XP> now after i did a windows xp reinstall..i m unable to get into linux. imean i don get the OS options.
well what i need to know is can i edit the boot.ini so that windows reads the linux partition also.
i have6 partitions with windows on C .

please help.

pps_krishnakant@yahoo.com


Report Offensive Follow Up For Removal

Response Number 5
Name: 3Dave
Date: September 7, 2005 at 03:11:38 Pacific
Subject: linux boot problem
Reply: (edit)

This may help:
http://www.tldp.org/HOWTO/Linux+NT-Loader.html

Although you should be able to boot from the redhat installation CD and boot up linux with "linux rescue" at the boot prompt. From there you should be able to reinstall grub with "grub-install /dev/hda".


Report Offensive Follow Up For Removal


Response Number 6
Name: cinmas
Date: September 21, 2005 at 07:46:49 Pacific
Subject: linux boot problem
Reply: (edit)

Hi 3Dave,

Thank for your information.

I am busy past few week, not yet try to recover my Linux system.
Plan to do this weekend.

Hope everything be OK.

CINMAS


Report Offensive Follow Up For Removal

Response Number 7
Name: cinmas
Date: September 26, 2005 at 05:18:10 Pacific
Subject: linux boot problem
Reply: (edit)

Hi 3Dave,

Thank YOU.

Now my linux system has been recovered.

All running as before.

CINMAS


Report Offensive Follow Up For Removal

Response Number 8
Name: 3Dave
Date: September 28, 2005 at 04:48:12 Pacific
Subject: linux boot problem
Reply: (edit)

:)

Now don't forget to make that boot floppy in case you need it in the future.

Oh, and it is no good just creating it....actually try booting from the floppy too to make sure that it works. Chances are that the one time you need it you'll find that it doesn't work!!


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: linux boot problem

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software