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.
I have tryed to install windows (uhuhuhuhuh) but i didn't work but I won't make you bored about that in here.
As you guess windows nuked my mbr.
Since then I installed lilo with my original debian boot cd, but lilo doesn't work for some reason, maybe because i run kernel 2.6.4 and didn't set up the good parameters because it has been done automaticly.
Now i'm trying to re install grub but in all the documentations i read, the explanations are starting from the moment they have the grub prompt ">" and I don't have this prompt as my system now boot directly on my openbsd system instead of having the multiboot.
Under openbsd, i'm able to mount all the linux partition in read only(i think) cause they are mounted as ext2 and not ext3
I'm also able to mount all the partitions with the debian cd install
So does anyone have an idea on how i could stick grub in the mbr ?
Find the linux partition that has your original grub.conf and that grub was orginally on and replace all the x with the right number and remeber that grub starts counting at 0 so subtract 1 off the partition number for grub.
Code:
chroot /dev/hxx /bin/bash
Code:
grub
Code:
root (hdx,x)
Code:
setup (hdx)
Code:
quit
[EDIT]
I guess i should add that when you use the chroot command you are now acting like you are running from that partition.
i wasn't sure if that command would work at the recovery command line. can you boot up linux at all? if you made a boot floppy and were able to boot into linux, you could run that grub-install command. short of that, i don't know how you'd go about it at the place your at. it might be easier to just reinstall linux at this point in time since i don't see any other suggestions here on getting grub installed to where you could boot into linux.
umm, questions rather than answers are:
1) when you boot does it give you an initial screen of some kind of boot manager? And if you think you see one can you quickly press the escape key or the down arrow to stop the auto boot into BSD?
2) If 1 fails can you get into the partition that you KNOW is a linux partition and see a folder called /boot and this is where you will find grub and the menu.ist file?
3) When you installed BSD did you allow linux "emulation" to allow linux files to be run natively on BSD? And so can you open a terminal in BSD but run a linux command?
4) It may be possible depending on your answers to download grub stick it in the correct partition and re-install grub to MBR.
Unfortunately I know little about BSD having only tried it once so the better long term advice may be to start afresh???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.