Grub problem on dual-booting with Ubuntu 11.04 and Windows
Hello.
I`m trying to make Dual-Boot on my machine. Firstly I installed Ubuntu, but, when I installed Windows, the Grub don`t shows anymore, and starts directly the Windows. I searched on the internet and I find that I have to reinstall the Grub. Here are the problems: My OS is Ubuntu 11.04, that comes with Grub 2.0 On the Live-CD (Pen drive) firstly I mounted the HD partition: Code:
sudo -i Now, on the terminal I open Grub console: Code:
grub Code:
Checking if "/boot/grub/stage1" exists... yes I restarted my PC again and entered the Ubuntu Live-CD. This time I mounted the partition and typed in the terminal: Code:
grub-install --root-directory=/mnt /dev/sda1 Code:
Installing GRUB to /dev/sda1 as (hd0,0)... Can anyone help me please? :redface: |
Your second attempt is closer - but you may have made a mess of that partition too now. You should have used
Code:
grub-install --root-directory=/mnt /dev/sda Code:
lsb_release -a |
When I was dual booting (Thats over with now), I first had windows installed, then created the necessary partition within windows. Thats a personal pref though, I guess if you really only use windows for a small number of things, you may want Ubuntu. After I was done with the install though, It gave me the option right when I started up my computer.
|
With Ubuntu if you have windows installed, already you can either free-up some space & use unallocated space for install, then Ubuntu wil install boot loader.
Nice machine. I would like to add as an after thought, the motherboard you have has sata,if you're uncomfortable with dual-boot you can add an extra sata hdd & disable the other while you're installing Ubuntu, then enable the other drive, set ubuntu drive to have boot priority, reboot into Ubuntu open terminal issue command Quote:
|
Quote:
Code:
root@ubuntu:~# lsb_release -a |
Since this is a new setup I would recommend to do it from the beginning. But this time I would recommend to install Windows first into the first partition, after that install Ubuntu. Some Windows versions don't like to not be in the first primary partition, Windows 7 normally also creates a small boot partition which can be rather confusing.
|
Quote:
Okay then... Just to confirm, firstly I install Windows and then Ubuntu, right? Can I firstly create the partitions and then install or I have to create them on windows installer? Also, do you recommend creating a separate partition for /home and /boot? There is any reason for doing that way? Lastly, at least there will be 3 partition: Windows, Linux and Swap, do I need to create another for the Win? Or he itself will create the swap/any other? Sorry for the large quantity of questions, I do not want to do wrong again. |
Quote:
When you install Ubuntu choose the free space & Ubuntu will create it's own partition. |
Quote:
Quote:
Quote:
|
It is essential to know which version of Windows you install. XP and Vista will only need one partition, 7 will automatically create two. So do it like EDDY1 one wrote, delete all partitions and create a new one on a part of the disk, using the Windows installer. Let the Ubuntu installer create Ubuntu's partitions in the free space.
|
Okay. Thanks for the help guys!
|
All times are GMT -5. The time now is 09:52 AM. |