分类:
2006-05-07 16:03:28
# dumpfs /dev/hd4
/dev/hd4:
magic 0x65872143 cpu type 0x0
file system type 0 file system version 1
file system size 32768 fragment size 4096
block size 4096 allocation group size 2048 (frags)
inodes/allocation grp 4096 compress 0
file system name / volume name root
log device 0xa0003 log serial number 0x4f
file system state 1 read only 0
last change Mon May 1 12:19:44 BEIDT 2006
。
。
。 |
# lsfs -q /
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/hd4 -- / jfs 32768 -- yes no
(lv size: 32768, fs size: 32768, frag size: 4096, nbpi: 2048, compress: no, bf: false, ag: 8) |
# ls -i now.txt
17 now.txt |
#date>now.txt
# istat now.txt
Inode 17 on device 42/4 File
Protection: rw-r--r--
Owner: 0(root) Group: 3(sys)
Link count: 1 Length 31 bytes
Last updated: Sat May 06 03:35:43 2006
Last modified: Sat May 06 03:35:43 2006
Last accessed: Sat May 06 03:36:05 2006 |
# crfs
Usage: crfs -v Vfs {-g Volumegroup | -d Device} -m Mountpoint
[-u Mountgroup] [-A {yes|no}] [-t {yes|no}] [-p {ro|rw}]
[-l Logpartitions] [-n nodename] [-a Attribute=Value] |
# mkfs
Usage: mkfs [-b BootProgram] [-i Inodes] [-l Label] [-o Options] [-p Prototype]
[-s Size] [-v VolumeLabel] [-V vfs] {Device|Filesystem} |
Add a Standard Journaled File System
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
*LOGICA LVOLUME name [] +
* MOUNT POINT []
Mount AUTOMATICALLY at system restart? no +
PERMISSIONS read/write +
Mount OPTIONS [] +
Start Disk Accounting? no +
Fragment Size (bytes) 4096 +
Number of bytes per inode 4096 +
Allocation Group Size (MBytes) 8 + |
/home: |
文件安装点 |
dev = /dev/hd1 |
逻辑设备,一般是逻辑卷 |
vol = "/home" |
卷标 |
mount = true |
安装方式见1 |
check = true |
是否在fsck默认情况下检查 |
free = false |
|
vfs = jfs |
Mount的类型,一个是jfs、jfs2、cdrfs、nfs |
log = /dev/hd8 |
此文件系统的日志设备, |
account = false |
是否记帐 |
type= |
|
size= |
大小(512byte为单位) |
nodename= |
节点名,如果为nfs则有此字段,否则没有. |
options |
mount 时的选项 |
%defaultvfs jfs nfs //默认的文件系统类型
[fs类型名 类型代码 安装助手路径 助手程序路径名]
cdrfs 5 none none
jfs 3 none /sbin/helpers/v3fshelper |
# lsfs
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/hd4 -- / jfs 32768 -- yes no
# lsfs -q
Name Nodename Mount Pt VFS Size Options Auto Accounting
/dev/hd4 -- / jfs 32768 -- yes no
(lv size: 32768, fs size: 32768, frag size: 4096, nbpi: 2048, compress: no, bf: false, ag: 8)
# lsfs -c // 使用冒号隔开,方便编程处理
#MountPoint:Device:Vfs:Nodename:Type:Size:Options:AutoMount:Acct
/:/dev/hd4:jfs::bootfs:32768:rw:yes:no |
df [-P] | [-I Mitv] [-k] [-s] [filesystem ...] [file ...] |
# df now.txt
Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/dev/lv01 262144 253704 4% 21 1% /home/ftpDir
如果指定file参数,会返回file所在文件系统的情况。 |
# ls -l now.txt //返回文件本身大小,以byte计算。
-rw-r--r-- 1 root sys 31 May 06 03:35 now.txt
# du now.txt //返回512byte为单位的块数。
1 now.txt |