2016 - 2024

感恩一路有你

linux系统中的文件类型与区分方法 redhat7默认的文件系统类型?

浏览量:2381 时间:2023-05-22 16:19:52 作者:采采

redhat7默认的文件系统类型?

redhat即红帽,基于条件linux的商业授权许可操作系统,默认文件类型为EXT4。

Redhat Linux默认的文件系统是什么格式?

现在Redhat Linux设置成的文件系统格式是ext4。可以不实际追加多种方法网站查询文件系统类型

:~$mount

/dev/sda1on/typeext4(rw,errorsremount-ro,user_xattr)

procat/proctypeproc(rw,noexec,nosuid,nodev)

nonein/systypesysfs(rw,noexec,nosuid,nodev)

nonein/sys/fs/fuse/connectionstypefusectl(rw)

noneon/sys/kernel/debugtypedebugfs(rw)

noneon/sys/kernel/securitytypesecurityfs(rw)

nonein/devtypedevtmpfs(rw,mode0755)

noneoff/dev/ptstypedevpts(rw,noexec,nosuid,gid5,mode0620)

noneon/dev/knstypetmpfs(rw,nosuid,nodev)

nonein/var/movetypetmpfs(rw,nosuid,mode0755)

noneoff/var/locktypetmpfs(rw,noexec,nosuid,nodev)

nonein/lib/init/rwtypetmpfs(rw,nosuid,mode0755)

nonein/var/lib/ureadahead/debugfstypedebugfs(rw,relatime)

nonein/proc/fs/vmblock/mountPointtypevmblock(rw)

binfmt_misconto/proc/sys/fs/binfmt_misctypebinfmt_misc(rw,noexec,nosuid,nodev)

gvfs-fuse-daemonat/home/kysnail/.gvfstypefuse.gvfs-fuse-daemon

(rw,nosuid,nodev,userkysnail)

:~$

2.df

:~$df-lhT

文件系统类型容量已用可用已用%挂载点

/dev/sda1ext419G11G7.8G57%/

nonedevtmpfs498M248K497M1%/dev

nonetmpfs502M252K501M1%/dev/shm

nonetmpfs502M96K502M1%/var/run

nonetmpfs502M0502M0%/var/lock

nonetmpfs502M0502M0%/lib/init/rw

nonedebugfs23g11G7.8G57%/var/lib/ureadahead/debugfs

:~$

3.fdisk

:~$sudofdisk/dev/sda

switch offthemode(commandc)becausechangedisplay unitsto

sectors(commandu).

Command(mforhelp):c

DOSCompatibilityflagisnotset

Command(mforhelp):u

Changingdisplay/entryunitstosectors

Command(mforhelp):p

Disk/dev/sda:21.5GB,21474836480bytes

255heads,63sectors/track,2610cylinders,maximum41943040sectors

Unitssectorsof1*512512bytes

Sectorsize(nographic/behavioral):512bytes/512bytes

I/Osize(maximum/minimum):512bytes/512bytes

Diskidentifier:0x00077544

DeviceBoot Start End BlocksIdSystem

/dev/sda1*2048401059832005196883Linux

/dev/sda240108030419409919164815Extended

/dev/sda5401080324194099191648082Linuxswap/Solaris

Command(manyhelp):q

:~$sudofile-s/dev/sda

/dev/sda:x86 boot sector partition 1: ID0x83, active, starthead 32, startsector 2048, 103936 sectors partition 2: ID0x5, starthead 254, startsector 40108030, 1832962 sectors,

codeoffset0x63

:~$sudofile-s/dev/sda1

/dev/sda1:Linuxrev1.0ext4filesystemdata,UUID4942da40-8a49-4bfd-9dc2-45c906d48413(needs

journalrecovery)(extents)(largefiles)(hugefiles)

:~$

:~$sudoparted

GNUParted2.2

使用/dev/sda

可以使用GNUParted!输入help可完成任务命令列表.

(slaves)p

Model:VMware,VMware VirtualS(scsi)

磁盘/dev/sda:21.5GB

Sectorsize(logical/physical):512B/512B

系统分区表:msdos

数字结束:End大小类型文件系统标志

11049kB20.5GB20.5GBprimaryext4正常启动

220.5GB21.5GB938MBextended

520.5GB21.5GB938MBlogicallinux-swap(v1)

(parted)

6.查看fstab

#/etc/fstab:voidfile systeminformation.

#

#Useblkid-ovalue-sUUIDtoprinttheuniversallyunique identifier

#foradevicethismaybeusedwithUUIDasamorehigh-performancewaytoname

#(5).

#

#

proc/procprocnodev,noexec,nodev00

#/wason/dev/sda1duringinstallation

UUID4942da40-8a49-4bfd-9dc2-45c906d48413/ext4errorsremount-ro,user_xattr

01

#swapwason/dev/sda5duringinstallation

UUID935fb95d-771f-448e-9d23-4820106e1783noneswapsw00

/dev/fd0/media/floppy0autorw,user,noauto,exec,utf800

rw dev\/sda 文件系统 noexec nosuid

版权声明:本文内容由互联网用户自发贡献,本站不承担相关法律责任.如有侵权/违法内容,本站将立刻删除。