linux系統(tǒng)中的文件類型與區(qū)分方法 redhat7默認(rèn)的文件系統(tǒng)類型?
redhat7默認(rèn)的文件系統(tǒng)類型?redhat即紅帽,基于條件linux的商業(yè)授權(quán)許可操作系統(tǒng),默認(rèn)文件類型為EXT4。Redhat Linux默認(rèn)的文件系統(tǒng)是什么格式?現(xiàn)在Redhat Linux設(shè)
redhat7默認(rèn)的文件系統(tǒng)類型?
redhat即紅帽,基于條件linux的商業(yè)授權(quán)許可操作系統(tǒng),默認(rèn)文件類型為EXT4。
Redhat Linux默認(rèn)的文件系統(tǒng)是什么格式?
現(xiàn)在Redhat Linux設(shè)置成的文件系統(tǒng)格式是ext4??梢圆粚?shí)際追加多種方法網(wǎng)站查詢文件系統(tǒng)類型
:~$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
文件系統(tǒng)類型容量已用可用已用%掛載點(diǎn)
/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可完成任務(wù)命令列表.
(slaves)p
Model:VMware,VMware VirtualS(scsi)
磁盤/dev/sda:21.5GB
Sectorsize(logical/physical):512B/512B
系統(tǒng)分區(qū)表:msdos
數(shù)字結(jié)束:End大小類型文件系統(tǒng)標(biāo)志
11049kB20.5GB20.5GBprimaryext4正常啟動(dòng)
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