LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-03-2008, 06:33 PM   #1
daniell
Member
 
Registered: Jul 2008
Posts: 154

Rep: Reputation: 15
Installing Ubuntu


Please bear with me. I know this has been covered before, but I want to get this right.
I have used Ubuntu 8.10 for a few days from the CD, and must say that I like what I see.
I want to install it to my hard drive.
Let me elaborate. I have two hard drives. One already has Vista, the other one is completely empty, and does not even show on the boot priority, but shows somehere in the BIOS. I want to install Ubuntu on the empty drive and not effect the Vista. I also want to choose which operating system on want on boot up.
what would be the best way of doing this?

Thanks in advance
 
Old 11-03-2008, 07:04 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
There are many ways to do this.

The most straightforward is to simply install Ubuntu to drive #2. When it installs the bootloader, it will automatically detect the Windows system and set up the bootloader menu.

Another option is to tell the Ubuntu installer to put the bootloader on the SECOND drive. In this scenario, you would use the BIOS to select which to boot from.

The "booting" in my sig below might help also.
 
Old 11-03-2008, 09:25 PM   #3
clintbrot
LQ Newbie
 
Registered: Jun 2005
Location: Oklahoma
Distribution: Freespire, Mepis 6.0, FC5, PCLinux, Knoppix, Damn Small Linux(DSL)
Posts: 25

Rep: Reputation: 15
Install to the 2nd drive.

When you install select manual partition and edit your 2nd drive to be formated and used as root. I'll put up a byzanz video(gif) tutorial on http://nudepenguin.net tomorrow morning.
 
Old 11-04-2008, 03:47 AM   #4
daniell
Member
 
Registered: Jul 2008
Posts: 154

Original Poster
Rep: Reputation: 15
Before I go on, I want to understand the following.
When I finished my computer build, I went into the Boot Priority in the BIOS. It would only allow me to show either hard drive, but not both at the same time. I chose to show the larger one.
Should I now put the empty hard drive into the boot priority, and remove the one that has Vista on it? Sorry for the confusion.
 
Old 11-05-2008, 03:30 AM   #5
clintbrot
LQ Newbie
 
Registered: Jun 2005
Location: Oklahoma
Distribution: Freespire, Mepis 6.0, FC5, PCLinux, Knoppix, Damn Small Linux(DSL)
Posts: 25

Rep: Reputation: 15
Grub should go on HDD that has windblows.

When installing ubuntu have grub installed on first drive and it will pick up all your OSes and put them in your menu.lst on the /boot/grub folder which you can edit if needed by using sudo gedit /boot/grub/menu.lst
 
Old 11-06-2008, 05:54 AM   #6
daniell
Member
 
Registered: Jul 2008
Posts: 154

Original Poster
Rep: Reputation: 15
Installing Ubuntu

Sorry, but I am still confused about something.
I should put GRUB on the first hard drive.
What does that acutually mean? Since I have two SATA hard drives, anyone of them can be set to be the first.
Therefore, should I put GRUB on the Hard Drive that will contain Vista, or the one that will have Ubuntu?

Thanks in advance
 
Old 11-06-2008, 06:39 AM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
No, do NOT put GRUB on the drive that has windows. It's only asking for trouble. The failsafe approach is:
- go into BIOS
- reverse disk order so that the empty drive becomes the boot drive
- install Ubuntu
- have it install its GRUB to the first (=its own) drive
- after booting Linux, you may need to perform a few small edits on your grub menu.lst to solve potential vista boot issues.
 
Old 11-06-2008, 07:21 AM   #8
daniell
Member
 
Registered: Jul 2008
Posts: 154

Original Poster
Rep: Reputation: 15
Thanks jaye, your help has been invaluable. I have been running Ubuntu 8.10 from the CD. So far I really like what I see. It recognized all the hardware that I tried, though I only tried my MP3 player, flash drive, and my Wifi card.
Now to business.
What kind of Potential Vista boot problems might develop?
If a problem develops, will I be able to back to BIOS and boot off the hard drive that has Vista?

Thanks again
 
Old 11-06-2008, 08:06 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
If you don't want to change the mbr/boot info on the windows drive, disconnect it before you install Ubuntu on the second drive. You then install Ubuntu to that drive (second) and have it install Grub to the mbr of that (second) drive. When the installation is completed, I would suggest you try to re-boot to see if all went well before re-connecting your windows drive. At this point, you will not be able to boot windows even if you connect it's drive until you put an entry in the /boot/grub/menu.lst file of your second drive. The exact entry will depend upon your partition info from the first. Post the output of the command 'sudo fdisk -l' (lower case letter L) run as root on Ubuntu. You will be prompted for your user password. After you post this info, someone should be able to give you the correct entry for windows. Having done this, you will be able to boot both Ubuntu and windows with the second drive installed as long as it is set to first boot priority in the BIOS and will still be able to boot windows with the second drive removed.

