Task:
Because Ubuntu does in-place upgrades, the disks are still ext3 instead of ext4, and need to be upgraded.
Steps:
1. Attach the Ubuntu Live CD (e.g. 18.04.1) desktop ISO and reboot the VM.
2. Start a Terminal, and get to root.
$ sudo su
3. In this example, we have 4 disks with one partition each.
- a. Convert the filesystems to ext4:
# tune2fs -O extents,uninit_bg,dir_index /dev/sda1
# tune2fs -O extents,uninit_bg,dir_index /dev/sdb1
# tune2fs -O extents,uninit_bg,dir_index /dev/sdc1
# tune2fs -O extents,uninit_bg,dir_index /dev/sdd1
- b. Check the filesystems for any errors:
# e2fsck -pf /dev/sda1
# e2fsck -pf /dev/sdb1
# e2fsck -pf /dev/sdc1
# e2fsck -pf /dev/sdd1
- c. Verify the filesystem is now ext4:
# file -sL /dev/sda
# file -sL /dev/sdb
# file -sL /dev/sdc
# file -sL /dev/sdd
# file -sL /dev/sde
4. Update the fstab disk boot file:
# mount -t ext4 /dev/sda1 /mnt
# vi /mnt/etc/fstab
Update each disk entry from ext3 to ext4.
e.g.
/dev/sdb1 /local/notesdata ext4 defaults 1 2
/dev/sde1 /var/www ext4 defaults 0 2
Note: If you updated the root "/" partition, you might need to update Grub, as well. (update-grub) It wasn't needed in this case.
5. Reboot.
# cd /
# umount /mnt
# reboot
previous page
|