Browse Source

Prima versione rivista e corretta.

master 1.0.0
Emiliano Vavassori 3 years ago
commit
58b8605abb
  1. 1
      .gitignore
  2. 21
      Makefile
  3. 10
      README.md
  4. BIN
      immagini/applepartition.png
  5. BIN
      immagini/hdd.jpg
  6. BIN
      immagini/hddchiuso.jpg
  7. BIN
      immagini/linux_fhs.pdf
  8. 1534
      immagini/linux_fhs.svg
  9. BIN
      immagini/logo.pdf
  10. BIN
      immagini/lvm_components.pdf
  11. BIN
      immagini/lvm_components.png
  12. 1412
      immagini/lvm_components.svg
  13. BIN
      immagini/lvmschema.jpg
  14. BIN
      immagini/partizmanuale.jpg
  15. BIN
      immagini/realpartitions.png
  16. BIN
      immagini/schemahdd.pdf
  17. 988
      immagini/schemahdd.svg
  18. BIN
      immagini/usbkeys.jpg
  19. 788
      slides.tex

1
.gitignore

@ -0,0 +1 @@
slides.pdf

21
Makefile

@ -0,0 +1,21 @@
obj = slides.pdf
default: $(obj)
run: $(obj)
optirun impressive $(obj)
clean:
rm -f *.log *.aux *.nav *.toc *.snm *.out
distclean: clean
rm -f $(obj)
%.pdf: %.aux
xelatex --shell-escape --interaction=nonstopmode $(*F)
%.aux: %.tex
xelatex --shell-escape --interaction=nonstopmode $(*F)
.PHONY: clean distclean default run

10
README.md

