Betriebssysteme Praxis
Total Page:16
File Type:pdf, Size:1020Kb
?17%@3ABCD36"E%@"'<3F%.G,3H%8"'('#")'<3 H%8"'('#")3-%"$+$@;(3I#+.J+$J3 ABC9O3:+%.#+%.3#;"3%.#"2$%#(31>3>%8"'('#")'3 !"#$%"&''('#")" 6"'@$%7#%1.D3L08M)M0'&+3+N:O?M3*&30*?&3':3-0)8'0)8303+'08M0(M3P)?&+,+'&-230+3 R&??30+3'N&3&1'(03M0'030++:E)0'&M3R)'N303W:O(80?)8;3P)?&+,+'&-#3 *$+,%' L"(3L.1M8"J2"3N$"+'D3 ! X&()P,3'N&3)8'&;()',3:P3P)?&+,+'&-+# 453$!""6"$ ! Y:8)':(3P(&&3+D0E&308M3)8:M&+# -+.'/0"1$2345"$ ! Z&D0)(3+)-D?&3P)?&+,+'&-3D(:*?&-+# 6%789/:+#;9<36%789/=.>1$)9 CN&3P:??:R)8;3)+303D0(')0?3?)+'3:P3'N&3O+&M3P)?&+23'&(-+308M3O')?)')&+G3 MO23MP23P+EQ23&$P+EQ23-Q&$P+23M&*O;P+23MO-D&$P+23'O8&$P+2 1P+3'::?+3A+OEN30+31P+V-&'0MO-D308M31P+V)8P:B >:?)&8+0'@3<33A!"#"$#$!""B C:D)E3"!FG3H0'&)+,+'&-& "!F#"3I3"!F#J233"!F#K UO&??&G3N''DG66RRR#?D)#:(;6&8;6E&(')P)E0'):86'N&V?D)EVD(:;(0-6?D)EV"6&10-V"!"VM&'0)?&MV:*W&E')T&+ !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<." !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<.J ?17%@3ABCD36"E%@"'<3F%.G,3H%8"'('#")'<3 ?17%@3ABCD36"E%@"'<3F%.G,3H%8"'('#")'<3 H%8"'('#")3-%"$+$@;(3I#+.J+$J3 H%8"'('#")3-%"$+$@;(3I#+.J+$J3 ABC9A3K$"+#"37+$#%#%1.'3+.J3>%8"'('#")' ABC9P3K1.#$183)1G.#%.23+.J3G.)1G.#%.231>3>%8"'('#")'3 6"'@$%7#%1.D3L08M)M0'&+3+N:O?M3*&30*?&3':3E:8P);O(&3M)+Q3D0(')'):8+308M3'N&83 6"'@$%7#%1.D3L08M)M0'&+3+N:O?M3*&30*?&3':3E:8P);O(&3'N&3-:O8')8;3:P303 E(&0'&3P)?&+,+'&-+3:83-&M)03+OEN30+3N0(M3M)+Q+#3CN)+3)8E?OM&+3'N&3N08M?)8;3:P3 P)?&+,+'&-#3 +R0D3D0(')'):8+# L"(3L.1M8"J2"3N$"+'D3 L"(3L.1M8"J2"3N$"+'D3 ! Y08O0??,3-:O8'308M3O8-:O8'3P)?&+,+'&-+# ! S+&3T0():O+3-QP+3E:--08M+3':3+&'3OD3D0(')'):8+308M3E(&0'&3T0():O+3 P)?&+,+'&-+3+OEN30+G3&1'$23&1'J231P+23(&)+&(P+3TJ23TP0' ! L:8P);O(&3P)?&+,+'&-3-:O8')8;3:83*::'OD# CN&3P:??:R)8;3)+303D0(')0?3?)+'3:P3'N&3O+&M3P)?&+23'&(-+308M3O')?)')&+G3 ! L:8P);O(&3O+&(3-:O8'0*?&3(&-:T&0*?&3P)?&+,+'&-+# PM)+Q23-QP+23-Q+R0D CN&3P:??:R)8;3)+303D0(')0?3?)+'3:P3'N&3O+&M3P)?&+23'&(-+308M3O')?)')&+G3 6&'E6P+'0*236-&M)023-:O8'23O-:O8' UO&??&G3N''DG66RRR#?D)#:(;6&8;6E&(')P)E0'):86'N&V?D)EVD(:;(0-6?D)EV"6&10-V"!"VM&'0)?&MV:*W&E')T&+ UO&??&G3N''DG66RRR#?D)#:(;6&8;6E&(')P)E0'):86'N&V?D)EVD(:;(0-6?D)EV"6&10-V"!"VM&'0)?&MV:*W&E')T&+ !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<.$ !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<.F ?17%@3ABCD36"E%@"'<3F%.G,3H%8"'('#")'<3 H%8"'('#")3-%"$+$@;(3I#+.J+$J3 ABC9AD3*+$#%#%1.".3SOT ABC9Q3K$"+#"3+.J3@;+.2"3;+$J3+.J3'()&18%@38%.R'3 ! 4)8M:R+3T&(;)*'3Pa(3W&M&3A4)8M:R+B./0(')'):83 6"'@$%7#%1.D3L08M)M0'&+3+N:O?M3*&30*?&3':3E(&0'&308M3-080;&3N0(M308M3 &)8&83]0OPR&(Q+*OEN+'0*&83A 23 3&'E#B +,-*:?)E3?)8Q+3':303P)?! C: D: L"(3L.1M8"J2"3N$"+'D3 ! O80*Nb8;);3T:835'0'O+3D()-b(6?:;)+EN ! L(&0'&3?)8Q+# ! Z&)N&8P:?;&3Q0883R&EN+&?8 ! \M&8')P,3N0(M308M6:(3+:P'?)8Q+# ! ])8O13T&(R&8M&'3%&@&)EN8O8;&823M)&3+)EN30O+ ! L:D,)8;3T&(+O+3?)8Q)8;3P)?&+# ! C,D3M&(3/?0''&3A\H<235L5\B ! S+&3?)8Q+3':3+ODD:('3+,+'&-30M-)8)+'(0'):83'0+Q+# ! CN&3P:??:R)8;3)+303D0(')0?3?)+'3:P3'N&3O+&M3P)?&+23'&(-+308M3O')?)')&+G3 9&(b'&8O--&( ?8 ! /0(')'):8+8O--&( UO&??&G3N''DG66RRR#?D)#:(;6&8;6E&(')P)E0'):86'N&V?D)EVD(:;(0-6?D)EV"6&10-V"!"VM&'0)?&MV:*W&E')T&+ @O+0--&8+&'@&83Asda13c35L5\3M)+Q3023D0('#3"B !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<.[ !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<.` ABC9AD3*+$#%#%1.".3SAT ABC9AD3*+$#%#%1.".3SPT ! ])8O13AO8M308M&(&3%5B3O8'&('&)?&83>&+'D?0''&83)83 ! >&+'D?0''&8 /0(')'):8&8 ! sda23sdb23sdc23###G35L5\3O8M3-:M&(8&35^C^ ! '(0M)'):8&??G3T)&(3/0(')'):8&8 ! hda23hdb23hdc23###G3Q?0++)+EN&3\H< " ^8P08;23<8M&239(_=&G3)83/0(')'):8+'0*&??&3)-3Y%Z3 ! AY0+'&(3%::'3Z&E:(MB /0(')'):8&8 " %&@&)EN8O8;G37$%)U$"3*+$#%#%1.". ! "23$23J23FG3D()-b(&3/0(')'):8&8 ! P0??+3-&N(38_');G3&)8&3M&(3T)&(3/0(')'):8&83@O(3 ! [23K23`23###G3?:;)+EN&3/0(')'):8&83AM0883-O++3-)8M#3 "$M"%#"$#".3/0(')'):83-0EN&8 &)8&3M&(3D()-b(&83/0('#3&)8&3&(R&)'&('&3+&)8B ! M0()8G3812%'@;"3*+$#%#%1.". ! eO;()PP3a*&(39&(b'&M0'&)&8G ! sda33f3/dev/sda3 !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<.K !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<.d ABC9AD3*+$#%#%1.".3SCT ABC9AD3*+$#%#%1.".3SQT ! 9&(b'&M0'&)&83&(@&O;&83-:M&(8&3])8O1. ! ^(*&)'&83-)'39&(b'&M0'&)&8 X&(+):8&83M,80-)+ENG ! head /dev/sda1 esser@dissdevel:~$! ls -l /dev/sd* ;)*'3^8P08;3M&(3/0(')'):83sda130O+ brw-rw---- 1 root disk 8, 0 2. Jun 17:15 /dev/sda ! brw-rw---- 1 root disk 8, 1 2. Jun 17:15 /dev/sda1 dd if=/dev/sda1 of=/tmp/image.dat brw-rw---- 1 root disk 8, 2 2. Jun 17:15 /dev/sda2 &(@&O;'3"G".k:D)&3M&(3/0(')'):83sda13)83H0'&)2 brw-rw---- 1 root disk 8, 5 2. Jun 17:15 /dev/sda5 )Pc)8DO'3P)?&23:Pc:O'DO'3P)?& ! ! )830?'&83])8O1.X&(+):8&8G3;(:=&3Y&8;&83083 fdisk /dev/sda D0++&8M&839&(b'&M0'&)&83+'0')+EN3&(@&O;' *&0(*&)'&'3/0(')'):8+'0*&??&3M&(3>&+'D?0''&3sda ! mkfs.ext3 /dev/sda7 P:(-0')&('3/0(')'):83sda73-)'3<1'J.H0'&)+,+'&- !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<.g !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<."" ABC9AD3*+$#%#%1.".3SVT ABC9AD3*+$#%#%1.".3SWT ! C,D)+EN&3/0(')'):8)&(O8; ! /0(')'):8)&(&83O8'&(3])8O1 ! fdiskG35'08M0(M.C::? +M0$23&(R&)'&('&3/0(')'):8 +M0"2 ! 4)8M:R+3hC>5 +M0[23 +M0K23 cfdiskG3 ])8O135R0D ])8O13<1'F236 i;(0P)+EN&+j3C::? ! sda1G3"#3D()-b(&3/0(')'):8G34)8M:R+23hC>53 Ai]0OPR&(Q3LGjB ! sda2G3&(R&)'&('&3/0(')'):823&8'Nb?'3?:;)+EN& ! sda5G3"#3?:;)+EN&3/0(')'):8G3])8O1235R0D ! sda6G3$#3?:;)+EN&3/0(')'):8G3])8O123<1'F ! sfdiskG3Pa(35Q()D'.;&+'&O&('&+3/0(')'):8)&(&8 !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<."! !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<."$ ABC9AD3>J%'R3SAT ABC9AD3>J%'R3SPT *+$#%#%1.'8%'#"3+.X"%2". Z"G"37$%)U$"3*+$#%#%1.3"$X"G2". server:~# fdisk -l Command! (m for help): n Command action Disk! /dev/sda: 10.7 GB, 10694426624 bytes e extended 255 heads, 63 sectors/track, 1300 cylinders p primary partition (1-4) Units = cylinders of 16065 * 512 = 8225280 bytes p Sector size (logical/physical): 512 bytes / 512 bytes Partition number (1-4): 2 I/O size (minimum/optimal): 512 bytes / 512 bytes First cylinder (1241-1300, default 1241): Disk identifier: 0x000ce798 Using default value 1241 Last cylinder, +cylinders or +size{K,M,G} (1241-1300, default 1300): Device Boot Start End Blocks Id System Using default value 1300 /dev/sda1 * 1 1241 9965568 83 Linux /dev/sda2 1241 1301 475137 5 Extended Command (m for help): p /dev/sda5 1241 1301 475136 82 Linux swap / Solaris Disk /dev/sda: 10.7 GB, 10694426624 bytes 255 heads, 63 sectors/track, 1300 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes *8+##"37+$#%#%1.%"$". I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000ce798 server:~# fdisk /dev/sda Device Boot Start End Blocks Id System Command! (m for help): _ /dev/sda1 * 1 1241 9965568 83 Linux /dev/sda2 1241 1300 475658 83 Linux !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<."J !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<."[ >J%'R3SOTD3L1))+.J1Y&"$'%@;# ABC9AD3>J%'R3SCT Z"G"3"$M"%#"$#"3*+$#%#%1.3"$X"G2". ! p3I3@&);'3M)&3/0(')'):8+'0*&??&3AR)&3)83fdisk -l /dev/sdaB# Command! (m for help): n Command action ! n3I3?&;'3&)8&38&O&3/0(')'):8308l3P(0;'3/0(')'):8+',D23hO--&(3M&(3 e extended p primary partition (1-4) /0(')'):83O8M39(_=&30*# e Partition number (1-4): 2 ! t3I3m8M&('3M&83C,D3&)8&(3/0(')'):8#3h0EN3M&-3^OP(OP3M&+3k:--08M:+3 First cylinder (1241-1300, default 1241): Using default value 1241 &(N0?'&835)&3-)'3M&-3k:--08M:3L3&)8&3n*&(+)EN'3a*&(3M)&3fdisk3 Last cylinder, +cylinders or +size{K,M,G} (1241-1300, default 1300): *&Q088'&83/0(')'):8+',D&8# Using default value 1300 Command (m for help): p ! d3I3]_+EN'3&)8&3/0(')'):8# Disk /dev/sda: 10.7 GB, 10694426624 bytes ! w3I3+EN(&)*'3M)&3T:83\N8&83a*&(0(*&)'&'&3/0(')'):8+'0*&??H080EN3 255 heads, 63 sectors/track, 1300 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes *&&8M&'3+)EN3fdisk# Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes ! q3I3/(:;(0--3*&&8M&'3+)EN23:N8&3M)&3/0(')'):8+'0*&??&3@O3b8M&(8# Disk identifier: 0x000ce798 ! Device Boot Start End Blocks Id System m3I3Y&8a23)83M&-30??&3%&P&N?&30OP;&PaN('3+)8M238O(3)83<8;?)+EN3O8M3 /dev/sda1 * 1 1241 9965568 83 Linux 8:EN3&)83D00(3-&N(# /dev/sda2 1241 1300 475658 5 Extended !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<."F !"#"$#$!"" %&'()&*++,+'&-&./(01)+23453$!""6"$23708+.9&:(;3<=&( >:?)&3<."K ABC9AD3>J%'R3SVT ABC9AD3H1$)+#%"$".3SAT Z"G"3812%'@;"3*+$#%#%1.3"$X"G2".