Professional Documents
Culture Documents
LPI 101 Ch12 File Systems
LPI 101 Ch12 File Systems
File Systems
|
j
V ectives
|
j
File System Structure
ÿ )*#$ !3!"$&
& &' &# $"!%$! %# % (&)! &+) &
+**% # *#$ %" /%"! !3&+!# "+!##!# % !$/"0
+!+$&#
ÿ 4&)! ##$!*# !3&+! *#$ -! *$ &$ $"!! #$"+$"!
-!("! %++!##&
5
ÿ � ë +% -! *$! $ %
ÿ ,&"!+$" & $&# +%#! &# "!(!""! $ %# u
ë
ÿ 4&)! !"*&##& #! $ +$") #!" %++!## $ $! ##$!*#
|
j
File System Structure
ÿ 4&)! ##$!* !(&!# `
% &((!"!$
�# +% -! ("*%$$! /&$ &((!"!$ (&)! ##$!*# /!3!"
%)) (&)! ##$!*# %3! %
ë $%$ +$%&# �
&("*%$&
ÿ ! #!"-)+0 +$%&# &("*%$& %-$ $! (&)! ##$!*
&+) &
$! )+%$&# ( &$# & ! $%-)!# ("!! -)+0 )&#$ %
"$ &"!+$"
ÿ
!!"%) &( $! #!"-)+0 -!+*!#
ë $! (&)! ##$!*
/&)) -!+*!
!"!("! !'$"% +&!# ( $!
#!"-)+0 %"! #+%$$!"! & "! !$!"*&! )+%$& %+"## $!
(&)! ##$!* &' $&# %$*%$&+%))
|
j
File System Structure
ÿ ë !" ë6 %)) &("*%$& %-$ % (&)! 7*!$%8 %$%9 &#
#$"! & % &$# & ! !'+!$ $! (&)!:# %*!R &+) &
5
!
/!"#& % %##+&%$!
"
!"*&##&#
&*! #$%*#5 *$&*! 7* &(&+%$& $&*!9 +$&*! 7& !
+%
! $&*!9 %$&*! 7%++!## $&*!9
&0 7%" 9 +$
&$!"# $ &"!+$ % & &"!+$ %$% -)+0# 7/!"! $!
+$!$# %"! #$"! 9
|
j
File System Structure
ÿ |!+&(&+ (&)! ##$!*# *% &+) ! $!" &("*%$& #+ %#
$! !'$ %$$"&-$!# 7#!! $! )#%$$!" % +%$$!" *% %
!# ("
!$%&)#9 " %++!## +$") )&#$# 7 #9 % !'$! ! %$$"&-$!#
7; #9
|
j
File System Types
ÿ (&)! ##$!* $! !(&!# / $! � &# #$"+$"!
&' #"$# *% &((!"!$ (&)! ##$!* $!# 5 4
<4 4| &# %)# #"$! -$ &$ &# #$%-)! (" "!% 8)
%$ $&# $&*! !'$(# !'$(# =!&#!"4| >4| 64| ?
|
j
ing File System
ÿ ! *0(# +**% &# #! $ +"!%$! (&)! ##$!*# % � "
� %"$&$&
ÿ .! +"!%$&
% !/ (&)! ##$!* /&)) !! $ #!+&( $!
%# /!)) %# #*! $!" %"%*!$!"#
*0(# +"!%$!# $! #!"-)+0 % & ! )&#$ @!! & *& $%$
$! & ! )&#$ &# & #&A! *%
(&)! ##$!* $!#
ÿ ;'%*)!#5
B *0(# 8$ !'$ 2 !32 %C D
B *0(# 8$ *# # 2 !32(
|
j
ing File System
|
j
ing File System
ÿ Vptions for mkfs Command:
ÕG G Set the volume label for the files system (mke2fs)
ÕG G Set the 11-character volume label for the file system
(mke2fs)
Õ erbose mode
|
j
unting File System
ÿ &' (&)! ##$!*# *#$ -! *$! & " !" $ %++!##
$!* $&
+% ++" 3&% $! +**% )&! " -
&+) &
% !$" & 2!$+2(#$%-
|
j
rmm nd Line unting
ÿ **% ("*%$5
*$ F$ G(#$!H F G$&#H G !3&+!H G*$I&$H
ÿ ;'%*)!#5
B *$ 8$ !'$ 2 !32( 2*$2()
B *$ 8$ &#JJ 2 !32+ "* 2*$2+ "*
B *$ 8$ (# 52#"2)+%)2#$((
2#"2)+%)2#$((
7 =!(!" $ *$ *% %
!# (" *"! !$%&)# 9
|
j
unting with å å
ÿ ! 2!$+2(#$%- (&)! &# "!% %$ -$ $&*! (&)! ##$!*# )&#$!
/&$& $&# (&)! %"! )% ! - !(%)$ ;%+ )&! %# $! ("*5
G !3&+!H G*$I&$H G(#$!H G$&H G *H G
+!+0 !"H
|
j
unting File System
ÿ 2 R
R
º
|
j
ënmunting File System
ÿ *$ % (&)! ##$!* #&*) #! $! *$ +**%
& ("*%$5
*$ Gu
ëH
" 5
*$ Gu
H
ÿ
B *$ 2*$2+ "*
|
j
Two Way To Fix ³r
´ Error
|
j
ënmunting File System
ÿ ! !L!+$ +**% /&)) %$$!*$ $ *$ $! (&)! ##$!*
% $! *$ $! ,8= $"%
ÿ ! #"! $ *$ % () "&3! "&" $ "!*3%) ( $!
() � |!"&# (&)! ##$!* !"""# % )## ( %$% $
$! � +% ++" &( &$ &# $ *$!
ÿ 4&)! ##$!*# *#$ -! *$! !$ (&"#$
|
j
unting icrst (S-DVS) P rtitins
|
j
rhecing File Systems
ÿ /!" (%&)"!# (%&)&
%" /%"! % !"%$" !""" +%
%*%
! $! (&)! ##$!*
!(#+0 !+0 % &' !'$ " !'$ (&)! ##$!*
$!(# L#$# (&)! ##$!* %"%*!$!"# #+ %# $! *%'&*%) *$
+$ *%'&** $&*! -!$/!! +!+0# % $! *-!" (
-)+0# "!#!"3! (" "$
$ +% %)# % % L"%) $ % !'&#$&
!'$ %"$&$& $
*%0! &$ % !'$ %"$&$&5
$!(# 8L 2 !32 %
!-
(# (%&") %
!"# (&)! ##$!* !-
!"
!'$! ! &$" (" $! #!+ !'$! ! (&)! ##$!*
*!(# |/# &("*%$& %-$ % !'$ " !'$ (&)! ##$!* M
*#$) ("* $! #!"-)+0
|
j
unting Remv le edi in
|
j
anaging File Systems
ÿ X
|
j
Xernel File r che
ÿ ! &' 0!"!) +%+!# &$# -)+0 %$% & *!*" &#
&*"3!# !"("*%+! - "! +&
%$% %++!##!# $ � %#
$! 0!"!) /&)) ("!1!$) (& $! %$% &$ /%$# & $! +%+!
& *!*" ! #+ +**% &# #! $ *%%)) ()#
$! +%+! $ �
ÿ 3!" ) *!$ ( +)#&
/ &' ##$!* /%# $
&##! $! +**% #5
O #+P #+ P %)$
ÿ ! !/!" L"%)&
(&)! ##$!*# #+ %# !'$(# *%&$%&
(&)! ##$!* &$!
"&$ `
u
`
>"%)&
(&)! ##$!*# "!+3!" %$*%$&+%)) *$
|
j
2he G Directry
ÿ &# &"!+$"
& % +""$! (&)!
##$!*
ÿ ! (&)! ##$!* +!+0 "
"%*# #+ %# !(#+0 )
!$"&!#
&$ $! )#$ % ( &"!+$" #$ (&)!# #$"! &
)#$Q( &"!+$" /&$ $! u
u & !$&( $! $!# ( "!+3!"! (&)!# #! $! (&)!
*"! " )!## +**%
|
j
rrrupt File Systems
ÿ ( % ##$!* +"%#!# " &# #$ / &*"!") /&)) !!
$ "!%&" $! (&)! ##$!* (#+0 % !(#+0 &# -!#$ #&$! ("
"!%&"&
!'$ %"$&$&# =!%&"! (&)! ##$!*# %"! * &(&!
$ "!$" !3!"$&
$ % +#&#$!$ #$%$!
ÿ |*! %*%
! (&)!# +% -! +*)!$!) )#$ % $! %$%
"!+3!"%-)! =!+3!"%-)! (&)!# " %"$&%) (&)!# /&)) -!
)%+! & $! )#$Q( &"!+$"
|
j
tilities
ÿ
5 $ (& $ / *+ ("!! � #%+! &# %3%&)%-)!
% u
u #! ( +**%
$ 80 =!"$# $! #&A! & @ 7 !(%)$9
8* =!"$# $! #&A! &
8$ |!)!+$# % #!+&(&+ (&)! ##$!* $!
8% |/# %)) *$ &$#
|
j
tilities
ÿ r 5ë#! +**% $ )&#$ ) &"!+$" #&A!
$ 8# |**%"&A! (" %*! (&)!#
8+ *$! %
"% $$%)
8 *% "!% %-)! ("*%$
8% ,!$%&) %)) (&)!#
|
j
tilities
ÿ
! 1$% +**% +!+0# % #!":# � #%
! % )&*&$
|*! &' % *&&#$"%$"# +#! $ $ !%-)! 1$%
+!+0&
P &$ &# uë ` % - $!
##$!* % *&&#$"%$"
|
j
ëser Dis ut
ÿ ! & !% -!& 1$% &# $ *%0! #!"# #$% /&$& $!&"
uëu ! 1$% ##$!* &' %))/# %
% *&&#$"%$" $ #!$ $! *-!" ( & !# % #!" " %
" (
#!"# *% ##!## % $! *-!" ( � -)+0# $%$ *% -!
%))+%$! $ % #!" " %
" ( #!"#
ÿ $% %"! $ %)/%# %""&%$! (" ! &+%$! #!"3!"# %
#&
)! #!" /"0#$%$&# $% %"! !#!+&%)) #!() ("
*)$&8#!" *%+&!# #+ %# | #$)! #!"3!"#
#!"3!"#?
|
j
ëser Dis ut
ÿ $% %3! $/ )!3!)#5 R#($R % R%" R 5
i ! )&*&$ -$ ) (" % +!"$%& $&*!P
(%&)"! $ "! +! $! %))+%$! #%+! -!("! $! $&*!"
!'&"!# /&)) $"&
|
j
etting Reprt n ëser's ut Status
|
j
2urning n ut t Bt 2ime
ÿ " +**!$ $!#! )&!# & 2!$+2"+ 2"+##&&$ 5
&( S 8' 2#"2#-&21$%+!+0 TP $!
!+ R!+0&
1$% &# *% $%0! #*! $&*!U
2#"2#-&21$%+!+0 8%3
!+ V,!U
(&
&( S 8' 2#"2#-&21$% TP $!
!+ V"&
1$%U
2#"2#-&21$% 8%3
(&
|
j
2urning n ut t Bt 2ime
ÿ R#"1$%R $ $! ("$ (&!) +$%&&
$! /"
7*% (#$%- (" !$%&)#95
2 !32 % 2 !'$ !(%)$#
2 !32 % 2#" !'$ !(%)$#
ÿ (
" 1$% #"$ % (&)! ##$!* &# "!1&"! "!)%+!
R#"1$%R /&$ R
"1$%R
|
j
int ining ut
ÿ ! ##$!* % *&&#$"%$" /&)) !! $ +"!%$! $/ 1$%
"!+" (&)!# 1$%#!" % 1$%
" & $! ë
( $! (&)! ##$!* ! #) -! /! - "$
% !"*&##&# #!$ $ "!% 8/"&$! (" "$ )
|
j
int ining ut
ÿ # "$
$ $! %"$&$& /!"! 1$% #) -! !%-)!
ë#! $!#! +**% #5
ÿ 1$% 1$%(( 5 $" $! (&)! ##$!* 1$% % ((
ÿ ! 1$% F G#!"%*!H 5 &# $! 1$% ! &$" ! " *"!
#!"# "
"# *% -! #!+&(&! $! +**% )&!
) "$ *% ! &$ 1$%
|
j
2he å File System
ÿ ! 2"+ (&)! ##$!* &# %
u 7 %+$%) �
#%+! &# #! 9 $%$
u
`
`
u
ÿ ! (&)!# % &"!+$"&!# !" 2"+ +%
! 3!" $&*! %# $!
0!"!) "3& !# ##$!* #$%$&#$&+# % "+!## &("*%$&
**% # #+ %# # $ *!#
? #! 2"+ $ -$%& $!&"
&("*%$&
|
j
Summary
ÿ !"#$% $! &' (&)! ##$!* ++!$#
ÿ ,!(&! % & !$&( &((!"!$ (&)! ##$!* #$"+$"!# % $!#
ÿ ,!#+"&-! % *$ (&)! ##$!*# &+) &
| .& /#
%"$&$&#
ÿ ,!(&! % *%%
! � 1$%#
ÿ "!%$! &((!"!$ (&)! ##$!*#
ÿ ,!#+"&-! $! 2"+ (&)! ##$!*
|
j
® Free-R dius
® Vpenld p
® m il-ld p
® S m
® Purept
® Bind h y DJB
|
j