大网数据广告活动
服务器运维问答

ext2 or ext3 without journaling

· 52CE 我爱测

I've recently came across several servers with different "strategies" for their /boot partition (btw, always as /dev/sda1, 512M) Some servers use ext2 for /boot, some use ext3 for /boot, and for the latter some have turned off jo…

问题原文

原帖链接 · BlakBat · CC BY-SA 3.0

I've recently came across several servers with different "strategies" for their /boot partition (btw, always as /dev/sda1, 512M)

Some servers use ext2 for /boot, some use ext3 for /boot, and for the latter some have turned off journaling or turned off journaling and added the sync option. I won't take relatime and similar in account since I don't believe those atime options are relevant here.

  • Are there any important and relevant differences between an ext2 partition and a ext3 partition with journaling turned off for a /boot partition? I believe that online file system growth and htrees have no use at all for a /boot partition and I don't see what else ext3 offers over ext2.

  • Would "sync" option be recommended if there is no journaling?

  • Does any of these setups stand out from the rest in terms of easy of administration in case of crash/panic/oops or performance wise?

  • Is there any general consensus on the partition/format type for such a small (512MB) /boot partition should be?

社区高分解答

原帖链接 · shodanshok · CC BY-SA 3.0

From a functional standpoint, ext3 is ext2 + journaling.
Using ext3 without journaling means to use an ext2 filesystem, but with a more recent code base (ext3's one).

However, there is not reason why you can't use ext4 as a boot partition, as Grub supports it since years.

The 512 MB limit for a boot partition is a vestige of some very old BIOS which can not boot from a partition larger the 512 MB. You can not use whichever size you want for your boot partition, but anything over 512-1024 MB is overkill.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-01-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。