Advertisement
den777

Untitled

Jun 13th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.33 KB | None | 0 0
  1. # uname -a
  2. 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
  3. # lsb_release -a
  4. LSB Version: :core-4.1-amd64:core-4.1-noarch
  5. Distributor ID: Fedora
  6. Description: Fedora release 34 (Thirty Four)
  7. Release: 34
  8. Codename: ThirtyFour
  9. # cat /etc/redhat-release
  10. Fedora release 34 (Thirty Four)
  11. # lsblk
  12. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  13. sda 8:0 0 931,5G 0 disk
  14. ├─sda1 8:1 0 500M 0 part
  15. ├─sda2 8:2 0 851G 0 part
  16. ├─sda3 8:3 0 500M 0 part /boot/efi
  17. ├─sda4 8:4 0 1K 0 part
  18. ├─sda5 8:5 0 1G 0 part /boot
  19. ├─sda6 8:6 0 60G 0 part /
  20. ├─sda7 8:7 0 7G 0 part /home
  21. └─sda8 8:8 0 2G 0 part [SWAP]
  22. sdb 8:16 0 465,8G 0 disk
  23. ├─sdb1 8:17 0 465,3G 0 part
  24. └─sdb2 8:18 0 479M 0 part
  25. sr0 11:0 1 1024M 0 rom
  26. zram0 252:0 0 7,7G 0 disk [SWAP]
  27. # df -hT
  28. Файловая система Тип Размер Использовано Дост Использовано% Cмонтировано в
  29. devtmpfs devtmpfs 3,9G 0 3,9G 0% /dev
  30. tmpfs tmpfs 3,9G 488K 3,9G 1% /dev/shm
  31. tmpfs tmpfs 1,6G 2,0M 1,6G 1% /run
  32. /dev/sda6 ext4 59G 6,5G 50G 12% /
  33. tmpfs tmpfs 3,9G 104K 3,9G 1% /tmp
  34. /dev/sda5 ext4 976M 185M 724M 21% /boot
  35. /dev/sda7 ext4 6,9G 215M 6,3G 4% /home
  36. /dev/sda3 vfat 500M 36M 465M 8% /boot/efi
  37. tmpfs tmpfs 791M 116K 791M 1% /run/user/1000
  38. # cat /etc/fstab
  39.  
  40. #
  41. # /etc/fstab
  42. # Created by anaconda on Fri Jun 11 18:43:15 2021
  43. #
  44. # Accessible filesystems, by reference, are maintained under '/dev/disk/'.
  45. # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
  46. #
  47. # After editing this file, run 'systemctl daemon-reload' to update systemd
  48. # units generated from this file.
  49. #
  50. UUID=9dd8d7f9-4f20-48d7-888b-2a96032bd538 / ext4 defaults 1 1
  51. UUID=7d689356-39ef-4a00-9f8e-99ffadf7fe23 /boot ext4 defaults 1 2
  52. UUID=6523-C129 /boot/efi vfat umask=0077,shortname=winnt 0 2
  53. UUID=5d9038b3-5d3f-48be-81b7-93c5e767c42c /home ext4 defaults 1 2
  54. UUID=af36a585-bc2d-49d3-bc58-4ee00b29a32d none swap defaults 0 0
  55. # ls -la /sys/firmware/efi
  56. итого 0
  57. drwxr-xr-x. 6 root root 0 июн 13 2021 .
  58. drwxr-xr-x. 6 root root 0 июн 13 2021 ..
  59. -r--r--r--. 1 root root 4096 июн 13 15:13 config_table
  60. drwxr-xr-x. 2 root root 0 июн 13 2021 efivars
  61. drwxr-xr-x. 3 root root 0 июн 13 12:22 esrt
  62. -r--r--r--. 1 root root 4096 июн 13 15:13 fw_platform_size
  63. -r--r--r--. 1 root root 4096 июн 13 15:13 fw_vendor
  64. drwxr-xr-x. 2 root root 0 июн 13 15:13 mok-variables
  65. -r--r--r--. 1 root root 4096 июн 13 15:13 runtime
  66. drwxr-xr-x. 15 root root 0 июн 13 15:13 runtime-map
  67. -r--------. 1 root root 4096 июн 13 15:13 systab
  68. # cat /etc/default/grub
  69. GRUB_TIMEOUT=5
  70. GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
  71. GRUB_DEFAULT=saved
  72. GRUB_DISABLE_SUBMENU=true
  73. GRUB_TERMINAL_OUTPUT="console"
  74. GRUB_CMDLINE_LINUX="resume=UUID=af36a585-bc2d-49d3-bc58-4ee00b29a32d rhgb quiet"
  75. GRUB_DISABLE_RECOVERY="true"
  76. GRUB_ENABLE_BLSCFG=true
  77. # find /boot -iname '*grub*.cfg'
  78. /boot/efi/EFI/fedora/grub.cfg
  79. /boot/grub2/grub.cfg
  80. # find /boot -iname '*grub*.cfg' -exec cat {} \;
  81. search --no-floppy --fs-uuid --set=dev 7d689356-39ef-4a00-9f8e-99ffadf7fe23
  82. set prefix=($dev)/grub2
  83.  
  84. export $prefix
  85. configfile $prefix/grub.cfg
  86. #
  87. # DO NOT EDIT THIS FILE
  88. #
  89. # It is automatically generated by grub2-mkconfig using templates
  90. # from /etc/grub.d and settings from /etc/default/grub
  91. #
  92.  
  93. ### BEGIN /etc/grub.d/00_header ###
  94. set pager=1
  95.  
  96. if [ -f ${config_directory}/grubenv ]; then
  97. load_env -f ${config_directory}/grubenv
  98. elif [ -s $prefix/grubenv ]; then
  99. load_env
  100. fi
  101. if [ "${next_entry}" ] ; then
  102. set default="${next_entry}"
  103. set next_entry=
  104. save_env next_entry
  105. set boot_once=true
  106. else
  107. set default="${saved_entry}"
  108. fi
  109.  
  110. if [ x"${feature_menuentry_id}" = xy ]; then
  111. menuentry_id_option="--id"
  112. else
  113. menuentry_id_option=""
  114. fi
  115.  
  116. export menuentry_id_option
  117.  
  118. if [ "${prev_saved_entry}" ]; then
  119. set saved_entry="${prev_saved_entry}"
  120. save_env saved_entry
  121. set prev_saved_entry=
  122. save_env prev_saved_entry
  123. set boot_once=true
  124. fi
  125.  
  126. function savedefault {
  127. if [ -z "${boot_once}" ]; then
  128. saved_entry="${chosen}"
  129. save_env saved_entry
  130. fi
  131. }
  132.  
  133. function load_video {
  134. if [ x$feature_all_video_module = xy ]; then
  135. insmod all_video
  136. else
  137. insmod efi_gop
  138. insmod efi_uga
  139. insmod ieee1275_fb
  140. insmod vbe
  141. insmod vga
  142. insmod video_bochs
  143. insmod video_cirrus
  144. fi
  145. }
  146.  
  147. terminal_output console
  148. if [ x$feature_timeout_style = xy ] ; then
  149. set timeout_style=menu
  150. set timeout=5
  151. # Fallback normal timeout code in case the timeout_style feature is
  152. # unavailable.
  153. else
  154. set timeout=5
  155. fi
  156. ### END /etc/grub.d/00_header ###
  157.  
  158. ### BEGIN /etc/grub.d/01_users ###
  159. if [ -f ${prefix}/user.cfg ]; then
  160. source ${prefix}/user.cfg
  161. if [ -n "${GRUB2_PASSWORD}" ]; then
  162. set superusers="root"
  163. export superusers
  164. password_pbkdf2 root ${GRUB2_PASSWORD}
  165. fi
  166. fi
  167. ### END /etc/grub.d/01_users ###
  168.  
  169. ### BEGIN /etc/grub.d/08_fallback_counting ###
  170. insmod increment
  171. # Check if boot_counter exists and boot_success=0 to activate this behaviour.
  172. if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then
  173. # if countdown has ended, choose to boot rollback deployment,
  174. # i.e. default=1 on OSTree-based systems.
  175. if [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then
  176. set default=1
  177. set boot_counter=-1
  178. # otherwise decrement boot_counter
  179. else
  180. decrement boot_counter
  181. fi
  182. save_env boot_counter
  183. fi
  184. ### END /etc/grub.d/08_fallback_counting ###
  185.  
  186. ### BEGIN /etc/grub.d/10_linux ###
  187. insmod part_msdos
  188. insmod ext2
  189. set root='hd0,msdos5'
  190. if [ x$feature_platform_search_hint = xy ]; then
  191. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 7d689356-39ef-4a00-9f8e-99ffadf7fe23
  192. else
  193. search --no-floppy --fs-uuid --set=root 7d689356-39ef-4a00-9f8e-99ffadf7fe23
  194. fi
  195. insmod part_msdos
  196. insmod fat
  197. set boot='hd0,msdos3'
  198. if [ x$feature_platform_search_hint = xy ]; then
  199. search --no-floppy --fs-uuid --set=boot --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6523-C129
  200. else
  201. search --no-floppy --fs-uuid --set=boot 6523-C129
  202. fi
  203.  
  204. # This section was generated by a script. Do not modify the generated file - all changes
  205. # will be lost the next time file is regenerated. Instead edit the BootLoaderSpec files.
  206. #
  207. # The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and
  208. # populates the boot menu. Please refer to the Boot Loader Specification documentation
  209. # for the files format: https://www.freedesktop.org/wiki/Specifications/BootLoaderSpec/.
  210.  
  211. # The kernelopts variable should be defined in the grubenv file. But to ensure that menu
  212. # entries populated from BootLoaderSpec files that use this variable work correctly even
  213. # without a grubenv file, define a fallback kernelopts variable if this has not been set.
  214. #
  215. # The kernelopts variable in the grubenv file can be modified using the grubby tool or by
  216. # executing the grub2-mkconfig tool. For the latter, the values of the GRUB_CMDLINE_LINUX
  217. # and GRUB_CMDLINE_LINUX_DEFAULT options from /etc/default/grub file are used to set both
  218. # the kernelopts variable in the grubenv file and the fallback kernelopts variable.
  219. if [ -z "${kernelopts}" ]; then
  220. set kernelopts="root=UUID=9dd8d7f9-4f20-48d7-888b-2a96032bd538 ro resume=UUID=af36a585-bc2d-49d3-bc58-4ee00b29a32d rhgb quiet "
  221. fi
  222.  
  223. insmod blscfg
  224. blscfg
  225. ### END /etc/grub.d/10_linux ###
  226.  
  227. ### BEGIN /etc/grub.d/10_reset_boot_success ###
  228. # Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry
  229. if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
  230. set menu_hide_ok=1
  231. else
  232. set menu_hide_ok=0
  233. fi
  234. # Reset boot_indeterminate after a successful boot
  235. if [ "${boot_success}" = "1" ] ; then
  236. set boot_indeterminate=0
  237. # Avoid boot_indeterminate causing the menu to be hidden more then once
  238. elif [ "${boot_indeterminate}" = "1" ]; then
  239. set boot_indeterminate=2
  240. fi
  241. # Reset boot_success for current boot
  242. set boot_success=0
  243. save_env boot_success boot_indeterminate
  244. ### END /etc/grub.d/10_reset_boot_success ###
  245.  
  246. ### BEGIN /etc/grub.d/12_menu_auto_hide ###
  247. if [ x$feature_timeout_style = xy ] ; then
  248. if [ "${menu_show_once}" ]; then
  249. unset menu_show_once
  250. save_env menu_show_once
  251. set timeout_style=menu
  252. set timeout=60
  253. elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then
  254. set orig_timeout_style=${timeout_style}
  255. set orig_timeout=${timeout}
  256. if [ "${fastboot}" = "1" ]; then
  257. # timeout_style=menu + timeout=0 avoids the countdown code keypress check
  258. set timeout_style=menu
  259. set timeout=0
  260. else
  261. set timeout_style=hidden
  262. set timeout=1
  263. fi
  264. fi
  265. fi
  266. ### END /etc/grub.d/12_menu_auto_hide ###
  267.  
  268. ### BEGIN /etc/grub.d/14_menu_show_once ###
  269. if [ x$feature_timeout_style = xy ]; then
  270. if [ "${menu_show_once_timeout}" ]; then
  271. set timeout_style=menu
  272. set timeout="${menu_show_once_timeout}"
  273. unset menu_show_once_timeout
  274. save_env menu_show_once_timeout
  275. fi
  276. fi
  277. ### END /etc/grub.d/14_menu_show_once ###
  278.  
  279. ### BEGIN /etc/grub.d/20_linux_xen ###
  280.  
  281. ### END /etc/grub.d/20_linux_xen ###
  282.  
  283. ### BEGIN /etc/grub.d/20_ppc_terminfo ###
  284. ### END /etc/grub.d/20_ppc_terminfo ###
  285.  
  286. ### BEGIN /etc/grub.d/30_os-prober ###
  287. ### END /etc/grub.d/30_os-prober ###
  288.  
  289. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  290. menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
  291. fwsetup
  292. }
  293. ### END /etc/grub.d/30_uefi-firmware ###
  294.  
  295. ### BEGIN /etc/grub.d/40_custom ###
  296. # This file provides an easy way to add custom menu entries. Simply type the
  297. # menu entries you want to add after this comment. Be careful not to change
  298. # the 'exec tail' line above.
  299.  
  300. menuentry "Windows 10" {
  301. insmod ntfs
  302. set root='(hd0,1)'
  303. search --no-floppy --fs-uuid --set E944B0F944AE97B
  304. chainloader +1
  305. }
  306. ### END /etc/grub.d/40_custom ###
  307.  
  308. ### BEGIN /etc/grub.d/41_custom ###
  309. if [ -f ${config_directory}/custom.cfg ]; then
  310. source ${config_directory}/custom.cfg
  311. elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
  312. source $prefix/custom.cfg
  313. fi
  314. ### END /etc/grub.d/41_custom ###
  315. # sudo fdisk -l
  316. Диск /dev/sda: 931,51 GiB, 1000204886016 байт, 1953525168 секторов
  317. Disk model: WDC WD10EZEX-08W
  318. Единицы: секторов по 1 * 512 = 512 байт
  319. Размер сектора (логический/физический): 512 байт / 4096 байт
  320. Размер I/O (минимальный/оптимальный): 4096 байт / 4096 байт
  321. Тип метки диска: dos
  322. Идентификатор диска: 0x6a413455
  323.  
  324. Устр-во Загрузочный начало Конец Секторы Размер Идентификатор Тип
  325. /dev/sda1 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT
  326. /dev/sda2 1026048 1785747287 1784721240 851G 7 HPFS/NTFS/exFAT
  327. /dev/sda3 * 1785747456 1786771455 1024000 500M 6 FAT16
  328. /dev/sda4 1786771456 1953523711 166752256 79,5G 5 Расширенный
  329. /dev/sda5 1786773504 1788870655 2097152 1G 83 Linux
  330. /dev/sda6 1788872704 1914701823 125829120 60G 83 Linux
  331. /dev/sda7 1914703872 1929383935 14680064 7G 83 Linux
  332. /dev/sda8 1929385984 1933580287 4194304 2G 82 Linux своп / Solaris
  333.  
  334.  
  335. Диск /dev/sdb: 465,76 GiB, 500106780160 байт, 976771055 секторов
  336. Disk model: WDC WD5000AACS-0
  337. Единицы: секторов по 1 * 512 = 512 байт
  338. Размер сектора (логический/физический): 512 байт / 512 байт
  339. Размер I/O (минимальный/оптимальный): 512 байт / 512 байт
  340. Тип метки диска: dos
  341. Идентификатор диска: 0x6d55c338
  342.  
  343. Устр-во Загрузочный начало Конец Секторы Размер Идентификатор Тип
  344. /dev/sdb1 2048 975785983 975783936 465,3G 7 HPFS/NTFS/exFAT
  345. /dev/sdb2 975788032 976769023 980992 479M 7 HPFS/NTFS/exFAT
  346.  
  347.  
  348. Диск /dev/zram0: 7,72 GiB, 8293187584 байт, 2024704 секторов
  349. Единицы: секторов по 1 * 4096 = 4096 байт
  350. Размер сектора (логический/физический): 4096 байт / 4096 байт
  351. Размер I/O (минимальный/оптимальный): 4096 байт / 4096 байт
  352. # sudo blkid -c /dev/null
  353. /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"
  354. /dev/sda2: BLOCK_SIZE="512" UUID="9E944B0F944AE97B" TYPE="ntfs" PARTUUID="6a413455-02"
  355. /dev/sda3: SEC_TYPE="msdos" UUID="6523-C129" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="6a413455-03"
  356. /dev/sda5: UUID="7d689356-39ef-4a00-9f8e-99ffadf7fe23" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6a413455-05"
  357. /dev/sda6: UUID="9dd8d7f9-4f20-48d7-888b-2a96032bd538" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6a413455-06"
  358. /dev/sda7: UUID="5d9038b3-5d3f-48be-81b7-93c5e767c42c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6a413455-07"
  359. /dev/sda8: UUID="af36a585-bc2d-49d3-bc58-4ee00b29a32d" TYPE="swap" PARTUUID="6a413455-08"
  360. /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"
  361. /dev/sdb2: BLOCK_SIZE="512" UUID="066C03E66C03CF7D" TYPE="ntfs" PARTUUID="6d55c338-02"
  362. /dev/zram0: LABEL="zram0" UUID="bc6eccdb-218b-4512-a7f5-e7e282f1808c" TYPE="swap"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement