None of these file systems are officially supported by the Fedora Project. (That means that you can use them, but you won't find a lot of official help from the Fedora Project if things go wrong.)
None of these file systems are officially supported by the Fedora Project. (That means that you can use them, but you won't find a lot of official help from the Fedora Project if things go wrong.)




[root@ftp ~]# mkfs.ext
mkfs.ext2 mkfs.ext3
[root@ftp ~]# mkfs.xfs /dev/sdb
meta-data=/dev/sdb isize=256 agcount=32, agsize=6100992 blks
= sectsz=512 attr=0
data = bsize=4096 blocks=195231744, imaxpct=25
= sunit=0 swidth=0 blks, unwritten=1
naming =version 2 bsize=4096
log =internal log bsize=4096 blocks=32768, version=1
= sectsz=512 sunit=0 blks
realtime =none extsz=4096 blocks=0, rtextents=0
Filesystem Size Used Avail Use% Mounted on
/dev/sdb 745G 1.1M 745G 1% /root/test


-T fs-type
Specify how the filesystem is going to be used, so that mke2fs can chose optimal filesystem parameters for that use. The supported filesystem types are:
news
one inode per 4kb block
largefile
one inode per megabyte
largefile4
one inode per 4 megabytes



[root@laplinux ~]# cd /tmp
[root@laplinux tmp]# dd if=/dev/zero of=xfs.dat bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 2.00808 s, 52.2 MB/s
[root@laplinux tmp]# mkfs.xfs xfs.dat
meta-data=xfs.dat isize=256 agcount=4, agsize=6400 blks
= sectsz=512 attr=2
data = bsize=4096 blocks=25600, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096
log =internal log bsize=4096 blocks=1200, version=2
= sectsz=512 sunit=0 blks, lazy-count=0
realtime =none extsz=4096 blocks=0, rtextents=0
[root@laplinux tmp]# mount xfs.dat xfs -o loop
[root@laplinux tmp]# df -i xfs
Filesystem Inodes IUsed IFree IUse% Mounted on
/tmp/xfs.dat 102400 3 102397 1% /tmp/xfs
[root@laplinux tmp]# xfs_growfs -m 5 xfs
meta-data=/dev/loop0 isize=256 agcount=4, agsize=6400 blks
= sectsz=512 attr=2
data = bsize=4096 blocks=25600, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096
log =internal bsize=4096 blocks=1200, version=2
= sectsz=512 sunit=0 blks, lazy-count=0
realtime =none extsz=4096 blocks=0, rtextents=0
inode max percent changed from 25 to 5
[root@laplinux tmp]# df -i xfs
Filesystem Inodes IUsed IFree IUse% Mounted on
/tmp/xfs.dat 20480 3 20477 1% /tmp/xfs

[root@ftp test]# df -i
/dev/sdc 195336592 3 195336589 1% /mnt/test
[root@ftp test]# df -h
/dev/sdc 4.6T 5.1M 4.6T 1% /mnt/test


Users browsing this forum: No registered users and 0 guests