0

For context see here.

I knew that I have 4 primary partitions, hence I went into Disk Management in Windows 10, and deleted E drive (140GB). Then I went into diskpart from the command line and created an extended partition in place of that. In that extended partition I created a logical drive E with 90GB space, hence 50GB was unallocated in the extended partition, so now I had 3 primary partitions (System, C, and D) and 1 extended partition (logical E + unallocated disk space).

My thinking was that I would install Ubuntu 20.04 in the logical unallocated 50GB space in the new extended partition.

While booting I selected the USB storage device option under Legacy BIOS (as my Windows 10 is in legacy mode) instead of the option under UEFI (although it had the name of my USB flash drive).

This problem occurred.

here

here
partition #7 of SCSI 1 (0,0,0) (sda) as ext4

What happened was it detected Windows 10 this time and also offered to install Ubuntu alongside it, but the option was to directly install Ubuntu (rather than continue and customize the partitioning as seen in online tutorials). The options after selecting Something else showed the unallocated space, but I went on with the default install alongside option, and installed it.

After that the laptop booted up into Windows 10, and the partitions now look like this in Windows Disk Management.

enter image description here

How did I end up with 5 primary partitions? In the photo of Disk Management 3 partitions are labelled as primary partitions on Disk 0 and there is also a System Reserved partition at the beginning of Disk 0. It looks like both E: and F: are located in the same extended partition that was created in the same 140 GB space that was formerly occupied by the old E: drive which was deleted to make room for Ubuntu 20.04 according to the 2nd paragraph of this question. It also looks like the 4 original primary partitions in the 2nd paragraph were originally named System Reserved, C:, D: and E: before you deleted E: in diskpart and created a new extended partition in place of that.

How did my extended partition of 140GB (90GB E and 50GB free space) get converted to an extended partition of 90.5GB (90GB E and 500MB F) and a primary partition of 48GB (which is shown as unoccupied in Windows Disk Management)?

Where is Ubuntu 20.04 installed exactly? Windows Disk Management does not show an ext4 partition in sda. This 500MB drive F is also showing in Windows Explorer. What should I do? Should I have gone with the Something else option and selected free space myself? I can still do that, but do I also need to create a swap partition as seen in online tutorials (new installations of Ubuntu 20.04 create a swap file in the / partition by default instead of a swap partition)?

karel
  • 114,770
mr.loop
  • 167
  • 1
    I don't see five primary partitions; I see 4 primary & 2 logical. You haven't said what release, or flavor of Ubuntu you're asking about, but you use "Something else" (or Manual Partitioning) when you want full control. You don't need swap partition for most releases of Ubuntu, you can use swapfiles, but that depends on your unstated release. – guiverc Feb 20 '21 at 06:09
  • @guiverc 20.04.2.0 LTS. Btw, what exactly went wrong in this installation. – mr.loop Feb 20 '21 at 06:15
  • Can you please edit your question adding a picture of the drive as seen in GParted. Windows Disk Management does not tell us much about the content of Linux partitions. (I think this question is a little over my head). I normally install using something else. – C.S.Cameron Feb 20 '21 at 06:33
  • I don't see anything as having gone wrong; you haven't said if you're talking about Ubuntu desktop, or Ubuntu server, nor if you're talking about official Ubuntu tutorials (https://tutorials.ubuntu.com/) or 3rd party blogger/tutorials (where you need to check the reliability & if they apply to your actual install; release and ISO used; the final .0 in your provided release implies Desktop and you used ubiquity installer, but it's best if you're perfectly clear; the ISO used determines the installer on it) – guiverc Feb 20 '21 at 06:37
  • 1
  • Windows cannot natively read ext4 partitions. 2. New installations of Ubuntu create a swap file in the / partition instead of a swap partition by default. 3. The intent of providing this information is to protect your question from being closed as too broad.
  • – karel Feb 20 '21 at 08:19
  • 1
    @guiverc According to the 2nd screen photo mr. loop tried to install Ubuntu 20.04 desktop alongside Windows 10, but his laptop boots automatically to Windows 10 after installing Ubuntu 20.04. The 48.72 GB partition in the 3rd screen photo seems to be the partition on which Ubuntu 20.04 is installed (on sda). – karel Feb 20 '21 at 09:20
  • 1
    If you have the old BIOS/MBR configuration, you only have one MBR for boot loaders. It will either have Windows boot loader to boot Windows or grub to boot Ubuntu. Windows will not boot Ubuntu. Grub boots working Windows, but Windows updates turn fast start up back on and grub grub will not boot it. So be sure to always have current version of Windows repair/recovery flash drive & Ubuntu live installer to restore grub after Windows repairs. – oldfred Feb 20 '21 at 13:53