what is sda1 partition used for?


from blkid, I only see sda2/3/4, what happen to sda1, seems that partition has half of the flash.
what is sda1 partition used for?

/dev/sda2: LABEL="ONIE-BOOT"
/dev/sda3: LABEL="CLBOOT"
/dev/sda4: "LVM2_member"

2 replies

Userlevel 3
The first partition is the GPT partition where grub lives. Depending on the total flash size of the switch, it *should* be a rather small percentage. Here is what it looks like on a Penguin Arctica 3200XLP, and the GPT is only 2 MB:

root@sw11:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 14.9G 0 disk
|-sda1 8:1 0 2M 0 part
|-sda2 8:2 0 128M 0 part
|-sda3 8:3 0 256M 0 part /boot
'-sda4 8:4 0 14.5G 0 part
|-CUMULUS-PERSIST (dm-0) 253:0 0 16M 0 lvm /mnt/persist
|-CUMULUS-SYSROOT2 (dm-1) 253:1 0 3G 0 lvm
'-CUMULUS-SYSROOT1 (dm-2) 253:2 0 3G 0 lvm /

root@sw11:~# gdisk -l /dev/sda GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 31277232 sectors, 14.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): C7323E39-5225-4B6B-A3C8-9D524158E3AB
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 31277198
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 6143 2.0 MiB EF02 GRUB-BOOT
2 6144 268287 128.0 MiB FFFF ONIE-BOOT
3 268288 792575 256.0 MiB 8300 CLBOOT
4 792576 31277198 14.5 GiB 8E00 CUMULUS
I mis calc the size, thanks for the explanation.

Reply