2

I would like to dual-boot Windows 7 and Ubuntu and have reserved 2 partitions for that purpose.

But when I boot de Ubuntu LiveDVD, it doesn't recognize Windows and wants to install Ubuntu on the entire drive.

Output of parted --list:

Model: ATA Hitachi HDS72101 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size   File system  Name                          Flags
 1      1049kB  106MB   105MB  fat32        EFI system partition          boot
 2      106MB   240MB   134MB               Microsoft reserved partition  msftres
 3      240MB   315GB   315GB  ntfs         Basic data partition          msftdata
 4      315GB   629GB   314GB  ntfs         Basic data partition          msftdata
 5      629GB   1000GB  371GB  ntfs         Basic data partition          msftdata


Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0
has been opened read-only.
Error: Can't have a partition outside the disk!          

How can I install Ubuntu next to Windows 7 and dual boot?

LiveWireBT
  • 28,763

2 Answers2

0

Have a look here how to efficiently partition a Windows-Ubuntu dual-boot before you begin.

Then: Delete the partitions you've set aside for Ubuntu using Windows from Windows and recreate them with Ubuntu during the Ubuntu install with something else in item number 8 "Allocate drive space"

Fabby
  • 34,259
0

You have Windows 7 on GPT and an EFI system partition(!?). This usually happens when you replace Windows 8 with 7 but don't change the partition table and are unaware of the differences between legacy and UEFI booting. It confuses the Ubuntu installer that you have an (almost) valid UEFI partition layout but are very likely not booting in UEFI mode.


Since your machine obviously shipped with Windows 8 and is UEFI compatible you might want to take a step back and set things up properly. Heres what I recommend:

  • Back things up as they are now. (You can copy/backup whole partitions with Ubuntu Disks utility.)
  • Take Microsoft's upgrade offer and upgrade to Windows 10. You may not have liked Windows 8, but 10 is a step backwards and it completely supports hardware built for Windows 8 where actually 7 didn't. After you got your license for 10 install the UEFI bootloader properly (hint: bcdboot) or reinstall again from media in UEFI mode.
    • Privacy concerns: Don't use any product with networking capabilities from this manufacturer made in the last 25 years if you have any.
  • Install Ubuntu in UEFI mode too.

Related:

LiveWireBT
  • 28,763
  • Ah! :-) Some Windows 7 systems come with UEFI as well (E.G. "Medion" systems from "Aldi") He's a beginning user. I'm trying to keep things as Simple as possible. – Fabby Sep 01 '15 at 07:11