Silvio_Abela
March 12th, 2014, 10:19 AM
Hello,
This is my first post in this forum. I am a new Ubuntu user (in my almost middle age) :).
I have been looking all over the web for a solution but have been finding some really conflicting advice due to the nature of my installation, I think. My problem is this: I have an AsRock Z77 Pro-4 mainboard that has a UEFI Bios and two SATA controllers. One from Intel which has two SATA3 and four SATA2 (all support RAID) and one ASmedia controller with two SATA3 (no RAID). I have a 128GB SSD with Windows 7 x64 on the ASmedia controller, two Seagate 3TB SATA on RAID 1 (Intel Rapid Storage Technology) and my Ubuntu 12.04 LTS x64 on a 160GB drive on a SATA 2 port which is connected to an eSATA port on the front of my case. The port is set in bios as eSATA as the mobo gives that option.
I previously used Ubuntu in a virtual machine but lately I decided to have it on a real HDD to have more speed and better use of resources. When trying to install Ubuntu to dual boot I used the following tutorial "Dual-boot Windows 7 and Ubuntu 12.04 on a PC with a UEFI board, SSD and HDD (http://www.linuxbsdos.com/2012/10/10/dual-boot-windows-7-and-ubuntu-12-04-on-a-pc-with-uefi-board-ssd-and-hdd/)". This tutorial suggested to install Ubuntu on its HDD after unplugging all other drives from the system. I configured my drive using the suggested partitions and after re-booting to make sure everything worked, I plugged in all other HDD and booted up. Grub loader came on and although I could boot into Ubuntu, the Windows option did not work and the follwing error was shown:
Error: no such device EE0883C3088388F3
Error: no such partition
I tried looking into the Grub edit commands and found that the Windows partition is pointing to "sdg1". The following is part of the grub.cfg:
menuentry "Windows 7 (loader) (on /dev/sdg1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set=root EE0883C3088388F3
chainloader +1
What I would like to ask is this:
If I change the entry /dev/sdg1 to read /dev/sdh1 which is the first part ition on my Windows SSD (100MB) will the Grub Windows menu entry work? I think I would also need to change the set root='(hd2,msdos1)' entry as well. I still need to find the correct "hd" number as I understand that Grub names the drives differently.
Will it be better to try and somehow repair Grub, and if so, which is the best place to repair it from, Live CD or terminal while booted normally? (a few hints on this will be much appreciated as this is where I previously found some conflicting advice.
Then my last problem would be to make Windows boot by default, but that has not been researched yet :)
Any help, information or pointers to valid tutorials is most welcome. Thank you.
This is my first post in this forum. I am a new Ubuntu user (in my almost middle age) :).
I have been looking all over the web for a solution but have been finding some really conflicting advice due to the nature of my installation, I think. My problem is this: I have an AsRock Z77 Pro-4 mainboard that has a UEFI Bios and two SATA controllers. One from Intel which has two SATA3 and four SATA2 (all support RAID) and one ASmedia controller with two SATA3 (no RAID). I have a 128GB SSD with Windows 7 x64 on the ASmedia controller, two Seagate 3TB SATA on RAID 1 (Intel Rapid Storage Technology) and my Ubuntu 12.04 LTS x64 on a 160GB drive on a SATA 2 port which is connected to an eSATA port on the front of my case. The port is set in bios as eSATA as the mobo gives that option.
I previously used Ubuntu in a virtual machine but lately I decided to have it on a real HDD to have more speed and better use of resources. When trying to install Ubuntu to dual boot I used the following tutorial "Dual-boot Windows 7 and Ubuntu 12.04 on a PC with a UEFI board, SSD and HDD (http://www.linuxbsdos.com/2012/10/10/dual-boot-windows-7-and-ubuntu-12-04-on-a-pc-with-uefi-board-ssd-and-hdd/)". This tutorial suggested to install Ubuntu on its HDD after unplugging all other drives from the system. I configured my drive using the suggested partitions and after re-booting to make sure everything worked, I plugged in all other HDD and booted up. Grub loader came on and although I could boot into Ubuntu, the Windows option did not work and the follwing error was shown:
Error: no such device EE0883C3088388F3
Error: no such partition
I tried looking into the Grub edit commands and found that the Windows partition is pointing to "sdg1". The following is part of the grub.cfg:
menuentry "Windows 7 (loader) (on /dev/sdg1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set=root EE0883C3088388F3
chainloader +1
What I would like to ask is this:
If I change the entry /dev/sdg1 to read /dev/sdh1 which is the first part ition on my Windows SSD (100MB) will the Grub Windows menu entry work? I think I would also need to change the set root='(hd2,msdos1)' entry as well. I still need to find the correct "hd" number as I understand that Grub names the drives differently.
Will it be better to try and somehow repair Grub, and if so, which is the best place to repair it from, Live CD or terminal while booted normally? (a few hints on this will be much appreciated as this is where I previously found some conflicting advice.
Then my last problem would be to make Windows boot by default, but that has not been researched yet :)
Any help, information or pointers to valid tutorials is most welcome. Thank you.