LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2009, 11:15 AM   #1
jofranx
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
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..
 
Old 12-21-2009, 11:51 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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!!
 
Old 12-26-2009, 11:32 AM   #3
jofranx
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0
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.
 
Old 12-26-2009, 12:09 PM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,617

Rep: Reputation: 442Reputation: 442Reputation: 442Reputation: 442Reputation: 442
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.

Last edited by malekmustaq; 12-26-2009 at 12:15 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub question changing boot order making windows boot first nfsutim Linux - Newbie 29 10-27-2012 01:53 PM
Grub boot order Sunfist Linux - Newbie 3 05-04-2008 12:04 PM
GrUB boot order Tonygat105 Linux - Newbie 2 11-17-2007 02:22 PM
grub boot order NtlgnceAtWork Debian 6 10-02-2006 01:37 AM
USB boot order BIOS settings NovaBurst Linux - Hardware 1 03-28-2005 12:23 AM


All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration