Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
So I have a RedHat 7.2 load on my machine. I have a VFAT partition where was gonna put my Win32 apps and run WINE to play Star Craft on Linux, cool huh? Right, well anyway, I figured out that it would be a lot better to load Win9x onto one of the VFAT parts to help WINE out, so last night I installed Win9x onto one of the VFAT parts to give WINE some help....
Of course, GRUB doesn't work since Windows overwrote the MBR, but I can't boot to anything.. Linux boot disk to the rescue. I boot to the disk, chroot /mnt/sysimage and then try to :
/mnt/sysimage/sbin/grub-install /dev/hda
and get
/sbin/grub: Not found
I KNOW that i am in the right dir. I know I am running grub-install right because when I run it with no arguments, it gives me the help menu, but when I try to run it with arguments and devices, etc, I get the previous error. Any advice?
Location: Vienna / Austria / Europe / Earth / Milky Way
Distribution: Debian
Posts: 22
Rep:
Re: GRUB not reinstalling
Quote:
Originally posted by jboo Linux boot disk to the rescue. I boot to the disk, chroot /mnt/sysimage and then try to :
/mnt/sysimage/sbin/grub-install /dev/hda
and get
/sbin/grub: Not found
I'm a little bitt puzzled. You say you chroot to /mnt/sysimage but call grub-install with /mnt/sysimage/sbin/grub-install? Something isn't working right here. When you chroot to /mnt/sysimage you should be able to call grub-install through /sbin/grub-install directly.
So I guess your chroot hasn't worked. Did you take a look at the grub-install script? After all, it's just a script. It calls grub (yes, that /sbin/grub path is hardcoded into that script) - you can easily copy that script over to some tmp directory and tweak it there.
Or you try to find out why your chroot hasn't worked - there might be several reasons for that.
I am facing a simliar problem. I had to reinstall my WindowsXP and that overwrote the MBR.
I have a small doubt,
>Linux boot disk to the rescue
>run:
>>grub
>grub>root (hd0,7) //the number 7 is my linux boot partition mark
>grub>setup (hd0)
>grub>quit
>reboot your computer then everything is OK
How do I find the linux boot partition mark on my system. On my machine the linux partition is shown as /dev/hda5. Does that mean my linux boot partition on hd0 is 5 and hence I should use root (hd0, 5) .
Hello everyone!
One of my friends (who lost that command now!) had got a command line for installing GRUB directly from the RH 9 Distro CDs, which directly put the GRUB (If it was lost after the MBR got cleared, because we reinstalled our windows, for both 98 or XP) on to it's place right working for us.
Does anyone have any idea of this? Please help.
I right am running Fedora Core 2. Provide equivalent commands for it too!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.