我欲将ext2转换为ext3,操作如下:
(linux 的分区有2个,一个是根分区 /dev/hdb5,
另外一个是用户分区 /dev/hdb7 )
1. tune2fs -j /dev/hdb5
2. tune2fs -j /dev/hdb7
3. 修改 /etc/fstab, 将文件中的 ext2 改为 ext3
4. 重新启动
然后我 cat /proc/mounts , 发现 /dev/hdb7已经是
ext3, 而根分区/dev/hdb5 依然是 ext2, 请问各位
高手,这是怎么回事?(启动过程中系统没有报错)
谢谢。
我记得在使用tune2fs前需要将文件系统首先卸载下来,不知道你没有成功是不是这个原因
see tip from linuxfocus.org
1. First rule: Never use tune2fs on a mounted file system. Get a rescue software for linux such as the tomsrtbt from www.toms.net/rb/. Tomsrtbt is a Linux system on just one floppy. You can boot from it and then use the tune2fs as described below.
You may also download the tomsrtbt-1.6.362.tar.gz or tomsrtbt-1.7.185.tar.gz directly from here. Unpack the file. Installation instructions are included.
2. Once you have booted from the rescue disk you can run the command
fdisk -l
to see all your partitions.
3. Run the command
dumpe2fs /dev/YourDev | grep Max
to see what the current max mount count on a given partition is. Replace the YourDev by the appropriate device (e.g hda5).
4. To change the maximum mount count to a higher value (e.g 50) use
tune2fs -c 50 /dev/YourDev
5. Run the above tune2fs command for all your hard disk partitions which are marked as "linux native". You can also change the mount count value a bit for every partition (e.g 50, 60, 70...). That way not all partitions get a forced check at once.