(solved ,sort of ) Clone zilla after successful restore mint 21.1 does not boot.

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

(solved ,sort of ) Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

Hello,
System is Lenovo with 1 tb HDD. Came installed with Windows 10. Partitioned and divided so that there are 2 partitions of 435 gb each. Win and Mint. Mint restored successfully from a CZ backup of another system. After reboot there is no grub, Windows boots directly. In BIOS there is no entry of Ubuntu in boot menu. What is advised now please?
Last edited by LockBot on Tue Aug 01, 2023 10:00 pm, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3596
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by Jo-con-Ël »

It is strange preinstalled Windows only creates one partitiion. Also restoring Mint partition do not install grub loader (see here), this is something you need to do after restoring, before rebooting, in the same way as modifying /etc/fstab on restored Mint partition if it is needed.

Boot Linux Mint Live USB and post bak following codes result.

Code: Select all

inxi -Fxxxz
sudo parted -l
sudo blkid
sudo efibootmgr -v
Last edited by Jo-con-Ël on Wed Feb 01, 2023 12:22 pm, edited 1 time in total.
Arrieritos semos y en el camino nos encontraremos.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

Thank you. The expert replies. Will post the output after a couple of days.Its an efi system, which I confirmed from BIOS also has Windows recovery partition..
I will chroot and update-grub and report.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

grub-install is the easy option. I will try it.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

I chrooted and did grub-install /dev/sda without any error. Yet the machine doesnt boot Mint.
Here are the commands.

Code: Select all

 sudo mount /dev/sda1 /boot
mint@mint:~$ cd /boot
mint@mint:/boot$ ls
'$RECYCLE.BIN'   BOOT   EFI  'System Volume Information'   grub
mint@mint:/boot$ cd
mint@mint:~$ ls /boot
'$RECYCLE.BIN'   BOOT   EFI  'System Volume Information'   grub
mint@mint:~$ ls grub
ls: cannot access 'grub': No such file or directory
mint@mint:~$ cd boot
bash: cd: boot: No such file or directory
mint@mint:~$ cd /boot
mint@mint:/boot$ ls grub
mint@mint:/boot$ ls EFI
Boot  Microsoft  ubuntu
  

Code: Select all

  inxi -Fxxxz
sudo parted -l
sudo blkid
sudo efibootmgr -v 


inxi -Fxxxz
System:
  Kernel: 5.4.0-58-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 4.8.5 wm: muffin 4.8.0 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: LENOVO product: 82C7 v: Lenovo V15-ADA 
  serial: <filter> Chassis: type: 10 v: Lenovo V15-ADA serial: <filter> 
  Mobo: LENOVO model: LNVNB161216 v: SDK0Q55724WIN serial: <filter> 
  UEFI: LENOVO v: E8CN34WW date: 04/28/2022 
Battery:
  ID-1: BAT0 charge: 24.4 Wh condition: 27.3/30.0 Wh (91%) volts: 8.2/7.6 
  model: LGC L17L2PF1 type: Li-poly serial: <filter> status: Discharging 
  cycles: 143 
CPU:
  Topology: Dual Core model: AMD Athlon Gold 3150U with Radeon Graphics 
  bits: 64 type: MT MCP arch: Zen+ rev: 1 L2 cache: 1024 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 19164 
  Speed: 1337 MHz min/max: 1400/2400 MHz boost: enabled Core speeds (MHz): 
  1: 1334 2: 1253 3: 1234 4: 1238 
Graphics:
  Device-1: AMD Picasso vendor: Lenovo driver: amdgpu v: kernel 
  bus ID: 02:00.0 chip ID: 1002:15d8 
  Display: x11 server: X.Org 1.20.8 driver: amdgpu,ati 
  unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: AMD RAVEN2 (DRM 3.35.0 5.4.0-58-generic LLVM 10.0.0) 
  v: 4.6 Mesa 20.0.8 direct render: Yes 
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Lenovo 
  driver: snd_hda_intel v: kernel bus ID: 02:00.1 chip ID: 1002:15de 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  vendor: Lenovo driver: N/A bus ID: 02:00.5 chip ID: 1022:15e2 
  Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel 
  v: kernel bus ID: 02:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.4.0-58-generic 
Network:
  Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter 
  vendor: Lenovo driver: ath10k_pci v: kernel bus ID: 01:00.0 
  chip ID: 168c:003e 
  IF: wlp1s0 state: up mac: <filter> 
  Device-2: Qualcomm Atheros type: USB driver: btusb bus ID: 1-6:5 
  chip ID: 0cf3:e300 
Drives:
  Local Storage: total: 935.28 GiB used: 133.5 MiB (0.0%) 
  ID-1: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB 
  speed: 6.0 Gb/s rotation: 5400 rpm serial: <filter> rev: LFM3 temp: 31 C 
  scheme: GPT 
  ID-2: /dev/sdb type: USB vendor: Sony model: Storage Media size: 3.77 GiB 
  speed: 6.0 Gb/s serial: <filter> rev: 0100 scheme: MBR 
Partition:
  ID-1: / size: 1.65 GiB used: 99.9 MiB (5.9%) fs: overlay source: ERR-102 
  ID-2: /boot size: 256.0 MiB used: 33.6 MiB (13.1%) fs: vfat dev: /dev/sda1 
  ID-3: swap-1 size: 12.70 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda8 
Sensors:
  System Temperatures: cpu: 39.8 C mobo: N/A gpu: amdgpu temp: 39 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 213 Uptime: 15m Memory: 3.29 GiB used: 1.31 GiB (39.7%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
mint@mint:/boot$ sudo parted -l
Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  274MB   273MB   fat32           EFI system partition          boot, esp
 2      274MB   290MB   16.8MB                  Microsoft reserved partition  msftres
 3      290MB   531GB   531GB   ntfs            Basic data partition          msftdata
 5      531GB   531GB   1049kB  ext2
 6      531GB   531GB   1049kB  ext2
 7      531GB   986GB   454GB   ext4
 8      986GB   999GB   13.6GB  linux-swap(v1)                                swap
 4      999GB   1000GB  1049MB  ntfs            Basic data partition          hidden, diag


Model: Sony Storage Media (scsi)
Disk /dev/sdb: 4049MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  4015MB  4014MB  primary               boot
 2      4015MB  4049MB  33.6MB  primary  fat16        esp


mint@mint:/boot$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: LABEL="SYSTEM_DRV" UUID="827D-3C22" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="d5d0f681-8af9-4aeb-a519-00b7166f4968"
/dev/sda2: PARTLABEL="Microsoft reserved partition" PARTUUID="32d51e43-fd44-4659-9e4f-a7d315a46aa8"
/dev/sda3: LABEL="Windows" UUID="44627EDE627ED3E0" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="1d49a5eb-9929-4f1d-820b-b83c66347794"
/dev/sda4: LABEL="WINRE_DRV" UUID="84E28083E2807B66" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="fe75d66d-a451-4c75-9514-fd8d62a1d687"
/dev/sda5: UUID="8a4e9c4b-50e8-4f41-94a4-a4731ac4718b" TYPE="ext4" PARTUUID="9df10f60-adf7-41a1-8048-6449a40d9141"
/dev/sda6: UUID="5c80ad8b-2e93-4729-be98-25dee69a95dd" TYPE="ext4" PARTUUID="8c7d9c5d-4422-4af8-bd9e-786f8ae87e26"
/dev/sda7: UUID="5b6944b4-efff-4cb9-b5e5-7f810b71d09c" TYPE="ext4" PARTUUID="68c2491e-d559-4f4f-9ca7-2c3d4c4c024c"
/dev/sda8: UUID="40d9bb82-7f10-4890-98fe-e0a409b7d717" TYPE="swap" PARTUUID="117afb4e-3d65-40c9-9240-1581089e95e2"
/dev/sdb1: LABEL="Ventoy" UUID="0610-3F55" TYPE="exfat" PTTYPE="dos" PARTUUID="600dd7dd-01"
/dev/dm-0: UUID="2021-01-03-16-58-27-00" LABEL="Linux Mint 20.1 Cinnamon 64-bit" TYPE="iso9660" PTUUID="5b137364" PTTYPE="dos"
mint@mint:/boot$ sudo efibootmgr -v
BootCurrent: 0014
Timeout: 0 seconds
BootOrder: 0014,0013,0000,0012,0015,0016,0017
Boot0000* Windows Boot Manager	HD(1,GPT,d5d0f681-8af9-4aeb-a519-00b7166f4968,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...7................
Boot0010  Setup	FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011  Boot Menu	FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0012* NVMe:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a4)
Boot0013* ATA HDD: ST1000LM035-1RK172                      	PciRoot(0x0)/Pci(0x8,0x2)/Pci(0x0,0x0)/Sata(0,0,0)..bYVD.A...O.*..
Boot0014* USB HDD: Sony Storage Media	PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(2,0)3.!..3.G..A.....
Boot0015* USB LAN:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,e854bca4cae7704ca322b00da0376322)
Boot0016* USB FDD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0017* USB CD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)


If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3596
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by Jo-con-Ël »

Do not mount EFI partition on Mint live /boot folder, you 'd better use an empty folder and you need to be sure /EFI/ubuntu folder is not empty in any case... :roll:

Also I don't know what are those sda5 and sda6 1MB ext.2 partitions. Maybe it is worth to remove them and start installing grub from scratch.

See chroot method for UEFI system on tutorial proposed on previous post. You need mount Mint root partition (sdb7?)

Code: Select all

sudo mount /dev/sda7 /mnt
Then mount EFI partition on /mnt/boot/efi

Code: Select all

sudo mount /dev/sda1 /mnt/boot/efi
Complete mounting , chroot and install grub

Code: Select all

for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
sudo cp /etc/resolv.conf /mnt/etc
modprobe efivars
sudo chroot /mnt
apt install grub-efi-amd64-signed shim-signed 
grub-install /dev/sda --uefi-secure-boot
update-grub
exit
Unmount

Code: Select all

for i in /sys /proc /dev/pts /dev; do sudo umount /mnt$i; done
sudo umount /mnt/boot/efi
sudo umount /mnt
Post back sudo efibootmgr -v.
Last edited by Jo-con-Ël on Sat Feb 04, 2023 12:44 pm, edited 1 time in total.
Arrieritos semos y en el camino nos encontraremos.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

I created sda5 and sda6 because I needed to restore to sda7. My source was from sda7 and if I wanted to restore to a different partition,it would have been a Hassel. I didn't update-grub after grub-install. I will try it and report back other commands output asked by you shortly after an hour from now.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

I created sda5 and sda6 because I needed to restore to sda7. My source was from sda7 and if I wanted to restore to a different partition,it would have been a Hassel. I didn't update-grub after grub-install. I will try it and report back other commands output asked by you shortly after an hour from now.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

Code: Select all

 efibootmgr -v
BootCurrent: 0014
Timeout: 0 seconds
BootOrder: 0014,0000,0012,0013,0015,0016,0017
Boot0000* Windows Boot Manager	HD(1,GPT,d7cdb3cc-eb4e-4aee-a8aa-900b60616d37,0x800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0010  Setup	FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011  Boot Menu	FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0012* NVMe:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a4)
Boot0013* ATA HDD: ST1000LM035-1RK172                      	PciRoot(0x0)/Pci(0x8,0x2)/Pci(0x0,0x0)/Sata(0,0,0)..bYVD.A...O.*..
Boot0014* USB HDD: Sony Storage Media	PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(2,0)3.!..3.G..A.....
Boot0015* USB LAN:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,e854bca4cae7704ca322b00da0376322)
Boot0016* USB FDD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0017* USB CD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
  
I ran the commands suggested by you. Here is the terminal output.

Code: Select all

 sudo mount /dev/sda7 /mnt
mint@mint:~$ sudo mount /dev/sda1 /mnt/boot/efi
mint@mint:~$ for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
mint@mint:~$ sudo cp /etc/resolv.conf /mnt/etc
mint@mint:~$ modprobe efivars
mint@mint:~$ sudo chroot /mnt
root@mint:/# apt install grub-efi-amd64-signed shim-signed 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
shim-signed is already the newest version (1.51+15.4-0ubuntu9).
The following packages will be upgraded:
  grub-efi-amd64-bin grub-efi-amd64-signed
2 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 2970 kB of archives.
After this operation, 4862 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 grub-efi-amd64-signed amd64 1.187.2+2.06-2ubuntu14 [1380 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 grub-efi-amd64-bin amd64 2.06-2ubuntu14 [1591 kB]
Fetched 2970 kB in 10s (305 kB/s)                                              
(Reading database ... 419550 files and directories currently installed.)
Preparing to unpack .../grub-efi-amd64-signed_1.187.2+2.06-2ubuntu14_amd64.deb .
..
Unpacking grub-efi-amd64-signed (1.187.2+2.06-2ubuntu14) over (1.182~22.04.1+2.0
6-2ubuntu10) ...
Preparing to unpack .../grub-efi-amd64-bin_2.06-2ubuntu14_amd64.deb ...
Unpacking grub-efi-amd64-bin (2.06-2ubuntu14) over (2.06-2ubuntu10) ...
Setting up grub-efi-amd64-bin (2.06-2ubuntu14) ...
Setting up grub-efi-amd64-signed (1.187.2+2.06-2ubuntu14) ...
mount: /var/lib/grub/esp: special device /dev/disk/by-id/ata-HGST_HTS545050A7E68
0_RBF50A1N0YB3UP-part2 does not exist.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess ret
urned error exit status 32
Errors were encountered while processing:
 grub-efi-amd64-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@mint:/# grub-install /dev/sda --uefi-secure-boot
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
root@mint:/# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.1.8-060108-generic
Found initrd image: /boot/initrd.img-6.1.8-060108-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdb2.  Check your device.map.
done
root@mint:/# for i in /sys /proc /dev/pts /dev; do sudo umount /mnt$i; done
sudo umount /mnt/boot/efi
sudo umount /mnt
umount: /mnt/sys: no mount point specified.
umount: /mnt/proc: no mount point specified.
umount: /mnt/dev/pts: no mount point specified.
umount: /mnt/dev: no mount point specified.
umount: /mnt/boot/efi: no mount point specified.
umount: /mnt: not mounted.
root@mint:/# 

  
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

I installed Mint 21.1 on the same laptop. This time there was an ubuntu entry in efibootmgr and in Bios. It is missing now in both BIOS and efibootmgr as is indicated above. Will again post back after 8 hours from now.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

I once more repeated the commands you suggested but got the same error. sdb is my boot media,4gb stick.

Code: Select all

  efibootmgr -v
BootCurrent: 0014
Timeout: 0 seconds
BootOrder: 0014,0000,0012,0013,0015,0016,0017
Boot0000* Windows Boot Manager	HD(1,GPT,d7cdb3cc-eb4e-4aee-a8aa-900b60616d37,0x800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...a................
Boot0010  Setup	FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011  Boot Menu	FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0012* NVMe:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a4)
Boot0013* ATA HDD: ST1000LM035-1RK172                      	PciRoot(0x0)/Pci(0x8,0x2)/Pci(0x0,0x0)/Sata(0,0,0)..bYVD.A...O.*..
Boot0014* USB HDD: Sony Storage Media	PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(2,0)3.!..3.G..A.....
Boot0015* USB LAN:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,e854bca4cae7704ca322b00da0376322)
Boot0016* USB FDD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0017* USB CD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
mint@mint:~/Desktop$ cd
mint@mint:~$ sudo umount -a
umount: /run/user/999: target is busy.
umount: /tmp: target is busy.
umount: /sys/fs/cgroup/unified: target is busy.
umount: /sys/fs/cgroup: target is busy.
umount: /: target is busy.
umount: /cdrom: target is busy.
umount: /run: target is busy.
umount: /dev: target is busy.
mint@mint:~$ sudo mount /dev/sda7 /mnt
mint@mint:~$ sudo mount /dev/sda1 /mnt/boot/efi
mint@mint:~$ for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
mint@mint:~$ sudo cp /etc/resolv.conf /mnt/etc
mint@mint:~$ modprobe efivars
mint@mint:~$ sudo chroot /mnt
root@mint:/# apt install grub-efi-amd64-signed shim-signed 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
shim-signed is already the newest version (1.51+15.4-0ubuntu9).
grub-efi-amd64-signed is already the newest version (1.187.2+2.06-2ubuntu14).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up grub-efi-amd64-signed (1.187.2+2.06-2ubuntu14) ...
mount: /var/lib/grub/esp: special device /dev/disk/by-id/ata-HGST_HTS545050A7E680_RBF50A1N0YB3UP-part2 does not exist.
dpkg: error processing package grub-efi-amd64-signed (--configure):
 installed grub-efi-amd64-signed package post-installation script subprocess returned error exit status 32
Errors were encountered while processing:
 grub-efi-amd64-signed
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@mint:/# grub-install /dev/sda --uefi-secure-boot
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
root@mint:/# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.1.8-060108-generic
Found initrd image: /boot/initrd.img-6.1.8-060108-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdb2.  Check your device.map.
done
root@mint:/# fdisk -l /dev/sda
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LM035-1RK1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 037CC3AF-E996-407C-8168-92D7F448E053

Device          Start        End    Sectors   Size Type
/dev/sda1        2048     206847     204800   100M EFI System
/dev/sda2      206848     239615      32768    16M Microsoft reserved
/dev/sda3      239616  876112524  875872909 417.6G Microsoft basic data
/dev/sda4  1952479232 1953521663    1042432   509M Windows recovery environment
/dev/sda5   876113920  916193279   40079360  19.1G Linux swap
/dev/sda6   916193280  916195327       2048     1M Linux filesystem
/dev/sda7   916195328 1952479231 1036283904 494.1G Linux filesystem

Partition table entries are not in disk order.
root@mint:/# os-prober 
grub-probe: error: cannot find a GRUB drive for /dev/sdb2.  Check your device.map.
   
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3596
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by Jo-con-Ël »

deepakdeshp wrote: Sat Feb 04, 2023 2:04 pm I installed Mint 21.1 on the same laptop. This time there was an ubuntu entry in efibootmgr and in Bios. It is missing now in both BIOS and efibootmgr as is indicated above. Will again post back after 8 hours from now.
Then you don't need to reinstall grub just run sudo update-grub from new Mint installation and see if restored one is detected. Also I noticed you were booting Linux Mint live 20.1 but that clone is from Mint 21.1...
Last edited by Jo-con-Ël on Sat Feb 04, 2023 3:02 pm, edited 1 time in total.
Arrieritos semos y en el camino nos encontraremos.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

Code: Select all

  sudo os-prober 
/dev/sda1@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sda7:Linux Mint 21.1 Vera (21.1):LinuxMint:linux
mint@mint:~$ sudo update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of `/cow'.
sudo update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of `/cow'.
mint@mint:~$ sudo grub-mkdevicemap 
mint@mint:~$ sudo update-grub
/usr/sbin/grub-probe: error: failed to get canonical path of `/cow'.
mint@mint:~$ sudo os-prober 
/dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
/dev/sda7:Linux Mint 21.1 Vera (21.1):LinuxMint:linux



 
This above is after After booting from live usb

AFter chroot

Code: Select all

 grub-mkdevicemap 
root@mint:/# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.1.8-060108-generic
Found initrd image: /boot/initrd.img-6.1.8-060108-generic
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdb2.  Check your device.map.
done
  
I think the error is due to grub-probe: error: cannot find a GRUB drive for /dev/sdb2. Check your device.map.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3596
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by Jo-con-Ël »

You can not update-grub on Linux Mint Live system, but on chroot system.

There was a couple of problems installing grub-efi on last try. It failed on installing grub-efi-amd64-signed and then failed (grub-install: warning: EFI variables cannot be set on this system). It is logical it can´t detect any system on Live USB because of hybrid boot but netiher detect Windows...

Be sure you are booting Linux MInt Live 21.1 on UEFI mode, then run Boot Repair (Menu>Administration>Boot Repair) and choose BootInfo summary option to share link when offered.
Arrieritos semos y en el camino nos encontraremos.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

Boot info summary it gave the url as as https://paste2.org/

Then there was error message

Code: Select all

An error occurred during the repair.

Please write on a paper the following URL:
https://paste2.org/


In case you still experience boot problem, indicate this URL to:
boot.repair@gmail.com 

Locked-NVram detected.
  
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3596
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by Jo-con-Ël »

Are you still booting Linux Mint Live 20.1 USB? Did you connect to internet (it is needed a working internet connection)?
Arrieritos semos y en el camino nos encontraremos.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

Yes I booted from Mint 21.1 and internet connection was present.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

The problem is sort of solved. I shrunk the Mint partition and installed Ubuntu server on the disk and it installed grub, boots and grub is visible.! But it is not a satisfactory solution. I have another laptop on which this can be tried. Using boot repairs etc. It's 2 am trying this out and I spent 5.30 hours. Jo-con-el. Your help is highly appreciated. Thank you.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

I also have to reshuffle the boot order. Mint has to be first.
Ok I did that. Booted Mint and ran

Code: Select all

 grub-install /dev/sda; update-grub
.
Now Mint is first in the boot order.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: (solved ,sort of ) Clone zilla after successful restore mint 21.1 does not boot.

Post by deepakdeshp »

For record purpose so that it may be useful for others.

Mint restore from clonezilla backup and to make it bootable I followed following process.
Shrink Windows partition by 500 GB by booting into Windows as the sda disk size is 1 TB.
Boot mint USB, create 12 gb swap,7gb ext4 partitions for Ubuntu server from the 500 gb unallocated partition. Create additional partitions from the 500 gb shrunk partition so that we have 489gb sda7 partition to restore Clonezilla backup.
Boot clonezilla USB,restore sda7 image to sda7 partition. Boot Ubuntu server and install in 7gb partition. Server was chosen as it's install size is small and it installs very quickly. Server install was needed as it installed grub and located Mint and Windows and made bootable entries .
Boot mint from sda7, comment out the additional partition numbers from the restored image from /etc/fstab from sda7 partition as these don't exist in the new system. Change your sda1 entry in fstab which is to be mounted on /boot/efi as the blkid is different. I used partition name /dev/sda1 instead of uuid in fstab.
Now mint boots to gui.
Mint is 3rd entry in grub hence grub-install /dev/sda,update-grub. This made it the first entry in grub.
Logout from gmail in the browser and remove thunderbird account after logging into mint from sda7. That completes the procedure to restore from Clonezilla sda7 to new disk with sda7. Restoring from CZ to a different partition is complicated hence the same sda 7 was created for restore on the new system.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Locked

Return to “Installation & Boot”