Last edited by yancek; 11-06-2008 at 08:07 AM.
 
Old 11-06-2008, 08:42 AM   #10
daniell
Member
 
Registered: Jul 2008
Posts: 154

Original Poster
Rep: Reputation: 15
Thanks Yancek:
One thing I am trying to understand. Why wont the Vista drive boot after the Ubuntu installation, being the fact that drive was disconnected, and therefore not affected? Trying to increase my knowledge base.
 
Old 11-06-2008, 09:55 AM   #11
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Windows tends to insist on sitting on the first drive; place it on another drive and it won't boot. Now there is a little GRUB trick called "mapping" that fools it into thinking that it really does reside on the first drive even when it does not. Keeps everyone happy, both GRUB and windows.
For a long time, GRUB was not smart enough to figure this out on itself so one had to do it manually - but recent distros like the latest Ubuntu may ship with an improved version that automatically take care of it. So, I don't know what will happen, maybe your vista will boot without a problem - but if it doesn't, then you know the reason and that it can be solved.
So why would you NOT keep things as they are and install GRUB on the first drive? That would work OK but you may run into trouble later. First of all because Installing GRUB one your windows drive makes it overwrite the windows bootloader. That is not necessarily a problem as people with only one drive have no other option. But it means that windows will not be able to boot anymore if for some reason you decide to remove GRUB and / or Ubuntu. There have been numerous posts on this board from puzzled people who were caught unawares. As long as you have the vista install disk, it can be solved - and quite easily too in most cases - but why bother if you can have your cake and eat it?
And the second, more important reason is that windows has always been extremely intolerant of other operating systems. If you install a service pack, there is a good chance that it will wreck either GRUB or itself if not both. With windows on your second drive, you can simply switch drives in BIOS for the update and rest assured that you won't get bitten.

Last edited by jay73; 11-06-2008 at 10:10 AM.
 
Old 11-06-2008, 10:00 AM   #12
daniell
Member
 
Registered: Jul 2008
Posts: 154

Original Poster
Rep: Reputation: 15
Thanks jaye, it is becoming more undestandable. Exactly what should I do if Vista wont boot? Better to be have knowledge than fear.

Thanks again:

I will deal with this later in the day
 
Old 11-06-2008, 10:16 AM   #13
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Well, this is from my own /boot/grub/menu.lst:

Quote:
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title Windows XP Professional x64 Edition
root (hd1,0)
savedefault
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
The "root" line show that my XP is on the first partition of drive 2 (hd1,0). This would be a be a problem but it is solved by the two "map" lines, which "switch" drive 1 (hd0) and drive2 (hd1). This is not real switching, as you would do in BIOS, but it is good enough.
 
Old 11-06-2008, 06:18 PM   #14
daniell
Member
 
Registered: Jul 2008
Posts: 154

Original Poster
Rep: Reputation: 15
Jaye, one final question, I hope.

Why can't I install Ubuntu on its own drive without GRUB. I will then go into the BIOS and select which hard drive I want to be the first. Thanks for your patience in this matter.
 
Old 11-06-2008, 06:48 PM   #15
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Well, technically, you should be able to do without GRUB. You could use the live cd to boot ("boot from first disk" option). But let me assure you, going into BIOS or starting up a cd each time you boot gets pretty annoying pretty fast. I really don't see a reason why you shouldn't install it to the MBR of the Ubunut drive considering it leaves VISTA perfectly unaffected. Also, It's so easy to set up - you don't need to do anything, really, except click on "yes" or "OK".
 
  


Reply



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
LXer: Installing Xen On An Ubuntu 8.04 (Hardy Heron) Server From The Ubuntu Repositor LXer Syndicated Linux News 0 05-08-2008 02:10 PM
LXer: Installing Xen On An Ubuntu 7.10 (Gutsy Gibbon) Server From The Ubuntu Reposito LXer Syndicated Linux News 0 11-06-2007 08:50 PM
LXer: Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories LXer Syndicated Linux News 0 07-01-2007 06:46 AM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:43 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
Open Source Consulting | Domain Registration