LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub settings and boot order (https://www.linuxquestions.org/questions/linux-newbie-8/grub-settings-and-boot-order-777248/)

jofranx 12-18-2009 10:15 AM

grub settings and boot order
 
is there some workaround by changing grub settings other than rewiring the harddisks or changing in bios..
i'm asking for this cuz
1. my bios is getting reset (low battery.. ya i'll change soon, but until then)
2. my hard disks are sata and ide, so the ide one is loaded as hd1 by default, cudnt find any way to change tht..

pixellany 12-21-2009 10:51 AM

I have moved this to a new thread in Linux-Newbie. Please do not jump into existign threads--especially when they are 3 years old.

For you specific questions, please give more details on the configuration of your system and what you are trying to do.

AND--Welcome to LQ!!

jofranx 12-26-2009 10:32 AM

I've got an IDE hard disk and SATA hard disk. Both the OS (Ubuntu 9.04 and Win XP) are on IDE.
The grub is installed on the IDE hard disk now. And I've changed the disk order in bios to make IDE higher priority (default is SATA higher priority). With this everything works well.

But recently my motherboard battery ran out and BIOS got reset. Since then I've been wondering if there's some way I could install grub onto SATA, and make both OS boot from that. I tried various things with grub settings, but nothing worked.

malekmustaq 12-26-2009 11:09 AM

jofranx,

Yes you can do it with grub. But you must install grub at the sata disk first.

Do this in the order of sequence:
1. Install Grub at the sata (sda1 or sda2) I have not tried setting up grub outside any system, but just try it. You might be able to trick Grub by creating an empty folder at the root of partition "/boot", that is all that Grub Setup will seek. If it doesn't work then you must have at least a minimal installation of Ubuntu at sata (anywhere parition) to hold Grub.
If you cannot boot at the current IDE disk where your Ubuntu is located you can boot from the Ubuntu LiveCD, while running liveCd you can "setup grub" at any partition you like, then "grub-install /dev/sda" this will write grub to the mbr of SATA. You have to specify Stage 2 for grub to have enough space for the records just in case.
2. When grub is installed in both, IDE and SATA, you can boot any of it and still point to your current IDE-Ubuntu system, just edit the device.map at /boot/grub/device.map at the SATA drive. To shorten a long story, I have no time to explain further, just read this well written tutorial for grub in order to get enough background before you start doing the instructions above.

Another solution is:
If you have not enough time to tinker about this temporary vicissitude, you'd better go out buy a battery which is very cheap and the problem is gone. But I'd prefer though for you to read that tutorial still for contingency in the future.

Hope this helps.

Good luck.


All times are GMT -5. The time now is 01:15 AM.