Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello I have installed XP on Linux now my MBR is re-written by XP's default BOOTMANAGER but now I want to install GRUB. Is there any possible way of installin GRUB through Live-CD and moreover I have made a seperate partition for boot. Pls help me in installin in grub.
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222
Rep:
Depending on the distribution your using the steps to recover with a live-cd are different. If its a RedHat distro your using, boot up with the first CD. Type linux rescue at the boot: prompt.
You'll be asked some questions about setting up the network configuration (not needed) and which keyboard type your using. You will then be asked if you want to mount existing linux installations. Answer 'ok' to this one.
Once fully booted type chroot /mnt/sysimage. This will change you to the root directory (/) of your linux installation.
Next type grub-install /dev/hda. change the /dev entry to reflect the settings on your PC. This should re-install grub in the MBR.
1. Boot with a live CD. Login and open an (X) terminal as root.
2. Mount your installed Linux partition. Then chroot to the Linux partition (where you originally installed grub from.)
3. run grub-install /dev/hda (subsitute this with where the MBR is located) from the chroot'ed environment.
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222
Rep:
Quote:
Originally Posted by preeth45
MR.Slackdaemon I did wat u said but now the error is "/sbin/grub"- not found.
When you chrooted to /mnt/sysimage did you get any warning messages? It seems that the chroot did not work so your PATH searches are relative to the root of the CD instead of /mnt/sysimage.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.