Linux File System

本文详细介绍了文件系统的重点概念,包括格式化、文件系统类型如FAT32、NTFS、ext2/3/4及HFS,以及如何创建和管理文件系统。探讨了系统日志的作用,特别是ext3/4的日志功能,并提供了实用命令,如mke2fs、dumpe2fs、e2label和fsck,用于文件系统的创建、检查和修复。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


1. file system focus on files and data management.
2. create file system usually called formatting.
3. A device without file system called raw device
4. fat32,NTFS,ext2/3/4,HFS

        information of a file system:  log, partition size, single file max size, performance.

5. create file system
        mke2fs -t type /dev/sdb3
                   -b blocksize 4k/size
                   -c check bad 
                   -L label specify volumn
                   -j  build log file
        mkfs.[ext3|ext4] /dev/sdb3 without options.
6. dumpe2fs /dev/sdb3 get the information of file system
7. system log. Journal ext3/4, except ext2
            statiable, 2 step when write disk
        7.1. write the opertation to journal
        7.2. do operation
        7.3. delete this operation journal when success.
8. e2lable build a new label of a partition
        e2label /dev/sdb1 lable_name
9. fsck check and retrieve the file system, must be in umount status.
    fsck /dev/sdb1
    the retrieved file will be put in /lost+found.

转载于:https://my.oschina.net/incarnation/blog/94726

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值