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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
01-04-2010, 08:26 AM
|
#1
|
Member
Registered: Jul 2007
Location: Seoul, S. Korea
Distribution: Ubuntu 9.10
Posts: 44
Rep:
|
BIOS Dual Boot 2 Physical Drives
I have 2 SATA drives. One is 160GB and the other 320GB.
The 160GB has Ubuntu 9.10 installed.
The 320GB has Windows 7 installed.
Until a couple days ago, I could set Windows or Ubuntu to boot through the BIOS settings, by selecting the priority for the drives.
There were some Ubuntu updates I installed, and since then I am unable to boot into Windows. If I actually unplug the 160GB drive (Ubuntu), I notice after the option to boot from CD/DVD, something about Grub loader, and not being able to boot.
I've had a look around, and it seems some users have had similar problems, but are looking for different solutions. I do not want to solve this problem by adding a boot loader selection where my wife and kids would have to choose Ubuntu or Windows 7 each time they turned on the computer.
Some posts I've referenced are:
Dual Boot 2 seperate Drives - Add option to Boot Menu?: He's obviously trying to add the boot menu options though.
Can't boot xp from second hard drive after Fedora install: The title made me think this would be helpful, but wasn't really related to my problem.
Strange dual-boot problem?: This is also seeking a boot menu solution, but there are two quotes, which I am assuming to be clues:
" ...you need to install grub on the MBR of /dev/sda..."
" Be warned that ubuntu 9.10 is using grub2 which is very different from 'grub legacy'."
I'm still looking for a solution, but any help is appreciated.
P.S. The immediate solution I can think of is resetting the CMOS, however, since it appears to be a Linux issue, I'd prefer to find a Linux solution, if that makes sense.
|
|
|
01-04-2010, 08:48 AM
|
#2
|
LQ Newbie
Registered: Mar 2007
Posts: 18
Rep:
|
Why not put grub on a zero wait, and press a key at boot to bring up the grub menu?
|
|
|
01-04-2010, 08:58 AM
|
#3
|
Member
Registered: Jul 2007
Location: Seoul, S. Korea
Distribution: Ubuntu 9.10
Posts: 44
Original Poster
Rep:
|
Quote:
Originally Posted by 3rdtreenz
Why not put grub on a zero wait, and press a key at boot to bring up the grub menu?
|
Sounds like a good plan...
...alright, I'm off to read the Grub 2 Bootloader - Full tutorial, and will let you know how it goes.
|
|
|
01-04-2010, 09:10 AM
|
#4
|
LQ Newbie
Registered: Mar 2007
Posts: 18
Rep:
|
Hmm I just tried that and it doesn't actually work , though I could have sworn I used to do that in the past with the control key ( havn't dual booted for some time ). You could put it as 1 second though and hold down an arrow key to make it wait. Did you check your menu.lst? Maybe grub has been installed onto the windows disk by Ubuntu. If you boot off of the windows install cd you can go into a shell and use the fixmbr command to fix the windows bootloader.
|
|
|
01-04-2010, 09:41 AM
|
#5
|
Member
Registered: Jun 2008
Distribution: Ubuntu
Posts: 266
Rep:
|
It looks like GRUB was installed on the 160GB drive, and the Vista Bootloader was installed on the 320GB drive. That's great if you always want to do the switching from the bios, but if you want a boot menu, you want to make sure that the drive with GRUB installed is higher priority in the bios, then use the boot menu.
To reinstall grub (on either or both drives), try this tutorial: http://ubuntuguide.net/how-to-restor...ws-xpvistawin7
|
|
|
01-04-2010, 09:55 AM
|
#6
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,844
|
Ubuntu on the 160GB drive.
win 7 on the 320GB drive.
Prior to this problem, you selected which operating system to boot through BIOS. I'll assume from your statements you usually had the win 7 drive set to first boot for your family members?
If I understand your situation correctly, you disconnect the Ubuntu drive and let the computer try to boot from the other (win 7) drive and get a Grub boot error? If that's your situation, then Grub is installed on the master boot record of your win 7 hard drive if it was connected during the updates. This may have been done in the update, don't know what updates you did, kernel, grub-update?
It would be helpful to know what the exact error you refer to is
Quote:
something about Grub loader, and not being able to boot.
|
that's pretty vague.
If you have the win 7 Installation CD, you should be able to repair the win 7 bootloader to boot from its drive.
|
|
|
01-04-2010, 10:02 AM
|
#7
|
Senior Member
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
|
If you have not change the default than GRUB is written in MBR of SDA
You should us the Advance option in UBUNTU installer to change the default.
|
|
|
01-04-2010, 10:40 AM
|
#9
|
Senior Member
Registered: Jun 2008
Posts: 1,820
|
|
|
|
01-04-2010, 11:12 AM
|
#10
|
LQ Newbie
Registered: Mar 2007
Posts: 18
Rep:
|
double post
Last edited by 3rdtreenz; 01-04-2010 at 11:13 AM.
|
|
|
01-04-2010, 11:12 AM
|
#11
|
LQ Newbie
Registered: Mar 2007
Posts: 18
Rep:
|
If your windows drive stopped booting after an update, presumably it's because grub was written to your windows drive, although it shouldn't have been. If this is the case as has been suggested, to go back to how things were previously, you can either install grub onto the windows drive as well as your linux drive, with a "timeout 0" option and booting windows as default:
(Make a new menu.lst and use the command:
# grub-install --no-floppy /dev/sdb - substituting sdb with whatever your windows disk is at the time. The other, probably preferable option is to use your windows cd to fix the MBR:
http://www.ehow.com/how_4836283_repair-mbr-windows.html
Though having to remember to press a keystroke while booting sounds a lot easier than having to change your bios settings before and after every boot.
Another option that would be unobtrusive to other users would be to boot off a pen drive which could be inserted when you want to boot linux.
Last edited by 3rdtreenz; 01-04-2010 at 11:50 AM.
|
|
|
01-04-2010, 12:32 PM
|
#12
|
Member
Registered: Jul 2007
Location: Seoul, S. Korea
Distribution: Ubuntu 9.10
Posts: 44
Original Poster
Rep:
|
Quote:
Originally Posted by thorkelljarl
If you are using Ubuntu 6.10 as your initial post indicates, 6.10 should be using GRUB, not GRUB 2...
|
I'm using 9.10 as the title states. Grub 2 is the default for 9.10.
Quote:
Originally Posted by yancek
If I understand your situation correctly, you disconnect the Ubuntu drive and let the computer try to boot from the other (win 7) drive and get a Grub boot error? If that's your situation, then Grub is installed on the master boot record of your win 7 hard drive if it was connected during the updates. This may have been done in the update, don't know what updates you did, kernel, grub-update?
|
That sounds about right. I am not sure about the updates, I just selected Install when the update manager popped up, and said updates were available.
As for the error when I disconnect the 160GB HDD (Ubuntu), and have just the 320GB (Windows 7), this is what I see:
Code:
Verifying DMI Pool Data...........
Backup CMOS... OK!
Boot from CD:
Press any key to boot from CD or DVD...Grub loading
error: no such disk
grub rescue> _
So, as you said, Grub is installed on the master boot record of the Win 7 HD. I've tried disconnecting the 160GB drive (Ubuntu), and booting from my Windows 7 DVD, but am only able to get to the background of the login screen (without any option to actually login, or even restart, or anything.. just a login screen background displayed) if I start normally, and if I start in safe-mode, I get a safe-mode background, but am unable to do anything, ie: no start menu, ctrl-alt-delete does nothing, nothing is there but a background.
I suppose I'll check out thorkelljarl's suggestion after reading his post, and maybe even 3rdtreenz's post - because all would be viable solutions. However, I was quite happy changing boot options in BIOS, as I am the only one who will ever boot into Linux on this machine, and my wife/kids use it 95% of the time. This isn't a 'quick fix' solution in my opinion; it is the desired solution.
Anyway, as long as I can login to Windows and Linux without having to select each and every time the computer is started, I'll be happy.
|
|
|
01-04-2010, 12:41 PM
|
#13
|
Senior Member
Registered: Jun 2008
Posts: 1,820
|
By the way...
Have you used the command "fdisk -l" to look at the partitions for a boot flag?
6.10/9.10, I looked to the left where you are still 6.10, not to the right where you are 9.10 and made the reference just in case.
Super Grub Disk live-cd version should be 1.21 for Grub2.
Last edited by thorkelljarl; 01-04-2010 at 12:55 PM.
|
|
|
01-04-2010, 12:59 PM
|
#14
|
Member
Registered: Jul 2007
Location: Seoul, S. Korea
Distribution: Ubuntu 9.10
Posts: 44
Original Poster
Rep:
|
Quote:
Originally Posted by thorkelljarl
Have you used the command "fdisk -l" to look at the partitions for a boot flag?
|
Not sure what that's supposed to return, if anything, but it doesn't return any data for me.[/QUOTE]
Quote:
Originally Posted by thorkelljarl
6.10/9.10, I looked to the left where you are still 6.10, not to the right where you are 9.10 and made the reference just in case.
|
I see. I initially thought you had a typo in your post, but I see I had 6.10 in my profile. I've changed it now, thanks.
I haven't tried messing around with Linux much since I got fed up with trying to get my monitor to display in its native resolution a couple years ago.
3rdtreenz's post about How to repair MBR on Windows 7 seemed like that would help, and should help, but as I said in the previous post, I can't get past the Windows 7 background screen, and no options to do anything... So, I'll try to configure Grub2 for dual booting, and take it from there.
|
|
|
01-04-2010, 01:04 PM
|
#15
|
Member
Registered: Jul 2008
Location: Stockholm, Sweden
Distribution: Slackware 13.1 32-bit
Posts: 145
Rep:
|
You could use a GAG bootable CD to start windoze as described in the link below.
http://www.linuxrocks.in/joomla15/in...0&limitstart=4
/Magnus
|
|
|
All times are GMT -5. The time now is 10:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|