{"id":317506,"date":"2021-02-04T21:01:15","date_gmt":"2021-02-04T21:01:15","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=317506"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=317506","title":{"rendered":"\u0422\u0438\u0440\u0430\u0436\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 Fedora \u0438\u0437-\u043f\u043e\u0434 Fedora"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u0435\u0440\u0435\u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u044b \u0438\u0437-\u0437\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u0442\u0438\u043b\u0438\u0442 \u0442\u0438\u043f\u0430 anaconda, livecd-tools, Fedora Media Writer \u0438 \u0434\u0440\u0443\u0433\u0438\u0445, \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f kickstart. \u0412 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 Fedora \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438. \u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430 USB \u0444\u043b\u0435\u0448\u043a\u0443 \u0438 \u043d\u0430 \u0436\u0451\u0441\u0442\u043a\u0438\u0439 \u0434\u0438\u0441\u043a<\/p>\n<p>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u0412\u0441\u0451, \u0447\u0442\u043e \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435, \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0445 \u0438 \u0440\u0438\u0441\u043a, \u0442.\u043a. \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0439 \u0438\u043b\u0438 \u043f\u043e\u043b\u043d\u043e\u0439 \u043f\u043e\u0442\u0435\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u043d\u0430 \/dev\/sda, \u0430 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0434\u0438\u0441\u043a \u0438\u043b\u0438 \u0444\u043b\u0435\u0448\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043a \/dev\/sdb. \u0412 \u0432\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u0438\u0441\u043a, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 SSD M.2 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c, \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u043a\u0430\u043a \/dev\/nvme0n1<\/p>\n<h2>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0434\u0438\u0441\u043a\u0430<\/h2>\n<p>GPT \u0434\u043b\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430<\/p>\n<pre><code>sgdisk --zap-all \/dev\/sdb sgdisk -o \/dev\/sdb sgdisk -a 4096 -n 1:0:+1M --typecode=1:ef02 \/dev\/sdb # BIOS Boot sgdisk -a 4096 -n 2:0:+1G --typecode=2:8300 \/dev\/sdb # \/boot sgdisk -a 4096 -n 3:0:+8G --typecode=3:8200 \/dev\/sdb # swap sgdisk -a 4096 --largest-new=4 --typecode=4:8300 \/dev\/sdb # XFS sgdisk -A 1:set:2 \/dev\/sdb<\/code><\/pre>\n<p>MBR \u0434\u043b\u044f USB \u0444\u043b\u0435\u0448\u043a\u0438<\/p>\n<pre><code>sfdisk \/dev\/sdb &lt;&lt; EOF label: dos device: \/dev\/sdb unit: sectors sector-size: 512  \/dev\/sdb1 : start=        2048, type=83, bootable EOF<\/code><\/pre>\n<h2>\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432<\/h2>\n<p>XFS \u0434\u043b\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430<\/p>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 XFS? \u041f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 inode, \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043c\u0435\u043b\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043c\u043d\u043e\u0433\u043e git \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432<\/p>\n<pre><code>mkfs.ext4 -F \/dev\/sdb2 mkswap --force \/dev\/sdb3 mkfs.xfs -f \/dev\/sdb4<\/code><\/pre>\n<p>EXT4 \u0434\u043b\u044f USB \u0444\u043b\u0435\u0448\u043a\u0438<\/p>\n<pre><code>mkfs.ext4 -b 1024 \/dev\/sdb1<\/code><\/pre>\n<h2>\u041c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<p>\u0414\u043b\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430<\/p>\n<pre><code>mount \/dev\/sdb4 \/mnt mkdir \/mnt\/{boot,dev,sys,proc} mount \/dev\/sdb2 \/mnt\/boot<\/code><\/pre>\n<p>\u0414\u043b\u044f USB \u0444\u043b\u0435\u0448\u043a\u0438<\/p>\n<pre><code>mount \/dev\/sdb1 \/mnt mkdir \/mnt\/{boot,dev,sys,proc}<\/code><\/pre>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<p>\u041c\u043e\u0439 \u0434\u0436\u0435\u043d\u0442\u043b\u044c\u043c\u0435\u043d\u0441\u043a\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0442\u0438\u043b\u0438\u0442 \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<pre><code>dnf -y --installroot=\/mnt --releasever=33 group install standard core \\ hardware-support development-libs development-tools dnf -y --installroot=\/mnt install iptables gpart gdisk rsync nano tcpdump \\ tcsh grub2-pc net-tools bind-utils sysstat xfsprogs<\/code><\/pre>\n<h2>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a<\/h2>\n<pre><code>mount --bind \/dev \/mnt\/dev mount --bind \/sys \/mnt\/sys mount --bind \/proc \/mnt\/proc  cp \/etc\/resolv.conf \/mnt\/etc  chroot \/mnt \/bin\/tcsh  dnf -y install kernel grub2-install \/dev\/sdb grub2-mkconfig -o \/boot\/grub2\/grub.cfg  exit<\/code><\/pre>\n<p>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u0421 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c resolv.conf \u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u043f\u043e\u0441\u043b\u0435, \u0442.\u043a. \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0435\u0441\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0434\u0435\u043c\u043e\u043d\u043e\u043c systemd-resolved<\/p>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 fstab<\/h2>\n<p>uuid \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u0435\u043d \u0438 \u0445\u043e\u0440\u043e\u0448 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u0432 &#171;\u043c\u0443\u0442\u043d\u043e\u0439 \u0432\u043e\u0434\u0438\u0446\u0435&#187; \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u043e\u0432 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.<\/p>\n<p>\u0414\u043b\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430<\/p>\n<pre><code>blkid --output export \/dev\/sdb2 | grep ^UUID= | xargs -I '{}' echo {} \/boot ext4 rw,relatime 1 2 &gt; \/mnt\/etc\/fstab blkid --output export \/dev\/sdb4 | grep ^UUID= | xargs -I '{}' echo {} \/ xfs rw,relatime 0 0 &gt; \/mnt\/etc\/fstab blkid --output export \/dev\/sdb3 | grep ^UUID= | xargs -I '{}' echo {} swap swap defaults 0 0 &gt; \/mnt\/etc\/fstab<\/code><\/pre>\n<p>\u0414\u043b\u044f USB \u0444\u043b\u0435\u0448\u043a\u0438<\/p>\n<pre><code>blkid --output export \/dev\/sdb1 | grep ^UUID= | xargs -I '{}' echo {} \/ ext4 rw,relatime 0 0 &gt; \/mnt\/etc\/fstab<\/code><\/pre>\n<h2>\u0414\u043e\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0432\u0443<\/h2>\n<p>\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0437\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<pre><code>echo 'root:123' | chpasswd --root \/mnt<\/code><\/pre>\n<h2>\u0420\u0430\u0437\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<p>\u0414\u043b\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430<\/p>\n<pre><code>umount \/mnt\/dev umount \/mnt\/sys umount \/mnt\/proc umount \/mnt\/boot umount \/mnt<\/code><\/pre>\n<p>\u0414\u043b\u044f USB \u0444\u043b\u0435\u0448\u043a\u0438<\/p>\n<pre><code>umount \/mnt\/dev umount \/mnt\/sys umount \/mnt\/proc umount \/mnt<\/code><\/pre>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0422\u0430\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u0434\u043b\u044f bare-metall \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/540942\/\"> https:\/\/habr.com\/ru\/post\/540942\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043f\u0435\u0440\u0435\u0443\u0441\u043b\u043e\u0436\u043d\u0435\u043d\u044b \u0438\u0437-\u0437\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0443\u0442\u0438\u043b\u0438\u0442 \u0442\u0438\u043f\u0430 anaconda, livecd-tools, Fedora Media Writer \u0438 \u0434\u0440\u0443\u0433\u0438\u0445, \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f kickstart. \u0412 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 Fedora \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438. \u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430 USB \u0444\u043b\u0435\u0448\u043a\u0443 \u0438 \u043d\u0430 \u0436\u0451\u0441\u0442\u043a\u0438\u0439 \u0434\u0438\u0441\u043a<\/p>\n<p>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u0412\u0441\u0451, \u0447\u0442\u043e \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435, \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0445 \u0438 \u0440\u0438\u0441\u043a, \u0442.\u043a. \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e\u0439 \u0438\u043b\u0438 \u043f\u043e\u043b\u043d\u043e\u0439 \u043f\u043e\u0442\u0435\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u043d\u0430 \/dev\/sda, \u0430 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0434\u0438\u0441\u043a \u0438\u043b\u0438 \u0444\u043b\u0435\u0448\u043a\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043a \/dev\/sdb. \u0412 \u0432\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u0438\u0441\u043a, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 SSD M.2 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u044c, \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u043a\u0430\u043a \/dev\/nvme0n1<\/p>\n<h2>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0434\u0438\u0441\u043a\u0430<\/h2>\n<p>GPT \u0434\u043b\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430<\/p>\n<pre><code>sgdisk --zap-all \/dev\/sdb sgdisk -o \/dev\/sdb sgdisk -a 4096 -n 1:0:+1M --typecode=1:ef02 \/dev\/sdb # BIOS Boot sgdisk -a 4096 -n 2:0:+1G --typecode=2:8300 \/dev\/sdb # \/boot sgdisk -a 4096 -n 3:0:+8G --typecode=3:8200 \/dev\/sdb # swap sgdisk -a 4096 --largest-new=4 --typecode=4:8300 \/dev\/sdb # XFS sgdisk -A 1:set:2 \/dev\/sdb<\/code><\/pre>\n<p>MBR \u0434\u043b\u044f USB \u0444\u043b\u0435\u0448\u043a\u0438<\/p>\n<pre><code>sfdisk \/dev\/sdb &lt;&lt; EOF label: dos device: \/dev\/sdb unit: sectors sector-size: 512  \/dev\/sdb1 : start=        2048, type=83, bootable EOF<\/code><\/pre>\n<h2>\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432<\/h2>\n<p>XFS \u0434\u043b\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430<\/p>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 XFS? \u041f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 inode, \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043c\u0435\u043b\u043a\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043c\u043d\u043e\u0433\u043e git \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432<\/p>\n<pre><code>mkfs.ext4 -F \/dev\/sdb2 mkswap --force \/dev\/sdb3 mkfs.xfs -f \/dev\/sdb4<\/code><\/pre>\n<p>EXT4 \u0434\u043b\u044f USB \u0444\u043b\u0435\u0448\u043a\u0438<\/p>\n<pre><code>mkfs.ext4 -b 1024 \/dev\/sdb1<\/code><\/pre>\n<h2>\u041c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<p>\u0414\u043b\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430<\/p>\n<pre><code>mount \/dev\/sdb4 \/mnt mkdir \/mnt\/{boot,dev,sys,proc} mount \/dev\/sdb2 \/mnt\/boot<\/code><\/pre>\n<p>\u0414\u043b\u044f USB \u0444\u043b\u0435\u0448\u043a\u0438<\/p>\n<pre><code>mount \/dev\/sdb1 \/mnt mkdir \/mnt\/{boot,dev,sys,proc}<\/code><\/pre>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<p>\u041c\u043e\u0439 \u0434\u0436\u0435\u043d\u0442\u043b\u044c\u043c\u0435\u043d\u0441\u043a\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0442\u0438\u043b\u0438\u0442 \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<pre><code>dnf -y --installroot=\/mnt --releasever=33 group install standard core \\ hardware-support development-libs development-tools dnf -y --installroot=\/mnt install iptables gpart gdisk rsync nano tcpdump \\ tcsh grub2-pc net-tools bind-utils sysstat xfsprogs<\/code><\/pre>\n<h2>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a<\/h2>\n<pre><code>mount --bind \/dev \/mnt\/dev mount --bind \/sys \/mnt\/sys mount --bind \/proc \/mnt\/proc  cp \/etc\/resolv.conf \/mnt\/etc  chroot \/mnt \/bin\/tcsh  dnf -y install kernel grub2-install \/dev\/sdb grub2-mkconfig -o \/boot\/grub2\/grub.cfg  exit<\/code><\/pre>\n<p>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435! \u0421 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c resolv.conf \u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u043f\u043e\u0441\u043b\u0435, \u0442.\u043a. \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0435\u0441\u0442\u044c \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0434\u0435\u043c\u043e\u043d\u043e\u043c systemd-resolved<\/p>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 fstab<\/h2>\n<p>uuid \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u0435\u043d \u0438 \u0445\u043e\u0440\u043e\u0448 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u0432 &#171;\u043c\u0443\u0442\u043d\u043e\u0439 \u0432\u043e\u0434\u0438\u0446\u0435&#187; \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438\u043b\u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u043e\u0432 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.<\/p>\n<p>\u0414\u043b\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430<\/p>\n<pre><code>blkid --output export \/dev\/sdb2 | grep ^UUID= | xargs -I '{}' echo {} \/boot ext4 rw,relatime 1 2 &gt; \/mnt\/etc\/fstab blkid --output export \/dev\/sdb4 | grep ^UUID= | xargs -I '{}' echo {} \/ xfs rw,relatime 0 0 &gt; \/mnt\/etc\/fstab blkid --output export \/dev\/sdb3 | grep ^UUID= | xargs -I '{}' echo {} swap swap defaults 0 0 &gt; \/mnt\/etc\/fstab<\/code><\/pre>\n<p>\u0414\u043b\u044f USB \u0444\u043b\u0435\u0448\u043a\u0438<\/p>\n<pre><code>blkid --output export \/dev\/sdb1 | grep ^UUID= | xargs -I '{}' echo {} \/ ext4 rw,relatime 0 0 &gt; \/mnt\/etc\/fstab<\/code><\/pre>\n<h2>\u0414\u043e\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0441\u043e\u0432\u0443<\/h2>\n<p>\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0437\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0434\u0440\u0443\u0433\u043e\u0435.<\/p>\n<pre><code>echo 'root:123' | chpasswd --root \/mnt<\/code><\/pre>\n<h2>\u0420\u0430\u0437\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<p>\u0414\u043b\u044f \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430<\/p>\n<pre><code>umount \/mnt\/dev umount \/mnt\/sys umount \/mnt\/proc umount \/mnt\/boot umount \/mnt<\/code><\/pre>\n<p>\u0414\u043b\u044f USB \u0444\u043b\u0435\u0448\u043a\u0438<\/p>\n<pre><code>umount \/mnt\/dev umount \/mnt\/sys umount \/mnt\/proc umount \/mnt<\/code><\/pre>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0422\u0430\u043a\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043e\u0439\u0442\u0438 \u0434\u043b\u044f bare-metall \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/540942\/\"> https:\/\/habr.com\/ru\/post\/540942\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-317506","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/317506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=317506"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/317506\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=317506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=317506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=317506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}