Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user@debian:~$ sudo -s
- root@debian:/home/user# sgdisk -g /dev/sda
- ***************************************************************
- Found invalid GPT and valid MBR; converting MBR to GPT format
- in memory.
- ***************************************************************
- The operation has completed successfully.
- root@debian:/home/user# apt update
- Get:1 file:/run/live/medium bookworm InRelease
- Ign:1 file:/run/live/medium bookworm InRelease
- Get:2 file:/run/live/medium bookworm Release [4,535 B]
- Get:2 file:/run/live/medium bookworm Release [4,535 B]
- Get:3 file:/run/live/medium bookworm Release.gpg
- Ign:3 file:/run/live/medium bookworm Release.gpg
- Hit:4 http://deb.debian.org/debian bookworm InRelease
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- 294 packages can be upgraded. Run 'apt list --upgradable' to see them.
- root@debian:/home/user# apt install gparted dosfstools mtools
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- dosfstools is already the newest version (4.2-1).
- dosfstools set to manually installed.
- The following additional packages will be installed:
- gparted-common policykit-1 polkitd-pkla
- Suggested packages:
- dmraid gpart jfsutils kpartx reiser4progs reiserfsprogs udftools floppyd
- The following NEW packages will be installed:
- gparted gparted-common mtools policykit-1 polkitd-pkla
- 0 upgraded, 5 newly installed, 0 to remove and 294 not upgraded.
- Need to get 2,788 kB of archives.
- After this operation, 9,285 kB of additional disk space will be used.
- Do you want to continue? [Y/n] y
- Get:1 http://deb.debian.org/debian bookworm/main amd64 gparted-common all 1.3.1-1 [1,711 kB]
- Get:2 http://deb.debian.org/debian bookworm/main amd64 policykit-1 amd64 122-3 [11.8 kB]
- Get:3 http://deb.debian.org/debian bookworm/main amd64 gparted amd64 1.3.1-1 [831 kB]
- Get:4 http://deb.debian.org/debian bookworm/main amd64 mtools amd64 4.0.33-1+really4.0.32-1 [202 kB]
- Get:5 http://deb.debian.org/debian bookworm/main amd64 polkitd-pkla amd64 122-3 [31.9 kB]
- Fetched 2,788 kB in 0s (17.2 MB/s)
- Selecting previously unselected package gparted-common.
- (Reading database ... 281182 files and directories currently installed.)
- Preparing to unpack .../gparted-common_1.3.1-1_all.deb ...
- Unpacking gparted-common (1.3.1-1) ...
- Selecting previously unselected package policykit-1.
- Preparing to unpack .../policykit-1_122-3_amd64.deb ...
- Unpacking policykit-1 (122-3) ...
- Selecting previously unselected package gparted.
- Preparing to unpack .../gparted_1.3.1-1_amd64.deb ...
- Unpacking gparted (1.3.1-1) ...
- Selecting previously unselected package mtools.
- Preparing to unpack .../mtools_4.0.33-1+really4.0.32-1_amd64.deb ...
- Unpacking mtools (4.0.33-1+really4.0.32-1) ...
- Selecting previously unselected package polkitd-pkla.
- Preparing to unpack .../polkitd-pkla_122-3_amd64.deb ...
- Unpacking polkitd-pkla (122-3) ...
- Setting up polkitd-pkla (122-3) ...
- Setting up mtools (4.0.33-1+really4.0.32-1) ...
- Setting up gparted-common (1.3.1-1) ...
- Setting up policykit-1 (122-3) ...
- Setting up gparted (1.3.1-1) ...
- Processing triggers for mailcap (3.70+nmu1) ...
- Processing triggers for desktop-file-utils (0.26-1) ...
- Processing triggers for hicolor-icon-theme (0.17-2) ...
- Processing triggers for gnome-menus (3.36.0-1.1) ...
- Processing triggers for man-db (2.11.2-2) ...
- root@debian:/home/user# gparted
- GParted 1.3.1
- configuration --enable-libparted-dmraid --enable-online-resize
- libparted 3.5
- root@debian:/home/user# sgdisk -s /dev/sda
- The operation has completed successfully.
- root@debian:/home/user# mount /dev/sda1 /mnt
- root@debian:/home/user# for i in /dev /dev/pts /proc /sys /sys/firmware/efi/efivars /run; do mount -B $i /mnt$i; done
- root@debian:/home/user# chroot /mnt
- root@debian:/# blkid -s UUID /dev/sda3
- /dev/sda3: UUID="4945-F71D"
- root@debian:/# mkdir -p /boot/efi
- root@debian:/# mount /dev/sda3 /boot/efi
- root@debian:/# echo >>/etc/fstab
- root@debian:/# echo UUID=4945-F71D /boot/efi vfat umask=0077 0 1 >>/etc/fstab
- root@debian:/# grub-install /dev/sda
- Installing for i386-pc platform.
- Installation finished. No error reported.
- root@debian:/# apt reinstall grub-efi
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- The following package was automatically installed and is no longer required:
- grub-pc-bin
- Use 'apt autoremove' to remove it.
- The following additional packages will be installed:
- efibootmgr grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed mokutil
- shim-helpers-amd64-signed shim-signed shim-signed-common shim-unsigned
- The following packages will be REMOVED:
- grub-pc
- The following NEW packages will be installed:
- efibootmgr grub-efi grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed
- mokutil shim-helpers-amd64-signed shim-signed shim-signed-common
- shim-unsigned
- 0 upgraded, 10 newly installed, 1 to remove and 295 not upgraded.
- Need to get 4,020 kB of archives.
- After this operation, 38.2 MB of additional disk space will be used.
- Do you want to continue? [Y/n] y
- Get:1 http://deb.debian.org/debian bookworm/main amd64 efibootmgr amd64 17-2 [27.6 kB]
- Get:2 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64-bin amd64 2.06-13+deb12u1 [1,574 kB]
- Get:3 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64 amd64 2.06-13+deb12u1 [45.7 kB]
- Get:4 http://deb.debian.org/debian bookworm/main amd64 grub-efi amd64 2.06-13+deb12u1 [2,388 B]
- Get:5 http://deb.debian.org/debian bookworm/main amd64 grub-efi-amd64-signed amd64 1+2.06+13+deb12u1 [1,259 kB]
- Get:6 http://deb.debian.org/debian bookworm/main amd64 mokutil amd64 0.6.0-2 [26.9 kB]
- Get:7 http://deb.debian.org/debian bookworm/main amd64 shim-unsigned amd64 15.8-1~deb12u1 [440 kB]
- Get:8 http://deb.debian.org/debian bookworm/main amd64 shim-helpers-amd64-signed amd64 1+15.8+1~deb12u1 [301 kB]
- 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]
- Get:10 http://deb.debian.org/debian bookworm/main amd64 shim-signed amd64 1.44~1+deb12u1+15.8-1~deb12u1 [329 kB]
- Fetched 4,020 kB in 5s (746 kB/s)
- Preconfiguring packages ...
- (Reading database ... 275001 files and directories currently installed.)
- Removing grub-pc (2.06-13+deb12u1) ...
- Selecting previously unselected package efibootmgr.
- (Reading database ... 274990 files and directories currently installed.)
- Preparing to unpack .../0-efibootmgr_17-2_amd64.deb ...
- Unpacking efibootmgr (17-2) ...
- Selecting previously unselected package grub-efi-amd64-bin.
- Preparing to unpack .../1-grub-efi-amd64-bin_2.06-13+deb12u1_amd64.deb ...
- Unpacking grub-efi-amd64-bin (2.06-13+deb12u1) ...
- Selecting previously unselected package grub-efi-amd64.
- Preparing to unpack .../2-grub-efi-amd64_2.06-13+deb12u1_amd64.deb ...
- Unpacking grub-efi-amd64 (2.06-13+deb12u1) ...
- Selecting previously unselected package grub-efi.
- Preparing to unpack .../3-grub-efi_2.06-13+deb12u1_amd64.deb ...
- Unpacking grub-efi (2.06-13+deb12u1) ...
- Selecting previously unselected package grub-efi-amd64-signed.
- Preparing to unpack .../4-grub-efi-amd64-signed_1+2.06+13+deb12u1_amd64.deb ...
- Unpacking grub-efi-amd64-signed (1+2.06+13+deb12u1) ...
- Selecting previously unselected package mokutil.
- Preparing to unpack .../5-mokutil_0.6.0-2_amd64.deb ...
- Unpacking mokutil (0.6.0-2) ...
- Selecting previously unselected package shim-unsigned:amd64.
- Preparing to unpack .../6-shim-unsigned_15.8-1~deb12u1_amd64.deb ...
- Unpacking shim-unsigned:amd64 (15.8-1~deb12u1) ...
- Selecting previously unselected package shim-helpers-amd64-signed.
- Preparing to unpack .../7-shim-helpers-amd64-signed_1+15.8+1~deb12u1_amd64.deb .
- ..
- Unpacking shim-helpers-amd64-signed (1+15.8+1~deb12u1) ...
- Selecting previously unselected package shim-signed-common.
- Preparing to unpack .../8-shim-signed-common_1.44~1+deb12u1+15.8-1~deb12u1_all.d
- eb ...
- Unpacking shim-signed-common (1.44~1+deb12u1+15.8-1~deb12u1) ...
- Selecting previously unselected package shim-signed:amd64.
- Preparing to unpack .../9-shim-signed_1.44~1+deb12u1+15.8-1~deb12u1_amd64.deb ..
- .
- Unpacking shim-signed:amd64 (1.44~1+deb12u1+15.8-1~deb12u1) ...
- Setting up efibootmgr (17-2) ...
- Setting up mokutil (0.6.0-2) ...
- Setting up grub-efi-amd64-signed (1+2.06+13+deb12u1) ...
- Setting up shim-signed-common (1.44~1+deb12u1+15.8-1~deb12u1) ...
- No DKMS packages installed: not changing Secure Boot validation state.
- Setting up grub-efi-amd64-bin (2.06-13+deb12u1) ...
- Setting up shim-unsigned:amd64 (15.8-1~deb12u1) ...
- Setting up grub-efi-amd64 (2.06-13+deb12u1) ...
- Generating grub configuration file ...
- Found background image: /usr/share/images/desktop-base/desktop-grub.png
- Found linux image: /boot/vmlinuz-6.1.0-25-amd64
- Found initrd image: /boot/initrd.img-6.1.0-25-amd64
- Warning: os-prober will not be executed to detect other bootable partitions.
- Systems on them will not be added to the GRUB boot configuration.
- Check GRUB_DISABLE_OS_PROBER documentation entry.
- Adding boot menu entry for UEFI Firmware Settings ...
- done
- Setting up shim-helpers-amd64-signed (1+15.8+1~deb12u1) ...
- Setting up grub-efi (2.06-13+deb12u1) ...
- Setting up shim-signed:amd64 (1.44~1+deb12u1+15.8-1~deb12u1) ...
- No DKMS packages installed: not changing Secure Boot validation state.
- Processing triggers for man-db (2.11.2-2) ...
- root@debian:/# grub-install /dev/sda
- Installing for x86_64-efi platform.
- Installation finished. No error reported.
- root@debian:/# update-grub
- Generating grub configuration file ...
- Found background image: /usr/share/images/desktop-base/desktop-grub.png
- Found linux image: /boot/vmlinuz-6.1.0-25-amd64
- Found initrd image: /boot/initrd.img-6.1.0-25-amd64
- Warning: os-prober will not be executed to detect other bootable partitions.
- Systems on them will not be added to the GRUB boot configuration.
- Check GRUB_DISABLE_OS_PROBER documentation entry.
- Adding boot menu entry for UEFI Firmware Settings ...
- done
- root@debian:/# exit
- exit
- root@debian:/home/user# exit
- exit
- user@debian:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement