LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: nsdy

fedora10中 默认分区格式是否包含ext4

[复制链接]
发表于 2008-12-3 11:38:08 | 显示全部楼层
[user@localhost ~]$ mount
/dev/mapper/luks-b474112b-7bb1-40bb-a687-586d8f2ec29e on / type ext4 (rw)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/luks-8b3ea127-9df1-4e63-bd70-01bd3f6a78da on /home type ext4 (rw)
/dev/sdb1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /media/diskc type fuseblk (rw,nosuid,nodev,allow_other,allow_other,blksize=4096)
/dev/sda5 on /media/diskd type fuseblk (rw,nosuid,nodev,allow_other,allow_other,blksize=4096)
/dev/sda6 on /media/diske type fuseblk (rw,nosuid,nodev,allow_other,allow_other,blksize=4096)
/dev/sda7 on /media/diskf type fuseblk (rw,nosuid,nodev,allow_other,allow_other,blksize=4096)
/dev/sdb5 on /media/diskn type ext3 (rw,nosuid,nodev,uhelper=hal)
/dev/sdb6 on /media/diskh type fuseblk (rw,nosuid,nodev,allow_other,allow_other,blksize=4096)
/dev/sdb7 on /media/diski type fuseblk (rw,nosuid,nodev,allow_other,allow_other,blksize=4096)
/dev/sdb8 on /media/diskm type vfat (rw,nosuid,nodev,uhelper=hal,shortname=lower)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
gvfs-fuse-daemon on /home/user/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=user)
回复 支持 反对

使用道具 举报

发表于 2008-12-3 15:19:04 | 显示全部楼层
已经正在用ext4了....
但是grub还不能用ext4引导..要等grub更新
回复 支持 反对

使用道具 举报

发表于 2008-12-3 17:06:21 | 显示全部楼层
Post by Airate;1913375
是ext4的开发进度没那么快,与fedora无关。
另外安装的时候加参数 ext4dev 的话,可以也体验一下ext4
请注意:dev后缀已经去掉了!
另外Fedora的内核也已经把ext4的支持编译进去了,提供了完整支持,没有任何问题!
转换ext3到ext4: http://bbs.fedora-zh.org/showthread.php?t=563
回复 支持 反对

使用道具 举报

发表于 2008-12-3 23:52:05 | 显示全部楼层
Create a new filesystem using the ext4 filesystem type:

         # mke2fs -t ext4 /dev/hda1

Or to configure an existing ext3 filesystem to support extents:

         # tune2fs -O extents /dev/hda1

If the filesystem was created with 128 byte inodes, it can be converted to use 256 byte for greater efficiency via:

         # tune2fs -I 256 /dev/hda1

(Note: we currently do not have tools to convert an ext4 filesystem back to ext3; so please do not do try this on production filesystems.)
(NOTE: Recent mkfs.ext3 now defaults to 256-byte inodes, so newer distributions (Fedora 9 included) will have already created 256-byte inode filesystems. )

网上还有个文章说到.虽然可以从ext3直接转到ext4,,但并不把旧数据结构转换为新的格式。例如,现有文件保持块状方式分配,而不是使用 extent 进行分配。因此,旧文件没有从新功能获得好处。
不过可以使用(正处于 试验阶段的)e4defrag 工具转换分配方式来利用 extent 功能。

所以要用ext4现在最好的方式是直接新建分区.
回复 支持 反对

使用道具 举报

发表于 2008-12-4 00:11:48 | 显示全部楼层
Post by zhong;1918727
Create a new filesystem using the ext4 filesystem type:

         # mke2fs -t ext4 /dev/hda1

Or to configure an existing ext3 filesystem to support extents:

         # tune2fs -O extents /dev/hda1

If the filesystem was created with 128 byte inodes, it can be converted to use 256 byte for greater efficiency via:

         # tune2fs -I 256 /dev/hda1

(Note: we currently do not have tools to convert an ext4 filesystem back to ext3; so please do not do try this on production filesystems.)