@ -0,0 +1,10 @@
# Slides dell'evento «Partizionamento for dummies» #
## 27 giugno 2018 c/o FabLab Bergamo, via Gavazzeni 3, Bergamo ##
Qui sono riportati i sorgenti delle slides utilizzate come supporto alla
spiegazione dell'evento «Partizionamento *for dummies*», tenutosi presso
[FabLab Bergamo](https://www.fablabbergamo.it/), in via M. Gavazzeni n.3 a
Bergamo, durante la riunione settimanale del [Bergamo Linux Users Group,
BgLUG](https://bglug.it/).
Riferirsi ai [rilasci](releases) per le slide in formato PDF.

BIN
immagini/applepartition.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 KiB

BIN
immagini/hdd.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
immagini/hddchiuso.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
immagini/linux_fhs.pdf

Binary file not shown.

1534
immagini/linux_fhs.svg

File diff suppressed because it is too large

After

Width:  |  Height:  |  Size: 74 KiB

BIN
immagini/logo.pdf

Binary file not shown.

BIN
immagini/lvm_components.pdf

Binary file not shown.

BIN
immagini/lvm_components.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

1412
immagini/lvm_components.svg

File diff suppressed because it is too large

After

Width:  |  Height:  |  Size: 103 KiB

BIN
immagini/lvmschema.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
immagini/partizmanuale.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
immagini/realpartitions.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
immagini/schemahdd.pdf

Binary file not shown.

988
immagini/schemahdd.svg

@ -0,0 +1,988 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="87cm"
height="31cm"
viewBox="-216 -436 1737 615"
id="svg4527"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="schemahdd.svg">
<metadata
id="metadata4856">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="3840"
inkscape:window-height="2024"
id="namedview4854"
showgrid="false"
inkscape:zoom="0.89208174"
inkscape:cx="1541.3386"
inkscape:cy="549.2126"
inkscape:window-x="0"
inkscape:window-y="62"
inkscape:window-maximized="1"
inkscape:current-layer="Background" />
<defs
id="defs4529" />
<g
id="Background">
<g
id="g4532">
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1225.87 -218.19 C 1225.89,-215.352 1417.16,-207.364 1498.4,-208.46 C 1507.6,-208.584 1524.13,-224.336 1516.05,-224.064 C 1434.8,-221.314 1225.85,-221.03 1225.87,-218.19z"
id="path4534" />
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1223.68 -217.21 C 1369.54,-207.836 1501.36,-208.476 1500.48,-208.352 C 1499.61,-208.226 1506.42,-196.586 1497.42,-197.711 C 1438.29,-199.901 1272.85,-208.162 1221.62,-212.518 C 1221.73,-217.102 1220.68,-217.402 1223.68,-217.21z"
id="path4536" />
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1500.92 -207.21 C 1500.23,-206.484 1500.79,-200.46 1500.79,-198.211 C 1500.79,-195.961 1519,-213.554 1519.12,-214.68 C 1519.25,-215.804 1518.44,-221.476 1518.51,-222.056 C 1515.89,-217.932 1503.17,-209.584 1500.92,-207.21z"
id="path4538" />
<path
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1496.27 -219.612 C 1511.63,-219.384 1499.94,-212.736 1487.33,-213.422 C 1474.73,-214.11 1480.91,-219.842 1496.27,-219.612z"
id="path4540" />
</g>
<ellipse
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 8; stroke: #000000"
cx="1114.25"
cy="-236.948"
rx="296.886"
ry="26.5224"
id="ellipse4542" />
<g
id="g4544">
<ellipse
style="fill: #f8f8f8; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
cx="259"
cy="-121"
rx="299"
ry="299"
id="ellipse4546" />
<text
font-size="12.8"
style="fill: #000000; fill-opacity: 1; stroke: none;text-anchor:middle;font-family:sans-serif;font-style:normal;font-weight:normal"
x="259"
y="-117.1"
id="text4548">
<tspan
x="259"
y="-117.1"
id="tspan4550" />
</text>
<ellipse
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke-dasharray: 20; stroke: #c0c0c0"
cx="259"
cy="-121"
rx="179"
ry="179"
id="ellipse4552" />
<text
font-size="12.8"
style="fill: #000000; fill-opacity: 1; stroke: none;text-anchor:middle;font-family:sans-serif;font-style:normal;font-weight:normal"
x="259"
y="-117.1"
id="text4554">
<tspan
x="259"
y="-117.1"
id="tspan4556" />
</text>
<ellipse
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
cx="259"
cy="-121"
rx="99"
ry="99"
id="ellipse4558" />
<text
font-size="12.8"
style="fill: #000000; fill-opacity: 1; stroke: none;text-anchor:middle;font-family:sans-serif;font-style:normal;font-weight:normal"
x="259"
y="-117.1"
id="text4560">
<tspan
x="259"
y="-117.1"
id="tspan4562" />
</text>
<ellipse
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke-dasharray: 20; stroke: #c0c0c0"
cx="259"
cy="-120"
rx="139"
ry="140"
id="ellipse4564" />
<text
font-size="12.8"
style="fill: #000000; fill-opacity: 1; stroke: none;text-anchor:middle;font-family:sans-serif;font-style:normal;font-weight:normal"
x="259"
y="-116.1"
id="text4566">
<tspan
x="259"
y="-116.1"
id="tspan4568" />
</text>
<ellipse
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke-dasharray: 20; stroke: #c0c0c0"
cx="258"
cy="-122"
rx="258"
ry="258"
id="ellipse4570" />
<text
font-size="12.8"
style="fill: #000000; fill-opacity: 1; stroke: none;text-anchor:middle;font-family:sans-serif;font-style:normal;font-weight:normal"
x="258"
y="-118.1"
id="text4572">
<tspan
x="258"
y="-118.1"
id="tspan4574" />
</text>
<ellipse
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke-dasharray: 20; stroke: #c0c0c0"
cx="259"
cy="-121"
rx="219"
ry="219"
id="ellipse4576" />
<text
font-size="12.8"
style="fill: #000000; fill-opacity: 1; stroke: none;text-anchor:middle;font-family:sans-serif;font-style:normal;font-weight:normal"
x="259"
y="-117.1"
id="text4578">
<tspan
x="259"
y="-117.1"
id="tspan4580" />
</text>
</g>
<g
id="g4582">
<path
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
d="M 179.214,-273.61 A 60.1658,60.1658 0 0 0 148.46,-316.839"
id="path4584" />
<polygon
style="fill: #000000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
points="179.997,-266.236 174.984,-276.229 179.987,-273.736 184.984,-276.243 "
id="polygon4586" />
<polygon
style="fill: #000000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
points="141.75,-319.996 152.839,-321.426 148.832,-317.527 149.547,-311.983 "
id="polygon4588" />
</g>
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 4; stroke: #000000"
fill-rule="evenodd"
d="M 220 -256 C 232,-252 -36,-108 -84,-84 C -132,-60 -124,-60 -144,-100 C -164,-140 -176,-136 -132,-152 C -88,-168 208,-260 220,-256z"
id="path4590" />
<path
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke-dasharray: 4; stroke: #000000"
d="M 148 -356 C 160,-352 -44,-116 -80,-88 C -116,-60 -104,-56 -136,-96 C -168,-136 -168,-124 -136,-148 C -104,-172 136,-360 148,-356"
id="path4592" />
<g
id="g4594">
<ellipse
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 4; stroke: #000000"
cx="-100.983"
cy="-121.431"
rx="19.0169"
ry="18.569"
id="ellipse4596" />
<text
font-size="12.8"
style="fill: #000000; fill-opacity: 1; stroke: none;text-anchor:middle;font-family:sans-serif;font-style:normal;font-weight:normal"
x="-100.983"
y="-117.531"
id="text4598">
<tspan
x="-100.983"
y="-117.531"
id="tspan4600" />
</text>
</g>
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="595.928"
y1="-259.844"
x2="697.882"
y2="-259.966"
id="line4602" />
<g
id="g4604">
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="596"
y1="-261"
x2="554.144"
y2="-209.552"
id="line4606" />
<polygon
style="fill: #ff0000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
fill-rule="evenodd"
points="549.411,-203.735 551.843,-214.647 554.144,-209.552 559.601,-208.336 "
id="polygon4608" />
</g>
<text
font-size="27.0933"
style="font-style:normal;font-weight:normal;font-size:27.09329987px;font-family:sans-serif;text-anchor:start;fill:#ff0000;fill-opacity:1;stroke:none"
x="601.83197"
y="-270.508"
id="text4610">
<tspan
x="601.83197"
y="-270.508"
id="tspan4612">piatti</tspan>
</text>
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="-214.564"
y1="-266.238"
x2="-24.2638"
y2="-266.056"
id="line4614" />
<g
id="g4616">
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="-24.8158"
y1="-265.766"
x2="37.699"
y2="-216.647"
id="line4618" />
<polygon
style="fill: #ff0000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
fill-rule="evenodd"
points="43.5963,-212.013 32.6441,-214.26 37.699,-216.647 38.8223,-222.123 "
id="polygon4620" />
</g>
<text
font-size="27.0933"
style="font-style:normal;font-weight:normal;font-size:27.09329987px;font-family:sans-serif;text-anchor:start;fill:#ff0000;fill-opacity:1;stroke:none;text-align:start;writing-mode:lr;line-height:125%;"
x="-209.328"
y="-273.88599"
id="text4622"
sodipodi:linespacing="125%">
<tspan
sodipodi:role="line"
id="tspan4880">braccio</tspan>
</text>
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="488.696"
y1="-368.092"
x2="568"
y2="-368"
id="line4626" />
<g
id="g4628">
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="488.43"
y1="-368.046"
x2="443.509"
y2="-311.087"
id="line4630" />
<polygon
style="fill: #ff0000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
fill-rule="evenodd"
points="438.865,-305.198 441.131,-316.146 443.509,-311.087 448.983,-309.953 "
id="polygon4632" />
</g>
<text
font-size="27.0933"
style="fill: #ff0000; fill-opacity: 1; stroke: none;text-anchor:start;font-family:sans-serif;font-style:normal;font-weight:normal"
x="495.586"
y="-375.202"
id="text4634"
sodipodi:linespacing="125%">
<tspan
sodipodi:role="line"
id="tspan4858">tracce</tspan>
</text>
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="592.248"
y1="27.9838"
x2="688"
y2="28"
id="line4638" />
<g
id="g4640">
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="591.268"
y1="28.0224"
x2="471.763"
y2="35.5092"
id="line4642" />
<polygon
style="fill: #ff0000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
fill-rule="evenodd"
points="464.278,35.9782 473.945,30.3627 471.763,35.5092 474.571,40.3431 "
id="polygon4644" />
</g>
<text
font-size="27.0933"
style="font-style:normal;font-weight:normal;font-size:27.09329987px;font-family:sans-serif;text-anchor:start;fill:#ff0000;fill-opacity:1;stroke:none"
x="597.44"
y="21.263"
id="text4646">
<tspan
x="597.44"
y="21.263"
id="tspan4648">settori</tspan>
</text>
<g
id="g4650">
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="489.144"
y1="-368.986"
x2="441.343"
y2="-258.401"
id="line4652" />
<polygon
style="fill: #ff0000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
fill-rule="evenodd"
points="438.367,-251.517 437.745,-262.68 441.343,-258.401 446.925,-258.712 "
id="polygon4654" />
</g>
<g
id="g4656">
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="593.872"
y1="28.1772"
x2="493.62"
y2="5.29783"
id="line4658" />
<polygon
style="fill: #ff0000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
fill-rule="evenodd"
points="486.308,3.6291 497.17,0.979413 493.62,5.29783 494.945,10.7287 "
id="polygon4660" />
</g>
<g
id="g4662">
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="591.518"
y1="27.2724"
x2="508.09"
y2="-27.2545"
id="line4664" />
<polygon
style="fill: #ff0000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
fill-rule="evenodd"
points="501.812,-31.3577 512.918,-30.0721 508.09,-27.2545 507.447,-21.7014 "
id="polygon4666" />
</g>
<g
id="g4668">
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="258.216"
y1="-124.162"
x2="258.216"
y2="-114.162"
id="line4670" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="253.416"
y1="-119.362"
x2="263.416"
y2="-119.362"
id="line4672" />
</g>
<ellipse
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
cx="1113.93"
cy="-241.607"
rx="299.597"
ry="29.0105"
id="ellipse4674" />
<ellipse
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke-dasharray: 20; stroke: #c0c0c0"
cx="1110.5"
cy="-243.182"
rx="270.503"
ry="16.8177"
id="ellipse4676" />
<ellipse
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
cx="1106.77"
cy="-243.803"
rx="62.4775"
ry="8.40885"
id="ellipse4678" />
<g
id="g4680">
<polygon
style="fill: #000000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
points="1219.82,-274.262 1230.41,-273.04 1224.69,-261.95 "
id="polygon4682" />
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1223.55 -281.438 C 1223.57,-278.6 1414.84,-270.612 1496.08,-271.708 C 1505.28,-271.832 1521.81,-287.586 1513.73,-287.312 C 1432.49,-284.562 1223.53,-284.278 1223.55,-281.438z"
id="path4684" />
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1221.36 -280.458 C 1367.22,-271.084 1499.04,-271.726 1498.16,-271.6 C 1497.29,-271.476 1504.1,-259.834 1495.1,-260.96 C 1435.97,-263.15 1270.53,-271.41 1219.3,-275.766 C 1219.42,-280.35 1218.37,-280.65 1221.36,-280.458z"
id="path4686" />
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1498.6 -270.458 C 1497.91,-269.732 1498.47,-263.71 1498.47,-261.46 C 1498.47,-259.21 1516.68,-276.802 1516.8,-277.928 C 1516.93,-279.052 1516.12,-284.726 1516.19,-285.306 C 1513.57,-281.18 1500.85,-272.834 1498.6,-270.458z"
id="path4688" />
<path
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1493.95 -282.86 C 1509.31,-282.632 1497.62,-275.984 1485.01,-276.672 C 1472.41,-277.358 1478.6,-283.09 1493.95,-282.86z"
id="path4690" />
</g>
<g
id="g4692">
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1226.59 -92.0876 C 1226.61,-89.2486 1417.89,-81.261 1499.12,-82.3578 C 1508.32,-82.4818 1524.85,-98.2342 1516.77,-97.961 C 1435.53,-95.211 1226.57,-94.9268 1226.59,-92.0876z"
id="path4694" />
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1224.4 -91.1068 C 1370.26,-81.7328 1502.08,-82.3744 1501.2,-82.2494 C 1500.33,-82.1244 1507.14,-70.484 1498.14,-71.6088 C 1439.01,-73.7986 1273.57,-82.06 1222.34,-86.4152 C 1222.46,-90.9996 1221.41,-91.2992 1224.4,-91.1068z"
id="path4696" />
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1501.64 -81.1078 C 1500.95,-80.382 1501.51,-74.3586 1501.51,-72.1088 C 1501.51,-69.859 1519.72,-87.4518 1519.84,-88.5768 C 1519.97,-89.7016 1519.16,-95.3742 1519.23,-95.9546 C 1516.61,-91.83 1503.89,-83.4826 1501.64,-81.1078z"
id="path4698" />
<path
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1497 -93.5098 C 1512.35,-93.2806 1500.66,-86.6328 1488.06,-87.3204 C 1475.45,-88.0082 1481.64,-93.739 1497,-93.5098z"
id="path4700" />
</g>
<ellipse
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 8; stroke: #000000"
cx="1116.02"
cy="-110.257"
rx="296.886"
ry="26.5224"
id="ellipse4702" />
<ellipse
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
cx="1115.7"
cy="-114.916"
rx="299.597"
ry="29.0105"
id="ellipse4704" />
<ellipse
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke-dasharray: 20; stroke: #c0c0c0"
cx="1112.27"
cy="-116.492"
rx="270.503"
ry="16.8177"
id="ellipse4706" />
<ellipse
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
cx="1108.54"
cy="-117.113"
rx="62.4775"
ry="8.40885"
id="ellipse4708" />
<g
id="g4710">
<polygon
style="fill: #000000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
points="1221.04,-149.753 1231.64,-148.53 1225.91,-137.44 "
id="polygon4712" />
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1224.77 -156.929 C 1224.79,-154.09 1416.07,-146.102 1497.3,-147.199 C 1506.5,-147.323 1523.03,-163.075 1514.96,-162.802 C 1433.71,-160.052 1224.76,-159.768 1224.77,-156.929z"
id="path4714" />
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1222.58 -155.948 C 1368.44,-146.574 1500.26,-147.215 1499.38,-147.09 C 1498.51,-146.965 1505.32,-135.325 1496.32,-136.45 C 1437.2,-138.64 1271.76,-146.901 1220.52,-151.256 C 1220.64,-155.841 1219.59,-156.14 1222.58,-155.948z"
id="path4716" />
<path
style="fill: #c0c0c0; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1499.82 -145.949 C 1499.13,-145.223 1499.7,-139.2 1499.7,-136.95 C 1499.7,-134.7 1517.9,-152.293 1518.03,-153.418 C 1518.15,-154.543 1517.35,-160.215 1517.42,-160.796 C 1514.79,-156.671 1502.07,-148.324 1499.82,-145.949z"
id="path4718" />
<path
style="fill: #ffffff; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
d="M 1495.18 -158.351 C 1510.54,-158.122 1498.85,-151.474 1486.24,-152.162 C 1473.63,-152.849 1479.82,-158.58 1495.18,-158.351z"
id="path4720" />
</g>
<g
id="g4722">
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1096.74"
y1="-318.046"
x2="1119.2"
y2="-318.2"
id="line4724" />
<polygon
style="fill: #000000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
points="1092.24,-318.015 1098.22,-321.056 1096.74,-318.046 1098.26,-315.056 "
id="polygon4726" />
<path
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
d="M 1092.4,-308.2 A 90.346,90.346 0 0 0 1119.2,-308.2"
id="path4728" />
<path
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
d="M 1118.8 -318.2 C 1133.2,-315 1133.2,-310.6 1118.8,-308.2"
id="path4730" />
<path
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
d="M 1088 -317 C 1075.6,-314.2 1079.6,-310.2 1092.8,-308.2"
id="path4732" />
</g>
<g
id="g4734">
<path
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
d="M 1483.93 -310.108 C 1501.19,-310.108 1505.19,-322.108 1495.72,-324.474"
id="path4736" />
<polygon
style="fill: #000000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
points="1479.43,-310.108 1485.43,-313.108 1483.93,-310.108 1485.43,-307.108 "
id="polygon4738" />
<polygon
style="fill: #000000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
points="1491.36,-325.566 1497.91,-327.021 1495.72,-324.474 1496.45,-321.2 "
id="polygon4740" />
</g>
<text
font-size="27.0933"
style="font-style:normal;font-weight:normal;font-size:27.09329987px;font-family:sans-serif;text-anchor:start;fill:#ff0000;fill-opacity:1;stroke:none"
x="1093.1794"
y="-170.03673"
id="text4742">
<tspan
x="1093.1794"
y="-170.03673"
id="tspan4744">testina</tspan>
</text>
<g
id="g4746">
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="1217.68"
y1="-247.226"
x2="1191.45"
y2="-160.847"
id="line4748" />
<polygon
style="fill: #ff0000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
fill-rule="evenodd"
points="1218.99,-251.532 1220.12,-244.92 1217.68,-247.226 1214.37,-246.663 "
id="polygon4750" />
</g>
<g
id="g4752">
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="1214.42"
y1="-143.427"
x2="1192.05"
y2="-161.442"
id="line4754" />
<polygon
style="fill: #ff0000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
fill-rule="evenodd"
points="1217.93,-140.605 1211.37,-142.031 1214.42,-143.427 1215.13,-146.705 "
id="polygon4756" />
</g>
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #ff0000"
x1="1192.78"
y1="-160.922"
x2="1114.78"
y2="-160.922"
id="line4758" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.92"
y1="-342.04"
x2="1106.98"
y2="-362.134"
id="line4760" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.92"
y1="-334.818"
x2="1106.9"
y2="-336.806"
id="line4762" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.91"
y1="-327.612"
x2="1106.88"
y2="-329.6"
id="line4764" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.99"
y1="-302.524"
x2="1107.04"
y2="-322.616"
id="line4766" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.91"
y1="-294.944"
x2="1106.88"
y2="-296.932"
id="line4768" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.91"
y1="-287.952"
x2="1106.88"
y2="-289.94"
id="line4770" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.76"
y1="-262.72"
x2="1106.81"
y2="-282.814"
id="line4772" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.79"
y1="-255.686"
x2="1106.77"
y2="-257.674"
id="line4774" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.91"
y1="-248.35"
x2="1106.88"
y2="-250.338"
id="line4776" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.77"
y1="-235.394"
x2="1106.81"
y2="-243.126"
id="line4778" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.87"
y1="-183.143"
x2="1106.93"
y2="-203.236"
id="line4780" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.79"
y1="-176.108"
x2="1106.77"
y2="-178.096"
id="line4782" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.91"
y1="-168.973"
x2="1106.88"
y2="-170.96"
id="line4784" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.99"
y1="-143.741"
x2="1107.04"
y2="-163.834"
id="line4786" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1107.02"
y1="-136.506"
x2="1107"
y2="-138.493"
id="line4788" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1107.02"
y1="-129.6"
x2="1107"
y2="-131.587"
id="line4790" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1107.04"
y1="-109.067"
x2="1107.04"
y2="-124.031"
id="line4792" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.87"
y1="-64.478"
x2="1106.93"
y2="-84.5716"
id="line4794" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.68"
y1="-57.3006"
x2="1106.65"
y2="-59.2878"
id="line4796" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.99"
y1="-24.6748"
x2="1107.04"
y2="-44.7684"
id="line4798" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1106.79"
y1="-49.9934"
x2="1106.77"
y2="-51.9806"
id="line4800" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.87"
y1="-346.728"
x2="1490.86"
y2="-361.962"
id="line4802" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.88"
y1="-338.538"
x2="1490.86"
y2="-340.524"
id="line4804" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.72"
y1="-331.756"
x2="1490.76"
y2="-333.724"
id="line4806" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.7"
y1="-305.594"
x2="1490.76"
y2="-325.688"
id="line4808" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.62"
y1="-298.582"
x2="1490.6"
y2="-300.57"
id="line4810" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.62"
y1="-291.186"
x2="1490.6"
y2="-293.172"
id="line4812" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.72"
y1="-276.924"
x2="1490.64"
y2="-286.084"
id="line4814" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.59"
y1="-258.838"
x2="1490.56"
y2="-260.824"
id="line4816" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.46"
y1="-251.664"
x2="1490.43"
y2="-253.65"
id="line4818" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.48"
y1="-226.41"
x2="1490.45"
y2="-245.79"
id="line4820" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.88"
y1="-186.168"
x2="1490.87"
y2="-198.973"
id="line4822" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.83"
y1="-179.017"
x2="1490.8"
y2="-181.004"
id="line4824" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.86"
y1="-171.557"
x2="1490.84"
y2="-173.544"
id="line4826" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.56"
y1="-152.897"
x2="1490.68"
y2="-166.58"
id="line4828" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.81"
y1="-99.1318"
x2="1490.79"
y2="-101.119"
id="line4830" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.73"
y1="-131.94"
x2="1490.71"
y2="-133.928"
id="line4832" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.72"
y1="-106.496"
x2="1490.68"
y2="-126.453"
id="line4834" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.64"
y1="-66.497"
x2="1490.72"
y2="-71.0358"
id="line4836" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.71"
y1="-59.7224"
x2="1490.69"
y2="-61.7096"
id="line4838" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.54"
y1="-26.4484"
x2="1490.6"
y2="-46.5418"
id="line4840" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.75"
y1="-52.091"
x2="1490.72"
y2="-54.0782"
id="line4842" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1490.81"
y1="-219.272"
x2="1490.79"
y2="-221.26"
id="line4844" />
<line
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
x1="1491.01"
y1="-212.798"
x2="1490.99"
y2="-214.784"
id="line4846" />
<g
id="g4848">
<path
style="fill: none; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
d="M 364.229,-415.895 A 183.382,183.382 0 0 0 284.688,-434.13"
id="path4850" />
<polygon
style="fill: #000000; fill-opacity: 1; stroke-opacity: 1; stroke-width: 2; stroke: #000000"
fill-rule="evenodd"
points="370.913,-412.513 359.741,-412.951 364.341,-416.127 364.559,-421.713 "
id="polygon4852" />
</g>
<text
font-size="27.0933"
style="font-style:normal;font-weight:normal;font-size:27.09329987px;line-height:125%;font-family:sans-serif;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#ff0000;fill-opacity:1;stroke:none"
x="-210.75301"
y="-238.93304"
id="text4622-6"
sodipodi:linespacing="125%">
<tspan
y="-238.93304"
x="-210.75301"
sodipodi:role="line"
id="tspan4860-0">attuatore</tspan>
</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 34 KiB

BIN
immagini/usbkeys.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

788
slides.tex

@ -0,0 +1,788 @@
% vim:sts=2:sw=2
% encoding: utf-8
\documentclass{beamer}
\usetheme[subsectionpage=progressbar]{metropolis}
\usepackage{booktabs}
\definecolor{darkblue}{RGB}{0,0,139}
\usepackage{tikz}
\usepackage{polyglossia,hyperref,fontawesome}
\setdefaultlanguage{italian}
\newfontface\cc{Font Awesome 5 Brands}
\hypersetup{
colorlinks=true,
urlcolor=darkblue,
pdfinfo={
Title={Partizionamento for dummies},
Author={Emiliano Vavassori}
}
}
\graphicspath{ {immagini/} }
\setcounter{tocdepth}{2}
% Personal commands
\newcommand{\email}[1]{\faEnvelope~\href{mailto:#1}{\alert{\texttt{#1}}}}
\newcommand{\twitter}[1]{\faTwitter~\href{https://twitter.com/#1}{\alert{\texttt{@#1}}}}
\newcommand{\homepage}[1]{\faHome~\href{https://#1}{\alert{\texttt{#1}}}}
\newcommand{\git}[1]{\faGit~\href{https://#1}{\alert{\texttt{#1}}}}
\newcommand{\wikilemma}[1]{\href{https://it.wikipedia.org/wiki/#1}{\raisebox{.2ex}{\tiny\faWikipediaW}}}
% Logos for CC
\def\faCreativeCommonsBy{{\cc\symbol{"F4E7}}}
\def\faCreativeCommonsSA{{\cc\symbol{"F4EF}}}
\pgfdeclareimage[width=2cm]{logo}{immagini/logo}
\pgfdeclareimage[width=.98\textwidth]{schemahdd}{immagini/schemahdd}
\pgfdeclareimage[width=.99\textwidth]{linux-fhs}{immagini/linux_fhs}
\pgfdeclareimage[height=.8\textheight]{lvm}{immagini/lvm_components}
% Redefining logo positioning
\setbeamertemplate{footline}{
\begin{minipage}[t]{.49\textwidth}
\hskip.5em\raisebox{.5em}{\pgfuseimage{logo}}%
\end{minipage}\hfill%
\begin{minipage}[b]{.49\textwidth}
\hfill\raisebox{.5em}{\insertframenumber/\inserttotalframenumber}\phantom{.}\hskip.5em
\end{minipage}
}
% The document
\title{Partizionamento \textit{for dummies}}
\date{27 giugno 2018}
\author{
Emiliano Vavassori\\[.2em]\tiny
\homepage{sys42.eu}\\
\email{syntaxerrormmm@gmail.com}\\
\twitter{syntaxerrormmm}\\
\git{git.sys42.eu}\\[.5em]
}
\institute{%
\begin{minipage}{.5\textwidth}
BgLUG - Bergamo Linux Users Group\\
c/o FabLab Bergamo\\
Via M.~Gavazzeni 3, Bergamo
\end{minipage}
\begin{minipage}{.45\textwidth}\flushright%
\includegraphics[width=3.5cm]{logo}
\end{minipage}%
}
%\logo{\includegraphics[width=2cm]{logo}}
\begin{document}
\maketitle
\begin{frame}
\frametitle{Contenuti}
\begin{columns}
\begin{column}{.45\textwidth}
\tableofcontents[sections=1-3]
\end{column}
\begin{column}{.45\textwidth}
\tableofcontents[sections=4-6]
\end{column}
\end{columns}
\end{frame}
\section{Cosa significa?}
\begin{frame}
\frametitle{\textsc{Wikipedia}: Partizione}
\begin{block}{}
\wikilemma{Partizione} Una \textbf{partizione} indica una
\alert{suddivisione logica} di un'unità di memorizzazione fisica
(tipicamente una memoria di massa come un disco rigido o una chiavetta
USB).
Le singole unità logiche vengono viste dal sistema operativo come
\alert{unità separate} e possono essere \alert{formattate} e gestite in
maniera del tutto indipendente.
Su ogni disco rigido è sempre presente \alert{almeno una partizione} per la
sua operatività, al più l'intera memoria vista come singola o unica
partizione.
\end{block}
\end{frame}
\begin{frame}
\frametitle{\textsc{Wikipedia}: Disco rigido}
\begin{block}{}
\wikilemma{Disco\_rigido} Un \textbf{disco rigido} o \textbf{disco fisso}
[\ldots] indica un dispositivo di memoria di massa di tipo
\alert{magnetico} che utilizza uno o più dischi magnetizzati per
l'archiviazione dei dati (file, programmi e sistemi operativi).
\end{block}
\begin{center}
\includegraphics[height=3cm]{hdd}\ \includegraphics[height=3cm]{hddchiuso}
\end{center}
\end{frame}
\begin{frame}
\frametitle{Come funziona un disco rigido?}
\begin{center}
\pgfuseimage{schemahdd}
\end{center}
\end{frame}
\begin{frame}
\frametitle{\textsc{Wikipedia}: Chiave USB}
\begin{block}{}
\wikilemma{Chiave\_USB} Una \textbf{chiave USB} o \textbf{unità flash USB}
o \textbf{penna USB} [\ldots] è una \alert{memoria di massa portatile} di
dimensioni molto contenute (qualche centimetro in lunghezza e intorno al
centimetro in larghezza) che si collega al computer mediante la porta
USB.
\end{block}
\begin{center}
\includegraphics[width=4cm]{usbkeys}
\end{center}
\end{frame}
\begin{frame}
\frametitle{\textsc{Wikipedia}: Memoria di massa}
\begin{block}{}
\wikilemma{Memoria\_di\_massa} Una \textbf{memoria di massa} è un tipo di
memoria che raccoglie tipicamente \alert{grandi quantità di dati} rispetto
alla memoria primaria e in maniera non volatile cioè \alert{permanente},
almeno fino alla volontà dell'utente.
\end{block}
\end{frame}
\section{Perché?}
\begin{frame}
\frametitle{Perché si partiziona?}
\begin{itemize}[<+->]
\item Migliore organizzazione dei dati
\item Eseguire differenti sistemi operativi su un PC\newline (\emph{multi
booting})
\item Ridurre il rischio di perdite di dati
\item Comodità di backup e ripristino
\item Selettività nella cifratura del disco
\item Aumento delle performance
\end{itemize}
\end{frame}
\section{Come?}
\begin{frame}
\frametitle{Come partizioniamo?}
\only<2>{%
\begin{center}
\includegraphics[height=.8\textheight]{partizmanuale}
\end{center}}
\only<3>{%
\begin{center}
\includegraphics[height=.7\textheight]{applepartition}
\end{center}}
\only<4>{%
\centering
\begin{tikzpicture}
\tikzstyle{go}=[->,>=stealth]
\node[circle,draw=alert,scale=10.2] (first) at (0,0) {};
\node[circle,fill=alert!60,scale=10] (first) at (0,0) {};
\node[circle,fill=alert!40,scale=8] (middle) at (0,0) {};
\node[circle,fill=alert!20,scale=5] (last) at (0,0) {};
\node[circle,draw=alert,fill=white,scale=1] (inner) at (0,0) {};
\node[circle,draw,scale=.1] (p) at (1.3,1.3) {};
\node (l-mbr) at (3,2) { Settore d'avvio }
edge[go] (1.3, 1.3);
\node (l-first) at (4,1) { Prima partizione }
edge[go] (1.15, 1.15);
\node (l-middle) at (5,0) { Seconda partizione }
edge[go] (.8, .8);
\node (l-last) at (4,-1) { Terza partizione }
edge[go] (.3, .3);
\end{tikzpicture}}
\end{frame}
\subsection{L'avvio di GNU/Linux}
\begin{frame}
\frametitle{\textsc{Wikipedia}: Boot loader}
\begin{block}{}
\wikilemma{Boot\_loader} Il \textbf{boot loader} è il programma che, nella
\alert{fase di avvio} (\emph{boot}) del computer, \alert{carica il kernel}
del sistema operativo dalla memoria secondaria (ad esempio un \emph{hard
disk}) alla memoria primaria (generalmente la RAM), permettendone
l'esecuzione da parte del processore e il conseguente avvio del sistema.
\end{block}
\end{frame}
\begin{frame}
\frametitle{\textsc{Wikipedia}: Kernel}
\begin{block}{}
\wikilemma{Kernel} Il \textbf{kernel} costituisce il nucleo (o
\alert{nocciolo}) di un sistema operativo, ovvero il software avente il
compito di fornire ai processi in esecuzione sull'elaboratore un accesso
sicuro e controllato all'hardware.
Dato che possono esserne eseguiti simultaneamente più di uno [di processi,
NDR], il kernel ha anche la responsabilità di assegnare una
\alert{porzione di tempo-macchina} (\emph{scheduling}) e di \alert{accesso
all'hardware} a ciascun programma (\emph{multitasking}).
\end{block}
\end{frame}
\begin{frame}
\frametitle{Schema generico di avvio}
\begin{tikzpicture}{shapes,arrows}
\tikzstyle{hw}=[rectangle,draw=darkblue!70,fill=darkblue!20,rounded
corners=5pt,node distance=2.75cm,text width=1.8cm,text centered,minimum
height=4em]
\tikzstyle{block}=[rectangle,draw=alert!70,fill=alert!20,rounded
corners=5pt,node distance=2.75cm,text width=1.8cm,text centered,minimum
height=4em]
\tikzstyle{go}=[->,>=stealth,semithick,shorten >=5pt,shorten <=2pt]
\node[hw] (POST) at (0, 0) {\textit{Power On Self Test}};
\node<2->[hw,right of=POST] (firmware) { Firmware };
\draw<2->[go] (POST) to (firmware);
\node<3->[block,right of=firmware] (bootloader) { Codice d'avvio };
\draw<3->[go] (firmware) to (bootloader);
\node<4->[block] (kernel) at (8.15cm, 1.38cm) { Kernel };
\node<4->[block,below of=kernel] (initrd) { Archivio \texttt{initrd} };
\draw<4->[go,bend right=20] (bootloader.east) to (kernel.south);
\draw<4->[go,bend left=20] (bootloader.east) to (initrd.north);
\draw<5>[red,thick,dashed,rounded corners] (1.5,1) rectangle (6.75,-1);
\end{tikzpicture}
\end{frame}
\begin{frame}
\frametitle{Modalità \textit{legacy}}
\begin{center}
\begin{tabular}{@{\hspace{1ex}\bfseries}lr}
\toprule
Firmware & \textit{Basic Input/Output System} (BIOS)\\
Codice d'avvio & MBR/PBR e bootloader\\
\bottomrule
\end{tabular}
\end{center}
\pause
\begin{itemize}[<+->]
\item L'utente sceglie l'ordine dei disp.~da cui tentare l'avvio
\item Per ciascun dispositivo, il firmware cerca:
\begin{enumerate}
\item \textit{Master Boot Record} (MBR): \\
446 B (\textbf{codice d'avvio}) + 64 B (tabella partizioni)
\item \textit{Partition Boot Record} (PBR)
\end{enumerate}
\item Il codice binario di MBR/PBR cerca un \textbf{bootloader}
in una partizione con flag \alert{avviabile}
\item Il bootloader legge il file di configurazione
(\texttt{grub.conf})
\item Il bootloader carica kernel e \texttt{initrd}
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Modalità UEFI --- 1}
\begin{center}
\begin{tabular}{@{\hspace{1ex}\bfseries}lr}
\toprule
Firmware & \textit{\small Unified Extensible Firmware Interface}
(UEFI)~\wikilemma{UEFI}\\
Codice d'avvio & File \texttt{.efi}\\
\bottomrule
\end{tabular}
\end{center}
\pause
Il firmware elenca automaticamente i dispositivi \alert{avviabili} collegati
al PC. L'utente deve stabilire l'\alert{ordine di avvio}.
\pause
Sono avviabili i disposivi che hanno:
\begin{itemize}[<+->]
\item \textit{EFI System Partition}, ESP:
\begin{itemize}
\item Tipo di partizione: \texttt{ef00}
\item File system: FAT32 (raccomandato)
\item Dimensione: 50~MiB o più
\item Può essere condivisa fra più OS
\end{itemize}
\item Bootloader: file eseguibili con estensione \texttt{.efi}
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Modalità UEFI --- 2}
Ricapitolando:
\begin{itemize}[<+->]
\item Il firmware cerca dispositivi bootabili e ha già una lista di
bootloader
\item Viene caricato il bootloader dal primo dispositivo avviabile
\item Il bootloader legge il suo file di configurazione
(\texttt{grub.conf})
\item Il bootloader carica quindi il kernel e \texttt{initrd}
\end{itemize}
\onslide<5->
\textbf{N.B.}: Il flag \textit{avviabile} sulla partizione non è più necessario.
\onslide<6>
\textbf{N.B.}: Un firmware UEFI \emph{di norma} permette anche l'avvio in
modalità \textit{legacy}.
\end{frame}
\subsection{Scelte tecniche}
\begin{frame}
\frametitle{Tabella di partizioni MSDOS}
\begin{itemize}[<+->]
\item Posizione: 64 B all'inizio del disco (dopo codice d'avvio)
\item 4 partizioni massimo fra \emph{primarie} e \emph{estese}
\item 24 partizioni \emph{logiche} per ciascuna partizione \emph{estesa}
\item Totale: massimo 96 partizioni
\item Non \emph{sarebbe} compatibile con EFI (tabelle part.~ibride GPT)
\end{itemize}
\end{frame}
\subsubsection{Tabella partizioni GPT}
\begin{frame}
\frametitle{Tabella di partizioni \textit{GUID Partition Table} (GPT)}
\begin{itemize}[<+->]
\item Standard legato a EFI
\item Sicurezza: due copie, una all'inizio (\emph{primaria}) e una alla
fine del disco (\emph{backup})
\item Dimensioni: 16 kiB ciascuna: LBA1--34 (1 LBA $\approx$ 512 B)
\item Permette un totale di 255 partizioni, tutte identiche
\item LBA 0: \textit{Protective MBR}
\end{itemize}
\end{frame}
\subsection{Scelte operative}
\begin{frame}
\frametitle{Scelte che influenzano il partizionamento}
\begin{itemize}[<+->]
\item Velocità d'accesso ai dati (assoluta e relativa)
\item Compatibilità fra funzionalità a livello di \textit{file system}
\item Conoscenza dei software in uso
\item Esigenze di backup
\item Posizione dei dati con riferimento a \textit{Filesystem Hierarchy
Standard} (FHS)
\item Esigenze d'uso: \emph{desktop} vs.~\emph{server}
\item Scelte di hardening
\end{itemize}
\end{frame}
\subsubsection{Funzionalità a livello di file system}
\begin{frame}
\frametitle{Funzionalità del \textit{file system}}
\begin{itemize}[<+->]
\item \textit{Journaling} per la consistenza dei dati
\item Applicazione di quote (per utente, per gruppo)
\item \textit{Access Control List} (ACL)
\item Cifratura (\textit{Linux Unified Key Setup}, LUKS)
\item Memoria virtuale (\textit{swap})
\item Possibilità di fare \textit{snapshot}
\end{itemize}
\end{frame}
\subsubsection{Posizionamento dei dati}
\begin{frame}
\frametitle{Posizionamento dei dati}
\begin{itemize}[<+->]
\item Dati del database: \texttt{/var/lib}
\item Applicazioni web: \texttt{/var/www}
\item Log di sistema e delle applicazioni: \texttt{/var/log}
\item Dati condivisi SMB: \texttt{/srv} o \texttt{/var}
\item Molti programmi proprietari (giochi): \texttt{/opt}
\item Dati utente: \texttt{/home}
\end{itemize}
\end{frame}
\subsubsection{Scelte di hardening}
\begin{frame}
\frametitle{Scelte di hardening}
\begin{itemize}[<+->]
\item Limitare il riempimento della partizione \texttt{/}: creare una
\texttt{/tmp} separata
\item Su sistemi identici, condividere \texttt{/usr/share} via NFS
\item Rendere \texttt{/usr} in \textit{sola lettura}
\item Rendere \texttt{/boot} in \textit{sola lettura}
\item Usare file system \textit{legacy} su \texttt{/boot}
\item Usare opzioni di montaggio per protezione: \texttt{nosuid},
\texttt{noexec}
\end{itemize}
\onslide<7>
Riferimento:
\href{https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks}{Wiki
di Gentoo GNU/Linux}
\end{frame}
\subsubsection{Esigenze d'uso}
\begin{frame}
\frametitle{Esigenze d'uso: desktop vs.~server}
\begin{itemize}[<+->]
\item Dimensione della \textit{swap}
\item Presenza partizione singola/multiple partizioni per il sistema
\item Importanza di \texttt{/home}
\item Automontaggio dispositivi rimovibili
\item Più spazio per \texttt{/usr}: programmi GUI in più
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Indicazioni di massima}
Se desktop:
\begin{itemize}
\item Partizione \texttt{swap}: quanto la RAM o più (sospensione)
\item Una partizione per \texttt{/}, circa 20--45 GiB
\item Opzionale ma caldamente consigliato: \texttt{/home}, dati utenti
\end{itemize}
\onslide<2->
Se server:
\begin{itemize}
\item Partizione \texttt{/boot}, 200--500 MiB
\item Partizione \texttt{swap}, 2--4 GiB indipendentemente dalla RAM
\item Partizione \texttt{/}, 15--40 GiB
\item Partizione \texttt{/tmp}, 2--4 GiB
\item Partizione \texttt{/var}, \textit{ad libitum}
\end{itemize}
\end{frame}
\subsection{Strumenti}
\subsubsection{A linea di comando}
\begin{frame}
\frametitle{Strumenti a linea di comando}
\begin{itemize}[<+->]
\item \texttt{fdisk}
\item \texttt{cfdisk}
\item \texttt{gdisk}
\item \texttt{parted}
\end{itemize}
\end{frame}
\subsubsection{Con interfaccia grafica}
\begin{frame}
\frametitle{Strumenti con interfaccia grafica}
\begin{itemize}[<+->]
\item GNOME Disks
\item GParted
\end{itemize}
\end{frame}
\section{E poi?}
\begin{frame}
\frametitle{E poi?}
\tableofcontents[sections={4}]
\end{frame}
\subsection{La formattazione}
\begin{frame}
\frametitle{\textsc{Wikipedia}: Formattazione}
\begin{block}{}
\wikilemma{Formattazione} La \textbf{formattazione} è l'operazione tramite
la quale \alert{si prepara per l'uso} un supporto di memorizzazione di
massa [\ldots] per renderlo idoneo all'archiviazione di dati, impostando
la struttura del \alert{file system} che vi verrà creato sopra.
Può venire chiamata a volte anche \textbf{inizializzazione}, sebbene in
realtà questa è la fase finale della formattazione, quella di preparazione
logica e scrittura dei dati di etichettatura.
L'operazione consiste nel \alert{dividere} la capacità del disco \alert{in
una serie di blocchi} di uguali dimensioni e \alert{fornire una struttura
logica} in cui verranno scritte le informazioni che permetteranno
l'accesso ai dati desiderati.
\end{block}
\end{frame}
\begin{frame}
\frametitle{\textsc{Wikipedia}: File system}
\begin{block}{}
\wikilemma{File\_system} Un \textbf{file system} indica informalmente un
meccanismo con il quale i file \alert{sono posizionati e organizzati} su
un dispositivo di archiviazione o su una memoria di massa e, in casi
eccezionali, anche sulla RAM.
Più formalmente, un file system è l'insieme dei tipi di dati astratti
necessari per la memorizzazione (scrittura), l'organizzazione gerarchica,
la manipolazione, la navigazione, l'accesso e la lettura dei dati.
[\ldots]
[\ldots] Nella rappresentazione grafica è generalmente utilizzata la
metafora delle \alert{cartelle} che contengono \alert{documenti} (i file)
ed \alert{altre sottocartelle}.
\end{block}
\end{frame}
\subsection{Struttura ad albero (FHS)}
\begin{frame}
\frametitle{\textit{Filesystem Hierarchy Standard}}
\pgfuseimage{linux-fhs}
\end{frame}
\subsection{I principali file system}
\begin{frame}
\frametitle{I file system}
\begin{minipage}[t]{.48\textwidth}
Nativi GNU/Linux
\begin{itemize}[<+->]
\item \texttt{ext2}
\item \texttt{ext3}
\item \texttt{ext4}
\item \texttt{btrfs}
\item \texttt{xfs}
\end{itemize}
\end{minipage}\hfill%
\begin{minipage}[t]{.48\textwidth}
Di altri sistemi operativi:
\begin{itemize}[<+->]
\item FAT (12, 16, 32)
\item ExFAT
\item NTFS
\item HFS+
\item ZFS
\end{itemize}
\end{minipage}
\end{frame}
\subsection{Strumenti}
\subsubsection{A linea di comando}
\begin{frame}
\frametitle{Strumenti a linea di comando}
\begin{minipage}{.3\textwidth}
\begin{itemize}[<+->]
\item \texttt{mkfs.ext2}
\item \texttt{mkfs.ext3}
\item \texttt{mkfs.ext4}
\item \texttt{mkfs.btrfs}
\item \texttt{mkfs.xfs}
\item \texttt{tune2fs}
\end{itemize}
\end{minipage}
\hfill
\begin{minipage}{.68\textwidth}
\begin{itemize}[<+->]
\item \alert{dosfstools}: \texttt{mkfs.vfat}, \texttt{mkfs.msdos}
\item \alert{exfatutils}: \texttt{mkfs.exfat}
\item \alert{nfts-3g}: \texttt{mkfs.ntfs}
\item \alert{hfsprogs}: \texttt{mkfs.hfs}, \texttt{mkfs.hfsplus}
\item \alert{zfsutils-linux}: \texttt{zfs}, \texttt{zpool}
\item Bonus: \texttt{parted}
\end{itemize}
\end{minipage}
\end{frame}
\subsubsection{Con interfaccia grafica}
\begin{frame}
\frametitle{Strumenti con interfaccia grafica}
\begin{itemize}[<+->]
\item GNOME Disks
\item GParted
\end{itemize}
\end{frame}
\subsection{Tecnologie avanzate}
\begin{frame}
\frametitle{Ridondanza: \textit{Redundant Array of Inexpensive Disks}
(RAID)}
\begin{itemize}[<+->]
\item Backup $\neq$ Ridondanza!
\item \textit{Just a Bunch Of Disks} (JBOD) vs.~\textit{Redundant Array of
Inexpensive Disks}
\item Velocità di accesso vs.~Sicurezza dei dati
\item Numero di dischi vs.~Sicurezza dei dati
\item Hardware vs.~Software (\texttt{mdadm})
\item Dimensione relativa dei dischi e perdita di spazio disponibile
\item Lotti di produzione differenti per più sicurezza dei dati
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Alcuni tipi di RAID}
\begin{center}\small
\begin{tabular}{lccc}
\toprule
\bfseries Nome RAID & \bfseries Liv. & \bfseries Num. min.~HDD &
\bfseries Num.~HDD persi \\
\midrule
Stripe & 0 & 2 & 0 \\
Mirror & 1 & 2 & 1 \\
RAID 5 & 5 & 3 & 1 \\
RAID 6 & 6 & 4 & 2 \\
Stripe + Mirror & 0+1 & 4 & 2+ \\
Mirror + Stripe & 1+0, 10 & 4 & 2+ \\
\bottomrule
\end{tabular}
\end{center}
\end{frame}
\begin{frame}
\frametitle{Gestibilità: \textit{Logical Volume Management} (LVM)}
\begin{center}
\pgfuseimage{lvm}
\end{center}
\end{frame}
\begin{frame}
\frametitle{Cifratura: \textit{Linux Unified Key Setup} (LUKS)}
\begin{itemize}[<+->]
\item Standard aperto per la cifratura
\item 2004 da Clemens Fruhwirth
\item Garantisce che la gestione delle password avvenga in maniera sicura
e documentata
\item Supporta differenti volumi (dm-crypt, volumi LUKS,
loop-AES, TrueCrypt e VeraCrypt)
\item \`E utilizzabile anche su Windows (FreeOTFE)
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{LUKS: funzionamento di base}
\begin{center}
\tikzstyle{dark}=[draw=alert!70,fill=alert!30,fill]
\tikzstyle{light}=[draw=alert!70,fill=alert!20]
\begin{tikzpicture}[scale=.9,draw=alert!70]
\draw[dark] (0, 0) rectangle (2.5, 1);
\node at (1.25, 0.5) { LUKS phdr };
\draw[light] (2.5, 0) rectangle (3.5, 1);
\node at (3, 0.5) { KM1 };
\draw[dark] (3.5, 0) rectangle (4.5, 1);
\node at (4, 0.5) { KM2 };
\draw[dashed] (4.5, 0) rectangle (5.5, 1);
\node at (5, 0.5) { \ldots };
\draw[light] (5.5, 0) rectangle (6.5, 1);
\node at (6, 0.5) { KM8 };
\draw (6.5, 0) rectangle (12, 1);
\node at (9.25, 0.5) { encrypted data };
\end{tikzpicture}
\end{center}
\pause