no grub/defaults/grub to edit on triole-boot system
Triple-boot system can't find grub/defaults/grub file. debian lenny on hda2, winsxp hda3, ubuntu10.10 hdb2. All 3 accessible(working). I had to reinstall all Oses, winsxp 2nd after installing Ubuntu this time Grub2 detected and has each os running. I've so far looked at the Debian grubmenu.lst which shows that winsxp is listed but not Ubuntu even though I can boot Ubuntu. I'm sure that grub2 is in control because at boot it shows grub 1.98 also the os selection looks like the 1 in grub2
I examined my partitions using gparted it shows that winsxp is labeled as boot lba. That was sda3. 1. There's grub legacy in debian, ? in winsxp, grub2 in Ubuntu. where did grub2 go? It's menu is not in debian. 2. How do I find it or should I just change the grub that is within Debian to Grub2 & make it the system default and it's at the beginning of the system. At the time of Ubuntu installation I didn't have access to Debian, due to wins install. So wins partition had boot flag. 3. Is there a way to enable grub legacy and add Ubuntu entries to it? 4. Is it as easy as changing the boot flags to Grub in Debian partition at beginning of hda? 5. Why can't I see default grub file on this installation of Ubuntu? On this 1 as well as the other I have root login and can't see it. |
According to this site, Grub Legacy is the default bootloader for Debian Lenny:
http://grub.enbug.org/Debian Quote:
Quote:
[QUOTE]3. Is there a way to enable grub legacy and add Ubuntu entries to it?[QUOTE] Yes. See this site, Section 5.B. Again, if it is working with Grub2 in Ubuntu, no reason to change: http://www.dedoimedo.com/computers/g...mozTocId982259 I don't believe changing the boot flag on the Debian parition will do much. Quote:
|
I don't know if this 1 is the 1 you want but this is what I get. This 1 is from the Ubuntu term.
PHP Code:
|
Here is the output from debian
debianjchrisen1:/home/jerome# ls /boot/grub default fat_stage1_5 menu.lst~ stage1 device.map jfs_stage1_5 minix_stage1_5 stage2 e2fs_stage1_5 menu.lst reiserfs_stage1_5 xfs_stage1_5 |
Thank you Yancek for putting me back on track, I don't think I spent enough time reading that article.
http://www.dedoimedo.com/computers/g...mozTocId982259 It has been suggested in prev posts, I obviously haven't done all my homework. I'll post my results as soon as I get it taken care of. |
That's an awful lot of files in the Ubuntu /boot/grub directory! Guess it's right, you do have a grub.cfg file there. I haven't used Grub2 so I have nothing to compare it to. From what I have read about Grub2, it seems it would be easier to boot a Grub Legacy system from Grub2 than the reverse. At least you are able to boot your systems. Good luck with everything.
|
I think that I've found the file that I've been looking for in /boot/grub/grub.cfg
PHP Code:
I don't think that I really need to keep grub-legacy, being that grub2 can detect all operating systems, but I do want to try and cofigure it just 2 say I can do it. So I will be trying to restore grub-legacy and making the link to grub2. What do I need to adjust on this installation so I don't have to scroll to view my post? It's obviously this browser, I'm using same computer different o.s if that helps. |
Grub legacy can not read ext4 file system of ubuntu. I gave up and went to grub2. The thing I dis like is grub2 is more complicated than legacy,
|
I know it doesn't just have to know how to do it.
|
Here is a good tutorial on grub2 that I used and still refer to. Pay attention to Reinstalling grub2 from live cd. You will have to use your ubuntu disc as live cd.
grub2 tutorial I am no authority but will try and help. |
Thank You Larry that 1 is 1 I didn't have a bookmark on. Very useful, along with the totorials at the dedoimedo site.
|
Try to restore grub2 as explained by using a live cd. If you run into problems try and remember what you tried and any errors or what did not work.
|
Okay I ended-up installing grub2 all together. I also had to change my Debian lenny kernel because
it didn't have support fort ext4 fs. I wasn't aware that grub2 changes the drive letters. In fact I was sure that the ide drives were still listed as hdX. You learn something new everyday. And Thanks for the info Larry and Yancek. To my fellow newbies using cd to recover, look in the examples file. It's all there. |
If solved please use Thread Tools button at top and mark Solved
|
Sorry Larry I haven't completed this task yet. As soon as I have my grub completely configured,
I shall mark as solved. |
Thank You Larry for all of your info, at the time I didn't know which grub was default, now I do.
I had lost my Grub in Ubuntu. Was trying to recover without reinstalling os. I ended-up reinstalling Ubuntu upgrading kernel in Debian so as to be able to read Ubuntu's fs. This is my grub conf: PHP Code:
I guess that will be right after I get the ins and outs of the existing grub. |
I am still working on mine when I have time.
|
This is an after-thought, could I have used os-prober and update-grub from the cd and not have had to reinstall os?
|
hi
lets re-visit original requests Quote:
2 You can convert back to grub-legacy if you wish....optional stil open 3) So in your preferred linux partition...download grub and install it to MBR and create entries for menu.lst I assume you are familar with grub-legacy? 4) bootable flag is something windows needs and should be set only once per drive IMHO and you appear to have 2 drives? so now my questions A) have you done a speed test on drive 1 versus 2? If drive 2 is fastest make that the first bootable drive and re-do grub legacy or grub2 to its MBR B) you can have grub-legacy in MBR with its booting files controlling your menu and chainload to grub2 on some other partition....or have grub2 in MBR with its booting files chainloading to grub-legacy or one grub or one grub2.....controlling the lot Do you understand? good luck |
I have noticed grub2 takes at least two times as long to load as grub legacy so if speed is a priority use legacy on your fastest drive with Debain and chainload ubuntu.
|
Quote:
As aus9 has pointed out, legacy and grub2 can chainload each other. For this to be possible, the boot loader - either one - has to be installed in the superblock of the root partition. I have found it easier to get grub 1 "legacy" into the superblock. With grub2 you have to use the --force option, and even then it hasn't always worked for me. So IMHO it's easiest to put grub 2 into the MBR, pointing to your "main" distribution (ie, let that distro install Grub2 to the MBR when you install), and for the others, don't let them overwrite the MBR; if they won't put grub x into the root partition, install without a boot loader, and manually install grub1 later. For chainloading you will need a file/etc/grub.d/xx_custom where xx is a two digit number, if it is below 30 then it will load before /etc/grub.d/30_os-prober, which is convenient. The file should start like: Quote:
Saikee's Just booting tips Never leave home without it! There is also a thread on the Ubuntu forum for tweaking grub2, which is useful for getting rid of the verbiage. |
Quote:
Quote:
Quote:
Ubuntu server to sdb6(hd1,6). At the present time all of my os'es have their own grub with entries in the 1 on sdb1. Right now I'm quite comfortable with working with the grub and if lost I can find and almost positive that with a quick os-probe and update I can get access to all the other os'es. Right now I'm working on getting Ubuntu to shutdown without pressing the button. Impert thanks for the chainloading information, I still have more to learn on it but it's all helpful. Larry I'm going to mark this 1 as solved, and to be continued on next thread when I get ready to install with 1 grub with multiple os'es. |
All times are GMT -5. The time now is 01:48 AM. |