If you will continue to boot with BIOS, then you can treat GPT partitions just like MBR partitions.
I have a BIOS booting system with GPT partition table. I use LVM, so the layout isn't as clear.
Code:
$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168 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: DB92F312-7D21-4BF3-8F14-C6CE5E29E72D
Device Start End Sectors Size Type
/dev/sdb1 2048 4095 2048 1M BIOS boot
/dev/sdb2 4096 503807 499712 244M Microsoft basic data
/dev/sdb3 503808 7814035455 7813531648 3.7T Linux LVM
The LVM layout from lsblk is:
Code:
sdb 8:16 0 3.7T 0 disk
├─sdb1 8:17 0 1M 0 part
├─sdb2 8:18 0 244M 0 part /boot
└─sdb3 8:19 0 3.7T 0 part
├─istar--vg-root 252:0 0 102.3G 0 lvm /
├─istar--vg-swap_1 252:3 0 3.6G 0 lvm [SWAP]
└─istar--vg-lv_media 252:4 0 3.5T 0 lvm /D
sdb1 is a 1M placeholder that I created to ensure partition alignment. I think only 4K is needed, but ... what is 1MB on a 4TB disk? It is not used in any way. It doesn't have any file system or any data.
and just for clarity (I've removed unimportant storage and fake partitions):
Code:
$ df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb2 ext2 237M 102M 123M 46% /boot
/dev/mapper/istar--vg-root ext4 101G 57G 40G 60% /
/dev/mapper/istar--vg-lv_media ext4 3.5T 3.4T 115G 97% /D
Why is it sdb and not sda? Because the system has had 2 disk failures over the years and I've moved SATA cables around to help determine which of the 8 disks connected had failed. I know now to label each disk with the WWN where it can be seen without having to pull the disks from any array or slots first.
There are lots and lots of other disks connected to this machine. It is a plex media server. / is 100G because plex stores all sorts of crap deep in the "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server" directories. Yes, the first used plex directory is THAT FREAKIN' deep - about 50 characters too long for absolutely zero reason I can understand. I've considered making a new LV just for plex data to keep the OS LV less than 25G, which is a best practice.
Anyway, hope this is a concrete, helpful, example.
Bookmarks