I just extended size for my /boot partition and mounted it as ext4.
I did steps below:
- Added new disk on vmware
- Created partition with fdisk
- Created filesystem ext4 with mkfs command on /dev/sdb1
- copied content from /dev/sda2 (old boot) to /dev/sdb1 (new boot)
- run e2fsck on /dev/sdb1
- run resize2fs on /dev/sdb1
- mounted /dev/sdb1 on /boot
- Added new entry in fstab and rebooted system
System is rebooting with correct disk mounted to /boot and with df -hT command it shows ext4 filesystem however blkid command show ext2 and fdisk still shows that boot is on /dev/sda2
root@ubuntu:~# df -hT | grep boot
/dev/sdb1 ext4 5.0G 63M 4.7G 2% /boot
root@ubuntu:~# blkid | grep ext2
/dev/sda2: UUID="9e20c640-325e-4aa2-961c-ece5c4013133" TYPE="ext2" PARTUUID="42d33685-02"
/dev/sdb1: UUID="9e20c640-325e-4aa2-961c-ece5c4013133" TYPE="ext2" PARTUUID="a1fcddbb-01"
root@ubuntu:~# fdisk -l
Disk /dev/sda: 25 GiB, 26843545600 bytes, 52428800 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: 0x42d33685
- Device Boot Start End Sectors Size Id Type
- /dev/sda1 2048 40624127 40622080 19.4G 83 Linux
- /dev/sda2 * 40624128 48437247 7813120 3.7G 83 Linux
- /dev/sda3 48439294 52426751 3987458 1.9G 5 Extended
- /dev/sda5 48439296 52426751 3987456 1.9G 82 Linux swap / Solaris
Disk /dev/sdb: 5 GiB, 5368709120 bytes, 10485760 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: 0xa1fcddbb
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 10485759 10483712 5G 83 Linux
Any suggestions?