ext4 migration on my laptop
I migrated from ext3 -> ext4 on my laptop.
tune2fs -O extents,uninit_bg,dir_index /dev/sda1
After running this command you must run fsck.
On kernels < 2.6.28 one needs:
tune2fs -E test_fs /dev/sda1
I thought of no bad and simply rebooted. That was a mistake: grub won't boot from an ext4 partition. So I had to install grub2 instead.
grub2 on the other hand would boot, but the initrd needed to be rebuilt: I had to add the ext4, jbd2, and crc16 modules.
After that the laptop would boot, but the system tries to mount the root as ext3, which fails due to "optional unsupported features (40)". I had to pass an additional parameter:
rootfstype=ext4
in grub.
On kernels < 2.6.28 one needs to use ext4dev instead of ext4
本文记录了作者在其笔记本电脑上将文件系统从ext3迁移到ext4的过程。迁移过程中涉及使用tune2fs命令调整文件系统参数,并解决了包括GRUB启动、initrd模块配置及根文件系统挂载等问题。
372

被折叠的 条评论
为什么被折叠?



