Advertisement
dander61

DebianNotes3.txt

Dec 7th, 2024
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.95 KB | None | 0 0
  1. user@debian:~$ sudo -s
  2. root@debian:/home/user# sgdisk -g /dev/sda
  3.  
  4. ***************************************************************
  5. Found invalid GPT and valid MBR; converting MBR to GPT format
  6. in memory.
  7. ***************************************************************
  8.  
  9. The operation has completed successfully.
  10. root@debian:/home/user# apt update
  11. Get:1 file:/run/live/medium bookworm InRelease
  12. Ign:1 file:/run/live/medium bookworm InRelease
  13. Get:2 file:/run/live/medium bookworm Release [4,535 B]
  14. Get:2 file:/run/live/medium bookworm Release [4,535 B]
  15. Get:3 file:/run/live/medium bookworm Release.gpg
  16. Ign:3 file:/run/live/medium bookworm Release.gpg
  17. Hit:4 http://deb.debian.org/debian bookworm InRelease
  18. Reading package lists... Done
  19. Building dependency tree... Done
  20. Reading state information... Done
  21. 294 packages can be upgraded. Run 'apt list --upgradable' to see them.
  22. root@debian:/home/user# apt install gparted dosfstools mtools
  23. Reading package lists... Done
  24. Building dependency tree... Done
  25. Reading state information... Done
  26. dosfstools is already the newest version (4.2-1).
  27. dosfstools set to manually installed.
  28. The following additional packages will be installed:
  29. gparted-common policykit-1 polkitd-pkla
  30. Suggested packages:
  31. dmraid gpart jfsutils kpartx reiser4progs reiserfsprogs udftools floppyd
  32. The following NEW packages will be installed:
  33. gparted gparted-common mtools policykit-1 polkitd-pkla
  34. 0 upgraded, 5 newly installed, 0 to remove and 294 not upgraded.
  35. Need to get 2,788 kB of archives.
  36. After this operation, 9,285 kB of additional disk space will be used.
  37. Do you want to continue? [Y/n] y
  38. Get:1 http://deb.debian.org/debian bookworm/main amd64 gparted-common all 1.3.1-1 [1,711 kB]
  39. Get:2 http://deb.debian.org/debian bookworm/main amd64 policykit-1 amd64 122-3 [11.8 kB]
  40. Get:3 http://deb.debian.org/debian bookworm/main amd64 gparted amd64 1.3.1-1 [831 kB]
  41. Get:4 http://deb.debian.org/debian bookworm/main amd64 mtools amd64 4.0.33-1+really4.0.32-1 [202 kB]
  42. Get:5 http://deb.debian.org/debian bookworm/main amd64 polkitd-pkla amd64 122-3 [31.9 kB]
  43. Fetched 2,788 kB in 0s (17.2 MB/s)
  44. Selecting previously unselected package gparted-common.
  45. (Reading database ... 281182 files and directories currently installed.)
  46. Preparing to unpack .../gparted-common_1.3.1-1_all.deb ...
  47. Unpacking gparted-common (1.3.1-1) ...
  48. Selecting previously unselected package policykit-1.
  49. Preparing to unpack .../policykit-1_122-3_amd64.deb ...
  50. Unpacking policykit-1 (122-3) ...
  51. Selecting previously unselected package gparted.
  52. Preparing to unpack .../gparted_1.3.1-1_amd64.deb ...
  53. Unpacking gparted (1.3.1-1) ...
  54. Selecting previously unselected package mtools.
  55. Preparing to unpack .../mtools_4.0.33-1+really4.0.32-1_amd64.deb ...
  56. Unpacking mtools (4.0.33-1+really4.0.32-1) ...
  57. Selecting previously unselected package polkitd-pkla.
  58. Preparing to unpack .../polkitd-pkla_122-3_amd64.deb ...
  59. Unpacking polkitd-pkla (122-3) ...
  60. Setting up polkitd-pkla (122-3) ...
  61. Setting up mtools (4.0.33-1+really4.0.32-1) ...
  62. Setting up gparted-common (1.3.1-1) ...
  63. Setting up policykit-1 (122-3) ...
  64. Setting up gparted (1.3.1-1) ...
  65. Processing triggers for mailcap (3.70+nmu1) ...
  66. Processing triggers for desktop-file-utils (0.26-1) ...
  67. Processing triggers for hicolor-icon-theme (0.17-2) ...
  68. Processing triggers for gnome-menus (3.36.0-1.1) ...
  69. Processing triggers for man-db (2.11.2-2) ...
  70. root@debian:/home/user# gparted
  71. GParted 1.3.1
  72. configuration --enable-libparted-dmraid --enable-online-resize
  73. libparted 3.5
  74. root@debian:/home/user# sgdisk -s /dev/sda
  75. The operation has completed successfully.
  76. root@debian:/home/user# mount /dev/sda1 /mnt
  77. root@debian:/home/user# for i in /dev /dev/pts /proc /sys /sys/firmware/efi/efivars /run; do mount -B $i /mnt$i; done
  78. root@debian:/home/user# chroot /mnt
  79. root@debian:/# blkid -s UUID /dev/sda3
  80. /dev/sda3: UUID="4945-F71D"
  81. root@debian:/# mkdir -p /boot/efi
  82. root@debian:/# mount /dev/sda3 /boot/efi
  83. root@debian:/# echo >>/etc/fstab
  84. root@debian:/# echo UUID=4945-F71D /boot/efi vfat umask=0077 0 1 >>/etc/fstab
  85. root@debian:/# grub-install /dev/sda
  86. Installing for i386-pc platform.
  87. Installation finished. No error reported.
  88. root@debian:/# apt reinstall grub-efi
  89. Reading package lists... Done
  90. Building dependency tree... Done
  91. Reading state information... Done
  92. The following package was automatically installed and is no longer required:
  93. grub-pc-bin
  94. Use 'apt autoremove' to remove it.
  95. The following additional packages will be installed:
  96. efibootmgr grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed mokutil
  97. shim-helpers-amd64-signed shim-signed shim-signed-common shim-unsigned
  98. The following packages will be REMOVED:
  99. grub-pc
  100. The following NEW packages will be installed:
  101. efibootmgr grub-efi grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed
  102. mokutil shim-helpers-amd64-signed shim-signed shim-signed-common
  103. shim-unsigned
  104. 0 upgraded, 10 newly installed, 1 to remove and 295 not upgraded.
  105. Need to get 4,020 kB of archives.
  106. After this operation, 38.2 MB of additional disk space will be used.
  107. Do you want to continue? [Y/n] y
  108. Get:1 http://deb.debian.org/debian bookworm/main amd64 efibootmgr amd64 17-2 [27.6 kB]
  109. Get:2 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64-bin amd64 2.06-13+deb12u1 [1,574 kB]
  110. Get:3 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64 amd64 2.06-13+deb12u1 [45.7 kB]
  111. Get:4 http://deb.debian.org/debian bookworm/main amd64 grub-efi amd64 2.06-13+deb12u1 [2,388 B]
  112. Get:5 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64-signed amd64 1+2.06+13+deb12u1 [1,259 kB]
  113. Get:6 http://deb.debian.org/debian bookworm/main amd64 mokutil amd64 0.6.0-2 [26.9 kB]
  114. Get:7 http://deb.debian.org/debian bookworm/main amd64 shim-unsigned amd64 15.8-1~deb12u1 [440 kB]
  115. Get:8 http://deb.debian.org/debian bookworm/main amd64 shim-helpers-amd64-signed amd64 1+15.8+1~deb12u1 [301 kB]
  116. Get:9 http://deb.debian.org/debian bookworm/main amd64 shim-signed-common all 1.44~1+deb12u1+15.8-1~deb12u1 [13.6 kB]
  117. Get:10 http://deb.debian.org/debian bookworm/main amd64 shim-signed amd64 1.44~1+deb12u1+15.8-1~deb12u1 [329 kB]
  118. Fetched 4,020 kB in 5s (746 kB/s)
  119. Preconfiguring packages ...
  120. (Reading database ... 275001 files and directories currently installed.)
  121. Removing grub-pc (2.06-13+deb12u1) ...
  122. Selecting previously unselected package efibootmgr.
  123. (Reading database ... 274990 files and directories currently installed.)
  124. Preparing to unpack .../0-efibootmgr_17-2_amd64.deb ...
  125. Unpacking efibootmgr (17-2) ...
  126. Selecting previously unselected package grub-efi-amd64-bin.
  127. Preparing to unpack .../1-grub-efi-amd64-bin_2.06-13+deb12u1_amd64.deb ...
  128. Unpacking grub-efi-amd64-bin (2.06-13+deb12u1) ...
  129. Selecting previously unselected package grub-efi-amd64.
  130. Preparing to unpack .../2-grub-efi-amd64_2.06-13+deb12u1_amd64.deb ...
  131. Unpacking grub-efi-amd64 (2.06-13+deb12u1) ...
  132. Selecting previously unselected package grub-efi.
  133. Preparing to unpack .../3-grub-efi_2.06-13+deb12u1_amd64.deb ...
  134. Unpacking grub-efi (2.06-13+deb12u1) ...
  135. Selecting previously unselected package grub-efi-amd64-signed.
  136. Preparing to unpack .../4-grub-efi-amd64-signed_1+2.06+13+deb12u1_amd64.deb ...
  137. Unpacking grub-efi-amd64-signed (1+2.06+13+deb12u1) ...
  138. Selecting previously unselected package mokutil.
  139. Preparing to unpack .../5-mokutil_0.6.0-2_amd64.deb ...
  140. Unpacking mokutil (0.6.0-2) ...
  141. Selecting previously unselected package shim-unsigned:amd64.
  142. Preparing to unpack .../6-shim-unsigned_15.8-1~deb12u1_amd64.deb ...
  143. Unpacking shim-unsigned:amd64 (15.8-1~deb12u1) ...
  144. Selecting previously unselected package shim-helpers-amd64-signed.
  145. Preparing to unpack .../7-shim-helpers-amd64-signed_1+15.8+1~deb12u1_amd64.deb .
  146. ..
  147. Unpacking shim-helpers-amd64-signed (1+15.8+1~deb12u1) ...
  148. Selecting previously unselected package shim-signed-common.
  149. Preparing to unpack .../8-shim-signed-common_1.44~1+deb12u1+15.8-1~deb12u1_all.d
  150. eb ...
  151. Unpacking shim-signed-common (1.44~1+deb12u1+15.8-1~deb12u1) ...
  152. Selecting previously unselected package shim-signed:amd64.
  153. Preparing to unpack .../9-shim-signed_1.44~1+deb12u1+15.8-1~deb12u1_amd64.deb ..
  154. .
  155. Unpacking shim-signed:amd64 (1.44~1+deb12u1+15.8-1~deb12u1) ...
  156. Setting up efibootmgr (17-2) ...
  157. Setting up mokutil (0.6.0-2) ...
  158. Setting up grub-efi-amd64-signed (1+2.06+13+deb12u1) ...
  159. Setting up shim-signed-common (1.44~1+deb12u1+15.8-1~deb12u1) ...
  160. No DKMS packages installed: not changing Secure Boot validation state.
  161. Setting up grub-efi-amd64-bin (2.06-13+deb12u1) ...
  162. Setting up shim-unsigned:amd64 (15.8-1~deb12u1) ...
  163. Setting up grub-efi-amd64 (2.06-13+deb12u1) ...
  164. Generating grub configuration file ...
  165. Found background image: /usr/share/images/desktop-base/desktop-grub.png
  166. Found linux image: /boot/vmlinuz-6.1.0-25-amd64
  167. Found initrd image: /boot/initrd.img-6.1.0-25-amd64
  168. Warning: os-prober will not be executed to detect other bootable partitions.
  169. Systems on them will not be added to the GRUB boot configuration.
  170. Check GRUB_DISABLE_OS_PROBER documentation entry.
  171. Adding boot menu entry for UEFI Firmware Settings ...
  172. done
  173. Setting up shim-helpers-amd64-signed (1+15.8+1~deb12u1) ...
  174. Setting up grub-efi (2.06-13+deb12u1) ...
  175. Setting up shim-signed:amd64 (1.44~1+deb12u1+15.8-1~deb12u1) ...
  176. No DKMS packages installed: not changing Secure Boot validation state.
  177. Processing triggers for man-db (2.11.2-2) ...
  178. root@debian:/# grub-install /dev/sda
  179. Installing for x86_64-efi platform.
  180. Installation finished. No error reported.
  181. root@debian:/# update-grub
  182. Generating grub configuration file ...
  183. Found background image: /usr/share/images/desktop-base/desktop-grub.png
  184. Found linux image: /boot/vmlinuz-6.1.0-25-amd64
  185. Found initrd image: /boot/initrd.img-6.1.0-25-amd64
  186. Warning: os-prober will not be executed to detect other bootable partitions.
  187. Systems on them will not be added to the GRUB boot configuration.
  188. Check GRUB_DISABLE_OS_PROBER documentation entry.
  189. Adding boot menu entry for UEFI Firmware Settings ...
  190. done
  191. root@debian:/# exit
  192. exit
  193. root@debian:/home/user# exit
  194. exit
  195. user@debian:~$
  196.  
  197.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement