Friday, May 3, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 1548  / 2 Years ago, tue, march 1, 2022, 10:36:17

My current Ubuntu installation shows 3 partitions. I thought I had deleted every partition from my Windows 10 SSD before installing Ubuntu 20.04.



  1. Did Ubuntu reuse my Windows boot partition instead of making a new one? I noticed it's still FAT32 formatted. Is there some way at this point to convert it to a Linux filesystem if it really is the boot partition?


I'm sure the second 1TB partition showed up after installing Timeshift. I didn't pay attention to which 1TB partition was there first, but I assume sda2. I uninstalled Timeshift briefly to see if one of the 1TB partitions would go away, but both remained.



  1. Did Timeshift create this second partition, or is it some artifact I can safely delete? How can 2 partitions share the same physical drive when they overlap like this?


Thank you very much!


$ sudo fdisk -l


Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: Samsung SSD 850
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x52e04291

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1050623 1048576 512M b W95 FAT32
/dev/sda2 1052670 1953523711 1952471042 931G 5 Extended
/dev/sda5 1052672 1953523711 1952471040 931G 83 Linux

$ sudo mount | grep sda


/dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda5 on /run/timeshift/backup type ext4 (rw,relatime,errors=remount-ro)

More From » partitioning

 Answers
2
/dev/sda1  *       2048    1050623    1048576  512M  b W95 FAT32    
/dev/sda2 1052670 1953523711 1952471042 931G 5 Extended
/dev/sda5 1052672 1953523711 1952471040 931G 83 Linux

This is typical for a UEFI installation of Ubuntu in MBR ("msdos").



  • sda1: ESP (EFI System Partition); required (as FAT32) and not exclusively "Windows", it's for all installed OSes. Please read the UEFI guide in order to understand what it entails, all computers now (and form a decade ago) are UEFI, not BIOS; users must understand UEFI going forward.

  • sda2: Extended partition that the Ubuntu installer usually creates whenever it detects "msdos" partitioning type.

  • sda5: Logical partition inside sda2, that's why they "overlap" (not really, one is a logical partition inside a primary partition) and despite the label is probably your root file system (if you have no other drives it certainly is; removing it will remove your Ubuntu installation.


Additional considerations:


It would have been better to create an entirely new GPT partition table instead of keeping the old MBR ("msdos"). It can be easily done in a live session, before installing Ubuntu, with GParted: Devices menu → Create new partition tableGPT. This blanks the drive completely. Then the Ubuntu installer, using the default settings would only (re-)create the ESP and the root (/) file system since currently there's no need for a separate swap partition.


[#1684] Wednesday, March 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
istmasted

Total Points: 287
Total Questions: 130
Total Answers: 153

Location: Burkina Faso
Member since Thu, Dec 23, 2021
2 Years ago
istmasted questions
;