Score:0

ext2 is showing in blkid but ext4 is mounted

cn flag

I just extended size for my /boot partition and mounted it as ext4. I did steps below:

  1. Added new disk on vmware
  2. Created partition with fdisk
  3. Created filesystem ext4 with mkfs command on /dev/sdb1
  4. copied content from /dev/sda2 (old boot) to /dev/sdb1 (new boot)
  5. run e2fsck on /dev/sdb1
  6. run resize2fs on /dev/sdb1
  7. mounted /dev/sdb1 on /boot
  8. 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?

cn flag
Might be trivial but did you comment out the origin boot partition? You only mention that you added the new one, but didn't say anything about removing the old!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.