I’m getting ready to install a FreeBSD-derived OS (Trident) as the 3rd OS on my laptop (Windows 10 and Linux being the others which are already installed). I also posted this question on the TrueOS forum, but so far no one has responded, so I thought it might be best to go to the horse's mouth as it were.
History
A quick note: I don't know how the drive names translate into FreeBSD speak, so rather than guess and stir up confusion, I'm going to refer to them by their Linux names. Hope that's okay.
Originally, this laptop came with one internal HDD, but I've gradually changed the hardware and OS installations over the last two months like this:
Which is how I came to be in the mess I'm in as can be seen from the fdisk output below.
Also, I have to hit F11 each time I reboot in order to get to the (I think it's) GRUB boot menu.
Part of my concern is that I have no idea where the Windows boot loader is. I'm guessing it's on one of the Microsoft reserved partitions:
And to add to my confusion, I don't know where the Linux boot loader is. It has to be one of:
The Laptop
MSI GE72 2QF Apache Pro
UEFI/BIOS
(4) internal drives, (1) HDD, (3) SSDs
(2) external Samsung monitors (designer rez)
I worked out how to deal with the external monitors in Linux, so I'm assuming the same tools will serve the same purposes in FreeBSD and its offspring.
What I'm Planning
In preparation for installing FreeBSD -> Trident, I’d like to clean up some of the extraeous partitions scattered across the four drives in my machine. The objective being to end up with a single EFI boot partition, preferably on sda, that will allow me to boot Trident, Linux, or Windows.
I’ve included the output of fdisk -l below and the way I’m reading it, these are the partitions that I should be able to delete safely (in the fdisk output, I've formatted these as bold-italic to make them stand out):
However, I’m not sure which EFI partition is used by GRUB (or whatever boot loader Mint installed). It’s been far too long since I dug into this stuff and all this UEFI/EFI stuff is new to me.
Questions
Disk /dev/loop0: 127.4 MiB, 133599232 bytes, 260936 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop1: 91 MiB, 95416320 bytes, 186360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
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: gpt
Disk identifier: 8BA2E69A-E663-49CB-8191-57C60C57BA7B
Device Start End Sectors Size Type
/dev/sda1 2048 244140031 244137984 116.4G Linux filesystem
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
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: gpt
Disk identifier: 200826CF-47D7-46DE-AF6E-94BBE40EF0F0
Device Start End Sectors Size Type
/dev/sdb1 34 32767 32734 16M Microsoft reserved
/dev/sdb2 32768 976771071 976738304 465.8G Microsoft basic data
Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 91777562-C427-4D61-B439-084A12E5B5B5
Device Start End Sectors Size Type
/dev/sdc1 2048 1023999 1021952 499M Windows recovery environment
/dev/sdc2 1024000 1228799 204800 100M EFI System
/dev/sdc3 1228800 1261567 32768 16M Microsoft reserved
/dev/sdc4 1261568 1953523711 1952262144 930.9G Microsoft basic data
Disk /dev/sdd: 223.6 GiB, 240057409536 bytes, 468862128 sectors
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: gpt
Disk identifier: 41AFA081-709E-4EF9-B34B-F38815D32746
Device Start End Sectors Size Type
/dev/sdd1 16191 208844 192654 94.1M Windows recovery environment
/dev/sdd2 208971 369494 160524 78.4M EFI System
/dev/sdd3 369621 402388 32768 16M Microsoft reserved
/dev/sdd4 417816 468857024 468439209 223.4G Microsoft basic data
Disk /dev/mmcblk0: 59.5 GiB, 63864569856 bytes, 124735488 sectors
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: 0xc99186e7
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 124735487 124733440 59.5G 83 Linux
Disk /dev/sde: 1.8 TiB, 2000396746752 bytes, 3907024896 sectors
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: 0x006d81ce
Device Boot Start End Sectors Size Id Type
/dev/sde1 * 2048 3907024895 3907022848 1.8T 7 HPFS/NTFS/exFAT
History
A quick note: I don't know how the drive names translate into FreeBSD speak, so rather than guess and stir up confusion, I'm going to refer to them by their Linux names. Hope that's okay.
Originally, this laptop came with one internal HDD, but I've gradually changed the hardware and OS installations over the last two months like this:
- sdc was the original drive,
- added sdb, installed Windows and Linux on it, scraped sdc clean and reformatted it as a shared home/data drive,
- added sdd, moved Windows to it,
- added sda, installed Linux there, leaving enough room for a FreeBSD install.
Which is how I came to be in the mess I'm in as can be seen from the fdisk output below.
Also, I have to hit F11 each time I reboot in order to get to the (I think it's) GRUB boot menu.
Part of my concern is that I have no idea where the Windows boot loader is. I'm guessing it's on one of the Microsoft reserved partitions:
- sdb1,
- sdc3, or
- sdd3.
And to add to my confusion, I don't know where the Linux boot loader is. It has to be one of:
- sdc2, or
- sdd2.
The Laptop
MSI GE72 2QF Apache Pro
UEFI/BIOS
(4) internal drives, (1) HDD, (3) SSDs
(2) external Samsung monitors (designer rez)
I worked out how to deal with the external monitors in Linux, so I'm assuming the same tools will serve the same purposes in FreeBSD and its offspring.
What I'm Planning
In preparation for installing FreeBSD -> Trident, I’d like to clean up some of the extraeous partitions scattered across the four drives in my machine. The objective being to end up with a single EFI boot partition, preferably on sda, that will allow me to boot Trident, Linux, or Windows.
I’ve included the output of fdisk -l below and the way I’m reading it, these are the partitions that I should be able to delete safely (in the fdisk output, I've formatted these as bold-italic to make them stand out):
- /dev/sdb1 (Microsoft reserved)
- /dev/sdc2 (EFI System)
- /dev/sdc3 (Microsoft reserved)
- /dev/sdd1 (Windows recovery environment)
- /dev/sdd2 (EFI System)
- /dev/sdd3 (Microsoft reserved)
However, I’m not sure which EFI partition is used by GRUB (or whatever boot loader Mint installed). It’s been far too long since I dug into this stuff and all this UEFI/EFI stuff is new to me.
Questions
- Am I right in thinking I can delete all of the above partitions?
- If not, which ones do I need to keep?
- What's the best tool to do this partition shuffling? (Please keep in mind that I'm an artist/technical writer, mostly a Windows user for the last 10 years with modest experience in BSD and Linux, with general computer experience going back to 1985. In short, I'm not a complete noob, but I haven't exactly been keeping up with recent developments in drive technology.)
- Is it possible to resize and move (if necessary) the Linux OS partition (sda1) to make room for an EFI partition without having to reinstall Linux?
- Where is the best place to put an EFI boot partition?
- Should I figure out which of the two existing ones is actually being used by GRUB (or whatever that boot loader is) and leave it there? If so, how do I wrench control away from the Windows boot loader on either sdb1, sdc3, or sdd3, if indeed one of those is a Windows boot partition?
- Or am I asking all the wrong questions?
- /dev/mmcblk0 is a USB stick I had plugged in when I ran fdisk
- /dev/sde is an external drive and can be ignored for this scenario
- /dev/loop0 and /dev/loop1 - I have no idea what these are.
Disk /dev/loop0: 127.4 MiB, 133599232 bytes, 260936 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/loop1: 91 MiB, 95416320 bytes, 186360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
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: gpt
Disk identifier: 8BA2E69A-E663-49CB-8191-57C60C57BA7B
Device Start End Sectors Size Type
/dev/sda1 2048 244140031 244137984 116.4G Linux filesystem
Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
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: gpt
Disk identifier: 200826CF-47D7-46DE-AF6E-94BBE40EF0F0
Device Start End Sectors Size Type
/dev/sdb1 34 32767 32734 16M Microsoft reserved
/dev/sdb2 32768 976771071 976738304 465.8G Microsoft basic data
Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 91777562-C427-4D61-B439-084A12E5B5B5
Device Start End Sectors Size Type
/dev/sdc1 2048 1023999 1021952 499M Windows recovery environment
/dev/sdc2 1024000 1228799 204800 100M EFI System
/dev/sdc3 1228800 1261567 32768 16M Microsoft reserved
/dev/sdc4 1261568 1953523711 1952262144 930.9G Microsoft basic data
Disk /dev/sdd: 223.6 GiB, 240057409536 bytes, 468862128 sectors
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: gpt
Disk identifier: 41AFA081-709E-4EF9-B34B-F38815D32746
Device Start End Sectors Size Type
/dev/sdd1 16191 208844 192654 94.1M Windows recovery environment
/dev/sdd2 208971 369494 160524 78.4M EFI System
/dev/sdd3 369621 402388 32768 16M Microsoft reserved
/dev/sdd4 417816 468857024 468439209 223.4G Microsoft basic data
Disk /dev/mmcblk0: 59.5 GiB, 63864569856 bytes, 124735488 sectors
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: 0xc99186e7
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 2048 124735487 124733440 59.5G 83 Linux
Disk /dev/sde: 1.8 TiB, 2000396746752 bytes, 3907024896 sectors
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: 0x006d81ce
Device Boot Start End Sectors Size Id Type
/dev/sde1 * 2048 3907024895 3907022848 1.8T 7 HPFS/NTFS/exFAT