网上还有个文章说到.虽然可以从ext3直接转到ext4,,但并不把旧数据结构转换为新的格式。例如,现有文件保持块状方式分配,而不是使用 extent 进行分配。因此,旧文件没有从新功能获得好处。
不过可以使用(正处于 试验阶段的)e4defrag 工具转换分配方式来利用 extent 功能。

所以要用ext4现在最好的方式是直接新建分区.
You can mount any ext3 filesystem as ext4 without any changes. If the filesystem is mounted as ext4 using the "extents" mount option (the default), this will enable the INCOMPAT_EXTENTS feature, and prevent the filesystem from being mounted as ext3 again. If you mount with the "-o noextents" option this will not happen.
From:  http://ext4.wiki.kernel.org/
似乎有矛盾,ext4默认的挂载模式就已经开启了extent特性了,搞不懂了
PS:楼上提到的那篇文章能否给个链接,我没找到
回复 支持 反对

使用道具 举报

发表于 2008-12-4 01:16:17 | 显示全部楼层
Post by gcell;1918740

似乎有矛盾,ext4默认的挂载模式就已经开启了extent特性了,搞不懂了
PS:楼上提到的那篇文章能否给个链接,我没找到

不矛盾..用ext4默认挂载是开启了extent特性.但对从ext3转换来说.这特性只支持用ext4挂载后创建的新文件.原有的旧数据不是按extent来分配的.所以用不到这个特性.要进行转换.

英文部份我是引用..2.6.28内核里的ext4文档
中文部份是引用 http://www.ibm.com/developerworks/cn/linux/l-ext4/index.html

按那两个文章所说目前最简单使用的ext4的方式.是直接把分区用ext4格式,重新格式化

直接从EXT3转换.要运行下面两个命令对分区进行调整
1. tune2fs -O extents /dev/hda1
2. tune2fs -I 256 /dev/hda1
(如果你的EXT3分区是FC10从新格式化过的,那么第二个命令就不需要了)

EXT3转换.调整后.还需要用一个e4defrag在线磁盘整理工具对分区进行整理才能将原有的旧数据转为EXT4的分配方式..不过这个工具还是试验.而且还要内核支持.
回复 支持 反对

使用道具 举报

发表于 2008-12-4 08:50:24 | 显示全部楼层
Post by zhong;1918754
不矛盾..用ext4默认挂载是开启了extent特性.但对从ext3转换来说.这特性只支持用ext4挂载后创建的新文件.原有的旧数据不是按extent来分配的.所以用不到这个特性.要进行转换.

英文部份我是引用..2.6.28内核里的ext4文档
中文部份是引用 http://www.ibm.com/developerworks/cn/linux/l-ext4/index.html

按那两个文章所说目前最简单使用的ext4的方式.是直接把分区用ext4格式,重新格式化

直接从EXT3转换.要运行下面两个命令对分区进行调整
1. tune2fs -O extents /dev/hda1
2. tune2fs -I 256 /dev/hda1
(如果你的EXT3分区是FC10从新格式化过的,那么第二个命令就不需要了)

EXT3转换.调整后.还需要用一个e4defrag在线磁盘整理工具对分区进行整理才能将原有的旧数据转为EXT4的分配方式..不过这个工具还是试验.而且还要内核支持.


没错,去年还是ext4dev的时候相关文档就是这么写的,仅仅用ext4挂载的话还体会不到extent的改进,我当时是先修改fstab,重新挂载后将数据全部移出分区再移回来。
回复 支持 反对

使用道具 举报

发表于 2008-12-4 11:23:22 | 显示全部楼层
Post by 狱卒;1918798
没错,去年还是ext4dev的时候相关文档就是这么写的,仅仅用ext4挂载的话还体会不到extent的改进,我当时是先修改fstab,重新挂载后将数据全部移出分区再移回来。
感谢zhong和狱卒的答复!
不过抛开系统不算,还有60G的数据资料,这样搞太麻烦了,呵呵
不如重装系统了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表