Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # uname -a
- Linux fedora 5.12.9-300.fc34.x86_64 #1 SMP Thu Jun 3 13:51:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
- # lsb_release -a
- LSB Version: :core-4.1-amd64:core-4.1-noarch
- Distributor ID: Fedora
- Description: Fedora release 34 (Thirty Four)
- Release: 34
- Codename: ThirtyFour
- # cat /etc/redhat-release
- Fedora release 34 (Thirty Four)
- # lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- sda 8:0 0 931,5G 0 disk
- ├─sda1 8:1 0 500M 0 part
- ├─sda2 8:2 0 851G 0 part
- ├─sda3 8:3 0 500M 0 part /boot/efi
- ├─sda4 8:4 0 1K 0 part
- ├─sda5 8:5 0 1G 0 part /boot
- ├─sda6 8:6 0 60G 0 part /
- ├─sda7 8:7 0 7G 0 part /home
- └─sda8 8:8 0 2G 0 part [SWAP]
- sdb 8:16 0 465,8G 0 disk
- ├─sdb1 8:17 0 465,3G 0 part
- └─sdb2 8:18 0 479M 0 part
- sr0 11:0 1 1024M 0 rom
- zram0 252:0 0 7,7G 0 disk [SWAP]
- # df -hT
- Файловая система Тип Размер Использовано Дост Использовано% Cмонтировано в
- devtmpfs devtmpfs 3,9G 0 3,9G 0% /dev
- tmpfs tmpfs 3,9G 488K 3,9G 1% /dev/shm
- tmpfs tmpfs 1,6G 2,0M 1,6G 1% /run
- /dev/sda6 ext4 59G 6,5G 50G 12% /
- tmpfs tmpfs 3,9G 104K 3,9G 1% /tmp
- /dev/sda5 ext4 976M 185M 724M 21% /boot
- /dev/sda7 ext4 6,9G 215M 6,3G 4% /home
- /dev/sda3 vfat 500M 36M 465M 8% /boot/efi
- tmpfs tmpfs 791M 116K 791M 1% /run/user/1000
- # cat /etc/fstab
- #
- # /etc/fstab
- # Created by anaconda on Fri Jun 11 18:43:15 2021
- #
- # Accessible filesystems, by reference, are maintained under '/dev/disk/'.
- # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
- #
- # After editing this file, run 'systemctl daemon-reload' to update systemd
- # units generated from this file.
- #
- UUID=9dd8d7f9-4f20-48d7-888b-2a96032bd538 / ext4 defaults 1 1
- UUID=7d689356-39ef-4a00-9f8e-99ffadf7fe23 /boot ext4 defaults 1 2
- UUID=6523-C129 /boot/efi vfat umask=0077,shortname=winnt 0 2
- UUID=5d9038b3-5d3f-48be-81b7-93c5e767c42c /home ext4 defaults 1 2
- UUID=af36a585-bc2d-49d3-bc58-4ee00b29a32d none swap defaults 0 0
- # ls -la /sys/firmware/efi
- итого 0
- drwxr-xr-x. 6 root root 0 июн 13 2021 .
- drwxr-xr-x. 6 root root 0 июн 13 2021 ..
- -r--r--r--. 1 root root 4096 июн 13 15:13 config_table
- drwxr-xr-x. 2 root root 0 июн 13 2021 efivars
- drwxr-xr-x. 3 root root 0 июн 13 12:22 esrt
- -r--r--r--. 1 root root 4096 июн 13 15:13 fw_platform_size
- -r--r--r--. 1 root root 4096 июн 13 15:13 fw_vendor
- drwxr-xr-x. 2 root root 0 июн 13 15:13 mok-variables
- -r--r--r--. 1 root root 4096 июн 13 15:13 runtime
- drwxr-xr-x. 15 root root 0 июн 13 15:13 runtime-map
- -r--------. 1 root root 4096 июн 13 15:13 systab
- # cat /etc/default/grub
- GRUB_TIMEOUT=5
- GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
- GRUB_DEFAULT=saved
- GRUB_DISABLE_SUBMENU=true
- GRUB_TERMINAL_OUTPUT="console"
- GRUB_CMDLINE_LINUX="resume=UUID=af36a585-bc2d-49d3-bc58-4ee00b29a32d rhgb quiet"
- GRUB_DISABLE_RECOVERY="true"
- GRUB_ENABLE_BLSCFG=true
- # find /boot -iname '*grub*.cfg'
- /boot/efi/EFI/fedora/grub.cfg
- /boot/grub2/grub.cfg
- # find /boot -iname '*grub*.cfg' -exec cat {} \;
- search --no-floppy --fs-uuid --set=dev 7d689356-39ef-4a00-9f8e-99ffadf7fe23
- set prefix=($dev)/grub2
- export $prefix
- configfile $prefix/grub.cfg
- #
- # DO NOT EDIT THIS FILE
- #
- # It is automatically generated by grub2-mkconfig using templates
- # from /etc/grub.d and settings from /etc/default/grub
- #
- ### BEGIN /etc/grub.d/00_header ###
- set pager=1
- if [ -f ${config_directory}/grubenv ]; then
- load_env -f ${config_directory}/grubenv
- elif [ -s $prefix/grubenv ]; then
- load_env
- fi
- if [ "${next_entry}" ] ; then
- set default="${next_entry}"
- set next_entry=
- save_env next_entry
- set boot_once=true
- else
- set default="${saved_entry}"
- fi
- if [ x"${feature_menuentry_id}" = xy ]; then
- menuentry_id_option="--id"
- else
- menuentry_id_option=""
- fi
- export menuentry_id_option
- if [ "${prev_saved_entry}" ]; then
- set saved_entry="${prev_saved_entry}"
- save_env saved_entry
- set prev_saved_entry=
- save_env prev_saved_entry
- set boot_once=true
- fi
- function savedefault {
- if [ -z "${boot_once}" ]; then
- saved_entry="${chosen}"
- save_env saved_entry
- fi
- }
- function load_video {
- if [ x$feature_all_video_module = xy ]; then
- insmod all_video
- else
- insmod efi_gop
- insmod efi_uga
- insmod ieee1275_fb
- insmod vbe
- insmod vga
- insmod video_bochs
- insmod video_cirrus
- fi
- }
- terminal_output console
- if [ x$feature_timeout_style = xy ] ; then
- set timeout_style=menu
- set timeout=5
- # Fallback normal timeout code in case the timeout_style feature is
- # unavailable.
- else
- set timeout=5
- fi
- ### END /etc/grub.d/00_header ###
- ### BEGIN /etc/grub.d/01_users ###
- if [ -f ${prefix}/user.cfg ]; then
- source ${prefix}/user.cfg
- if [ -n "${GRUB2_PASSWORD}" ]; then
- set superusers="root"
- export superusers
- password_pbkdf2 root ${GRUB2_PASSWORD}
- fi
- fi
- ### END /etc/grub.d/01_users ###
- ### BEGIN /etc/grub.d/08_fallback_counting ###
- insmod increment
- # Check if boot_counter exists and boot_success=0 to activate this behaviour.
- if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then
- # if countdown has ended, choose to boot rollback deployment,
- # i.e. default=1 on OSTree-based systems.
- if [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then
- set default=1
- set boot_counter=-1
- # otherwise decrement boot_counter
- else
- decrement boot_counter
- fi
- save_env boot_counter
- fi
- ### END /etc/grub.d/08_fallback_counting ###
- ### BEGIN /etc/grub.d/10_linux ###
- insmod part_msdos
- insmod ext2
- set root='hd0,msdos5'
- if [ x$feature_platform_search_hint = xy ]; then
- search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 7d689356-39ef-4a00-9f8e-99ffadf7fe23
- else
- search --no-floppy --fs-uuid --set=root 7d689356-39ef-4a00-9f8e-99ffadf7fe23
- fi
- insmod part_msdos
- insmod fat
- set boot='hd0,msdos3'
- if [ x$feature_platform_search_hint = xy ]; then
- search --no-floppy --fs-uuid --set=boot --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6523-C129
- else
- search --no-floppy --fs-uuid --set=boot 6523-C129
- fi
- # This section was generated by a script. Do not modify the generated file - all changes
- # will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files.
- #
- # The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and
- # populates the boot menu. Please refer to the Boot Loader Specification documentation
- # for the files format: https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/.
- # The kernelopts variable should be defined in the grubenv file. But to ensure that menu
- # entries populated from BootLoaderSpec files that use this variable work correctly even
- # without a grubenv file, define a fallback kernelopts variable if this has not been set.
- #
- # The kernelopts variable in the grubenv file can be modified using the grubby tool or by
- # executing the grub2-mkconfig tool. For the latter, the values of the GRUB_CMDLINE_LINUX
- # and GRUB_CMDLINE_LINUX_DEFAULT options from /etc/default/grub file are used to set both
- # the kernelopts variable in the grubenv file and the fallback kernelopts variable.
- if [ -z "${kernelopts}" ]; then
- set kernelopts="root=UUID=9dd8d7f9-4f20-48d7-888b-2a96032bd538 ro resume=UUID=af36a585-bc2d-49d3-bc58-4ee00b29a32d rhgb quiet "
- fi
- insmod blscfg
- blscfg
- ### END /etc/grub.d/10_linux ###
- ### BEGIN /etc/grub.d/10_reset_boot_success ###
- # Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
- if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
- set menu_hide_ok=1
- else
- set menu_hide_ok=0
- fi
- # Reset boot_indeterminate after a successful boot
- if [ "${boot_success}" = "1" ] ; then
- set boot_indeterminate=0
- # Avoid boot_indeterminate causing the menu to be hidden more then once
- elif [ "${boot_indeterminate}" = "1" ]; then
- set boot_indeterminate=2
- fi
- # Reset boot_success for current boot
- set boot_success=0
- save_env boot_success boot_indeterminate
- ### END /etc/grub.d/10_reset_boot_success ###
- ### BEGIN /etc/grub.d/12_menu_auto_hide ###
- if [ x$feature_timeout_style = xy ] ; then
- if [ "${menu_show_once}" ]; then
- unset menu_show_once
- save_env menu_show_once
- set timeout_style=menu
- set timeout=60
- elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then
- set orig_timeout_style=${timeout_style}
- set orig_timeout=${timeout}
- if [ "${fastboot}" = "1" ]; then
- # timeout_style=menu + timeout=0 avoids the countdown code keypress check
- set timeout_style=menu
- set timeout=0
- else
- set timeout_style=hidden
- set timeout=1
- fi
- fi
- fi
- ### END /etc/grub.d/12_menu_auto_hide ###
- ### BEGIN /etc/grub.d/14_menu_show_once ###
- if [ x$feature_timeout_style = xy ]; then
- if [ "${menu_show_once_timeout}" ]; then
- set timeout_style=menu
- set timeout="${menu_show_once_timeout}"
- unset menu_show_once_timeout
- save_env menu_show_once_timeout
- fi
- fi
- ### END /etc/grub.d/14_menu_show_once ###
- ### BEGIN /etc/grub.d/20_linux_xen ###
- ### END /etc/grub.d/20_linux_xen ###
- ### BEGIN /etc/grub.d/20_ppc_terminfo ###
- ### END /etc/grub.d/20_ppc_terminfo ###
- ### BEGIN /etc/grub.d/30_os-prober ###
- ### END /etc/grub.d/30_os-prober ###
- ### BEGIN /etc/grub.d/30_uefi-firmware ###
- menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
- fwsetup
- }
- ### END /etc/grub.d/30_uefi-firmware ###
- ### BEGIN /etc/grub.d/40_custom ###
- # This file provides an easy way to add custom menu entries. Simply type the
- # menu entries you want to add after this comment. Be careful not to change
- # the 'exec tail' line above.
- menuentry "Windows 10" {
- insmod ntfs
- set root='(hd0,1)'
- search --no-floppy --fs-uuid --set E944B0F944AE97B
- chainloader +1
- }
- ### END /etc/grub.d/40_custom ###
- ### BEGIN /etc/grub.d/41_custom ###
- if [ -f ${config_directory}/custom.cfg ]; then
- source ${config_directory}/custom.cfg
- elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
- source $prefix/custom.cfg
- fi
- ### END /etc/grub.d/41_custom ###
- # sudo fdisk -l
- Диск /dev/sda: 931,51 GiB, 1000204886016 байт, 1953525168 секторов
- Disk model: WDC WD10EZEX-08W
- Единицы: секторов по 1 * 512 = 512 байт
- Размер сектора (логический/физический): 512 байт / 4096 байт
- Размер I/O (минимальный/оптимальный): 4096 байт / 4096 байт
- Тип метки диска: dos
- Идентификатор диска: 0x6a413455
- Устр-во Загрузочный начало Конец Секторы Размер Идентификатор Тип
- /dev/sda1 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT
- /dev/sda2 1026048 1785747287 1784721240 851G 7 HPFS/NTFS/exFAT
- /dev/sda3 * 1785747456 1786771455 1024000 500M 6 FAT16
- /dev/sda4 1786771456 1953523711 166752256 79,5G 5 Расширенный
- /dev/sda5 1786773504 1788870655 2097152 1G 83 Linux
- /dev/sda6 1788872704 1914701823 125829120 60G 83 Linux
- /dev/sda7 1914703872 1929383935 14680064 7G 83 Linux
- /dev/sda8 1929385984 1933580287 4194304 2G 82 Linux своп / Solaris
- Диск /dev/sdb: 465,76 GiB, 500106780160 байт, 976771055 секторов
- Disk model: WDC WD5000AACS-0
- Единицы: секторов по 1 * 512 = 512 байт
- Размер сектора (логический/физический): 512 байт / 512 байт
- Размер I/O (минимальный/оптимальный): 512 байт / 512 байт
- Тип метки диска: dos
- Идентификатор диска: 0x6d55c338
- Устр-во Загрузочный начало Конец Секторы Размер Идентификатор Тип
- /dev/sdb1 2048 975785983 975783936 465,3G 7 HPFS/NTFS/exFAT
- /dev/sdb2 975788032 976769023 980992 479M 7 HPFS/NTFS/exFAT
- Диск /dev/zram0: 7,72 GiB, 8293187584 байт, 2024704 секторов
- Единицы: секторов по 1 * 4096 = 4096 байт
- Размер сектора (логический/физический): 4096 байт / 4096 байт
- Размер I/O (минимальный/оптимальный): 4096 байт / 4096 байт
- # sudo blkid -c /dev/null
- /dev/sda1: LABEL="M-PM-^WM-PM-0M-QM-^@M-PM-5M-PM-7M-PM-5M-QM-^@M-PM-2M-PM-8M-QM-^@M-PM->M-PM-2M-PM-0M-PM-=M-PM-> M-QM-^AM-PM-8M-QM-^AM-QM-^BM-PM-5M-PM-<M-PM->M-PM-9" BLOCK_SIZE="512" UUID="94BA47D1BA47AE94" TYPE="ntfs" PARTUUID="6a413455-01"
- /dev/sda2: BLOCK_SIZE="512" UUID="9E944B0F944AE97B" TYPE="ntfs" PARTUUID="6a413455-02"
- /dev/sda3: SEC_TYPE="msdos" UUID="6523-C129" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="6a413455-03"
- /dev/sda5: UUID="7d689356-39ef-4a00-9f8e-99ffadf7fe23" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6a413455-05"
- /dev/sda6: UUID="9dd8d7f9-4f20-48d7-888b-2a96032bd538" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6a413455-06"
- /dev/sda7: UUID="5d9038b3-5d3f-48be-81b7-93c5e767c42c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6a413455-07"
- /dev/sda8: UUID="af36a585-bc2d-49d3-bc58-4ee00b29a32d" TYPE="swap" PARTUUID="6a413455-08"
- /dev/sdb1: LABEL="M-PM-^]M-PM->M-PM-2M-QM-^KM-PM-9 M-QM-^BM-PM->M-PM-<" BLOCK_SIZE="512" UUID="2AE6D918E6D8E4DB" TYPE="ntfs" PARTUUID="6d55c338-01"
- /dev/sdb2: BLOCK_SIZE="512" UUID="066C03E66C03CF7D" TYPE="ntfs" PARTUUID="6d55c338-02"
- /dev/zram0: LABEL="zram0" UUID="bc6eccdb-218b-4512-a7f5-e7e282f1808c" TYPE="swap"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement