Computing.Net > Forums > Linux > Ubuntu/Windows7 Installation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Ubuntu/Windows7 Installation

Reply to Message Icon

Name: kwchristensen
Date: October 4, 2009 at 10:24:41 Pacific
OS: Windows 7
CPU/Ram: 2GB
Product: Dell / LATITUDE D630
Subcategory: Installation
Tags: windows 7, ubuntu, linux, grub, Install
Comment:

I am about to install Ubuntu and duel boot with Windows 7. I do have experience with Ubuntu, but i have never done the following, so I am asking for a bit of advice.

Originally I had XP (hda1), then installed Win7 (hda2). Now I would like to overwrite XP with Ubuntu and duel boot Ubuntu and Windows 7. My question is that on the Ubuntu install wizard it shows the boot partition as hda1. this makes sense since XP was installed first. However, if I delete hda1 and install linux will the MBR be completely overwritten by grub? The windows 7 boot menu is installed on the XP partition best i can tell, so is grub smart enough to figure out how to boot into windows 7 (hda2)? if grub does not see windows 7 and i manually add a grub entry will that be enough? any advice is appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: tvc
Date: October 4, 2009 at 14:42:28 Pacific
Reply:

I would not re-install anything on the MBR of disk 1, before I can boot to the non-primary OS (in casu Windows 7) from another method. This can be via USB, CD or even floppy, or install a bootloader in your BIOS. It cannot hurt to have too many bootloaders on your system, but it can hurt having none. Each disk can have one, only primary must have one, and the BIOS can have one as well. Ex. : OSL2000


0

Response Number 2
Name: jefro
Date: October 5, 2009 at 13:35:31 Pacific
Reply:

Grub should be smart enough to provide you with a loader for both W7 and Ubuntu.

Before you begin be sure to make a backup of any important data on the W7 system with ntbackup or other.

If you have any trouble you can then fix your boot loader either using Grub or bcd. (might have to put lilo on ubuntu.)

Can save all the trouble and get a Virtual machine and not worry.

Playing to the angels
Les Paul (1915-2009)


1

Response Number 3
Name: larryf215
Date: October 5, 2009 at 18:46:57 Pacific
Reply:

sudo update-grub
worked for me when I installed ubuntu on a drive that already contained windows 7 & linux mint. Intially grub did not pick up the previous 2 OS's but , after I did this they were in the menu on the next boot.

https://help.ubuntu.com/community/GrubHowto

larry


0

Response Number 4
Name: TopFarmer
Date: October 6, 2009 at 16:13:28 Pacific
Reply:

"Now I would like to overwrite XP with Ubuntu and duel boot Ubuntu and Windows 7" You will loose Win7 till you repair Win7 boot loader to hda2.


0

Response Number 5
Name: tvc
Date: October 10, 2009 at 10:04:57 Pacific
Reply:

Yes, but you should be aware that you can fix that problem, BEFORE you start messing with the bootloader on your main disk. Disregarding of the fact you are going to re-install the OS of the main disk, you should ALWAYS be able to boot to a disk which is not the master disk, and not passing that master disk itself. Bootloaders are just pointers to disks, and bootloaders can be on floppies, USB, CD, etc etc

Any disk can break at any moment (well, not that they are fragile, but in theory it all is possible). Don't let the main disk be the only bootable disk, unless you only have 1 OS on your system of couse.


0

Related Posts

See More



Response Number 6
Name: catilley
Date: October 18, 2009 at 22:07:14 Pacific
Reply:

I've been dual booting with GRUB for months with no problems. I have Win 2K, PCLinuxOS, Win XP Pro, Linux Mint (Gloria) and Ubuntu 9.04 all on the same laptop (100GB drive). The only advice I was given was to install Win 2K first, then the rest in any order I want, as long as XP Pro is not last, as it will not install a Linux bootloader. You can even shrink partitions and keep what you have and install Ubuntu and your bootloader will be solved. I love Linux and you may too, if you are willing to learn. That's what's Linux is about, exercising your mind and learning, whereas Windows is a "one size fits all". The more you use Linux, one thing or the other will happen. If you love to learn and play, you'll keep it, if not, you'll dump it. It's as simple as that. Good luck with your adventure in the real computing world.


0

Response Number 7
Name: kwchristensen
Date: October 19, 2009 at 07:56:46 Pacific
Reply:

Thank you all for your responses. I have been too busy and as of yet have not tried this. I am still a bit wary of overwriting the mbr, although i am fairly confident grub will pick up the windows 7 partition. My other concern is that I am have trouble setting the boot flag on the win7 partition. Admittedly I am somewhat ignorant on this, but GParted seems to have trouble recognizing the windows 7 partition (although im not sure why since its NTFS) - and therefore I cannot use it to set the boot flag. EasyBCD shows my system has a vista bootloader, so that seems to me that i SHOULDN"T have any problems, but then again we ARE talking about Windows here :) Just to be safe I think I will do a complete trial run with virtualbox before I install Ubuntu natively. Regardless, at this point I may as well wait for 9.10 to be released in a week or so; I will update this post when I do so.


0

Response Number 8
Name: kwchristensen
Date: October 30, 2009 at 09:23:58 Pacific
Reply:

UPDATE: So, with a bit of trial and error in Virtualbox I figured out a combination that works. Basically, If you first install XP, then Win7 along side the boot loader is installed on the 1st (XP) partition. Therefore if you delete the XP partition the mbr reference is lost as well. To fix this issue you need to change the boot flag to the partition which Win7 is installed and reinstall a bootloader; if you just change the boot flag you will get a bootloader not found error. Then you can install another operating system on the first partition. Here is a quick guide:

-Initial situation: XP on hda1, Win7 on hda2
1. Use GParted to change the boot partition from hda1 (XP) -> hda2 (Win7)
2. Insert your Windows 7 install disk and do startup repair

NOTES: When you first boot to the CD and select repair it cannot find the windows 7 partition. it sould automatically do a detect and repair, then restart, however this only repair the mbr reference - it does not install a bootloader. At this point you need to boot to the CD again and now select startup repair. At that point Windows should be happy and boot to Windows 7 properly. You can verify everything is working by changing the boot flag back to hda1. This should bring up the original configuration where you can select between booting to Windows XP or Windows 7.

3. Now you can install whatever flavor of linux you desire on hda1.

NOTES: By default linux (at least Ubuntu) installs the bootloader on /dev/hda. This caused issues for me in Virtualbox. My understanding of the MBR and bootloader is not great, but i believe this setting installs the bootloader (grub) before the hda1 partition (please correct me if I am wrong). Regardless, this setting made it impossible to boot ONLY to windows by changing the boot partition to hda2. Regardless of which partition had the boot flag it always went to grub. Grub is great except for some reason Virtualbox gave me an error everytime I tried to boot to hda2 (Win7). To be safe when I installed linux natively I changed the bootloader installation from hda to hda1. This way if the Windows 7 Grub entry didn't work (as had happened in Virtualbox) I could just change the boot flag to hda2 and boot into Windows. In the end it ended up not being an issue and I could boot to Ubuntu or Win7 just fine from grub. Seems that Virtualbox had a hardware virtualization error or something but that is for a different thread :)

If you do have any problems repairing the Windows 7 partition a great repair guide can be found here:
http://neosmart.net/wiki/display/EB...


0

Sponsored Link
Ads by Google
Reply to Message Icon





Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Ubuntu/Windows7 Installation

How to install Ubuntu dual boot www.computing.net/answers/linux/how-to-install-ubuntu-dual-boot/29117.html

Ubuntu Repair Install www.computing.net/answers/linux/ubuntu-repair-install/29393.html

Ubuntu 7.04 Won't Install www.computing.net/answers/linux/ubuntu-704-wont-install/29690.html