Hola a todos,
Gracias por este hilo tan estupendo, casi casi resuelve mis problemas.
He seguido todos los pasos aquí indicados cuando correspondía e incluso cuando no. Mi éxito es parcial.
Antecendetes:
Tenía mi Linux mint funcionando perfectamente en mi ordenador A, donde el Linux estaba instalado en un dispositivo NVMe al completo, pero con una partición para el raíz, otra para el home y otra para Swap. Este dispositivo estaba en mi portátil en el slot secundario, pues el primario estaba ocupado por otro dispositivo del mismo tipo con el Wind10 que trae el equipo de fabrica. El Grub y arranque en el dispositivo nvme1 (aquí no sé porque mint nombra al revés a los dispositivos en vez de llamarse el nvme0), y Linux en el nvme1.
Bien, decido comprar un equipo de la misma marca, tipo... LG ultraligero pero con tarjeta gráfica independiente. Instalado el anterior dispositivo con mi linux en el slot libre, de nuevo nvme1 ya que el nvme0 al igual que en el equipo anterior esta ocupado por el SO de fabrica. Con las mismas particiones.
Al encender el equipo, como corresponde, inicia solo el SO del equipo de fabrica... trato de hacer arrancar el Linux Mint (20.1) con la pulsación de las tecla F10 para iniciar otros dispositivos y me muestra la opción de iniciarlo y en principio... no. El Grub estaba en el NVMe0 que ahora ya es otro aunque con los mismos nombres y particiones. Aquí es donde entra este hilo... siguiendolo consigo que si me entre al Linux Mint que tenía en el otro equipo pero... sorpresa...
1. No me permite cuando entro a la BIOS (bios porque de sistema UEFI el nombre y poco más) veo que solo me muestra como sistemas arrancables los dispositivo Win.
2. Coloco igualmente el NVMe0 donde tengo linux por delante en el orden de arranque por si acaso...
3. El punto 2 no implica cambio alguno.
4. Sigo este hilo para reinstalar o solucionar el problema... cambiados los UUIDs en el fstab ... pues esto ... es lo que obtengo...
Code: Select all
mint@mint:~$ sudo mount /dev/nvme1n1p1 /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-get update
Hit:1 http://linux.teamviewer.com/deb stable InRelease
Hit:2 http://mirror.tedra.es/ubuntu focal InRelease
Ign:3 http://mirrors.evowise.com/linuxmint/packages ulyssa InRelease
Get:4 http://mirror.tedra.es/ubuntu focal-updates InRelease [114 kB]
Hit:5 http://archive.canonical.com/ubuntu focal InRelease
Hit:6 http://mirrors.evowise.com/linuxmint/packages ulyssa Release
Hit:7 http://ppa.launchpad.net/kicad/kicad-5.1-releases/ubuntu focal InRelease
Hit:8 https://repo.skype.com/deb stable InRelease
Get:9 http://mirror.tedra.es/ubuntu focal-backports InRelease [101 kB]
Hit:10 http://ppa.launchpad.net/openshot.developers/ppa/ubuntu focal InRelease
Get:11 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:12 http://ppa.launchpad.net/swi-prolog/stable/ubuntu focal InRelease
Get:14 http://mirror.tedra.es/ubuntu focal-updates/main amd64 Packages [1033 kB]
Get:15 http://mirror.tedra.es/ubuntu focal-updates/main i386 Packages [491 kB]
Get:16 http://mirror.tedra.es/ubuntu focal-updates/main amd64 DEP-11 Metadata [283 kB]
Get:17 http://mirror.tedra.es/ubuntu focal-updates/main amd64 c-n-f Metadata [13.5 kB]
Get:18 http://mirror.tedra.es/ubuntu focal-updates/universe i386 Packages [577 kB]
Get:19 http://mirror.tedra.es/ubuntu focal-updates/universe amd64 Packages [785 kB]
Get:20 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [708 kB]
Get:21 http://mirror.tedra.es/ubuntu focal-updates/universe amd64 DEP-11 Metadata [330 kB]
Get:22 http://mirror.tedra.es/ubuntu focal-updates/multiverse amd64 Packages [23.6 kB]
Get:23 http://mirror.tedra.es/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2468 B]
Get:24 http://mirror.tedra.es/ubuntu focal-backports/universe amd64 DEP-11 Metadata [1768 B]
Get:25 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [24.5 kB]
Get:26 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [7900 B]
Get:27 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [590 kB]
Get:28 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [58.3 kB]
Get:29 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [11.6 kB]
Get:30 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2464 B]
Fetched 5271 kB in 3s (1857 kB/s)
Reading package lists... Done
root@mint:/# apt-get install --reinstall grub-efi-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 7 not upgraded.
Need to get 0 B/46.9 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 454295 files and directories currently installed.)
Preparing to unpack .../grub-efi-amd64_2.04-1ubuntu44.2_amd64.deb ...
Unpacking grub-efi-amd64 (2.04-1ubuntu44.2) over (2.04-1ubuntu44.2) ...
Setting up grub-efi-amd64 (2.04-1ubuntu44.2) ...
mount: /var/lib/grub/esp: special device /dev/disk/by-id/ata-HFS256G39TNF-N3A0A_MJ86N89051010730L-part1 does not exist.
Failed: grub-install --target=x86_64-efi
WARNING: Bootloader is not properly installed, system may not be bootable
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Sourcing file `/etc/default/grub.d/63_mint-theme-2k.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/linuxmint-2k/theme.txt
Found linux image: /boot/vmlinuz-5.4.0-74-generic
Found initrd image: /boot/initrd.img-5.4.0-74-generic
Found linux image: /boot/vmlinuz-5.4.0-73-generic
Found initrd image: /boot/initrd.img-5.4.0-73-generic
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings
done
Processing triggers for shim-signed (1.40.4+15+1552672080.a4a1fbe-0ubuntu2) ...
Secure Boot not enabled on this system.
root@mint:/# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Sourcing file `/etc/default/grub.d/63_mint-theme-2k.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/linuxmint-2k/theme.txt
Found linux image: /boot/vmlinuz-5.4.0-74-generic
Found initrd image: /boot/initrd.img-5.4.0-74-generic
Found linux image: /boot/vmlinuz-5.4.0-73-generic
Found initrd image: /boot/initrd.img-5.4.0-73-generic
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings
done
root@mint:/# mkconfig
Command 'mkconfig' not found, did you mean:
command 'mconfig' from deb mono-devel (6.8.0.105+dfsg-2)
command 'kconfig' from deb kconfig-frontends (4.11.0.1+dfsg-2build1)
Try: apt install <deb name>
root@mint:/# grub-install /V
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@mint:/# grub-install -V
grub-install (GRUB) 2.04-1ubuntu26.12
root@mint:/# grub-install
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@mint:/# fdisk -l
Disk /dev/loop0: 1.8 GiB, 1912557568 bytes, 3735464 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/nvme0n1: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 970 EVO 500GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A4B13858-65BE-4D93-8CB7-BB8880AAF768
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 158414157 158412110 75.5G Linux filesystem
/dev/nvme0n1p2 793460736 812709887 19249152 9.2G Linux swap
/dev/nvme0n1p3 158414848 793460735 635045888 302.8G Linux filesystem
Partition table entries are not in disk order.
Disk /dev/nvme1n1: 476.96 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: SAMSUNG MZVLB512HBJQ-00000
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 7EDE1564-2555-4D4F-AF1C-68080F2B61CE
Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 534527 532480 260M EFI System
/dev/nvme1n1p2 534528 796671 262144 128M Microsoft reserved
/dev/nvme1n1p3 796672 346204159 345407488 164.7G Microsoft basic data
/dev/nvme1n1p4 346204160 961671167 615467008 293.5G Microsoft basic data
/dev/nvme1n1p5 961671168 963514367 1843200 900M Windows recovery environment
/dev/nvme1n1p6 963514368 998117375 34603008 16.5G Windows recovery environment
/dev/nvme1n1p7 998117376 1000214527 2097152 1G unknown
Disk /dev/mmcblk0: 14.86 GiB, 15931539456 bytes, 31116288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x784eea65
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 31116287 31108096 14.9G 7 HPFS/NTFS/exFAT
Disk /dev/sda: 3.75 GiB, 4005527552 bytes, 7823296 sectors
Disk model: DataTraveler 2.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5b137364
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 0 3974271 3974272 1.9G 0 Empty
/dev/sda2 632 8567 7936 3.9M ef EFI (FAT-12/16/32)
/dev/sda3 3977216 7823295 3846080 1.9G 83 Linux
root@mint:/# ls
Backup Win boot cdrom etc lib lost+found mnt proc run srv tmp var
BootInfo bin boot-sav dev home lib64 media opt root sbin sys usr
root@mint:/# apt-get install --reinstall grub-efi-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 7 not upgraded.
Need to get 0 B/46.9 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 454295 files and directories currently installed.)
Preparing to unpack .../grub-efi-amd64_2.04-1ubuntu44.2_amd64.deb ...
Unpacking grub-efi-amd64 (2.04-1ubuntu44.2) over (2.04-1ubuntu44.2) ...
Setting up grub-efi-amd64 (2.04-1ubuntu44.2) ...
mount: /var/lib/grub/esp: special device /dev/disk/by-id/ata-HFS256G39TNF-N3A0A_MJ86N89051010730L-part1 does not exist.
Failed: grub-install --target=x86_64-efi
WARNING: Bootloader is not properly installed, system may not be bootable
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Sourcing file `/etc/default/grub.d/63_mint-theme-2k.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/linuxmint-2k/theme.txt
Found linux image: /boot/vmlinuz-5.4.0-74-generic
Found initrd image: /boot/initrd.img-5.4.0-74-generic
Found linux image: /boot/vmlinuz-5.4.0-73-generic
Found initrd image: /boot/initrd.img-5.4.0-73-generic
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings
done
Processing triggers for shim-signed (1.40.4+15+1552672080.a4a1fbe-0ubuntu2) ...
Secure Boot not enabled on this system.
root@mint:/#
5. El usar F10 al inicio del sistema para elegir que inicie el Grub (que muestra Ubuntu) en vez de Windows.. funciona, pero en el "Bios" solo muestra sistemas Windows.
6. DEspués de dos días sin poder trabajar por esta gran molestia y con temor a peder mis datos, decido escribir en este hilo a ver si vosotros que tenéis mucha más soltura que yo y experiencia me podéis ayudar.
Información relevante de contexto:
Mi último fstab modificado (actual)
Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p1 during installation
UUID=2f207c07-10d2-4019-a271-d0e68e07c166 / ext4 errors=remount-ro 0 1
# /Backup was on /dev/sda4 during installation
# cambiado a /dev/nvme1n1p4
UUID=4ED85FD823781303 /Backup ntfs defaults,umask=007,gid=46 0 0
# /Win was on /dev/sda3 during installation
# cambiado a /dev/nvme1n1p3
UUID=74806AB5806A7E0C /Win ntfs defaults,umask=007,gid=46 0 0
# /boot/efi was on /dev/sda1 during installation
# cambiado a /dev/nvme1n1p1
UUID=166A-2F7B /boot/efi vfat umask=0077 0 1
# /home was on /dev/nvme0n1p3 during installation
UUID=ebb3b2f2-ba4e-42c7-8a39-da11ddf5240d /home ext4 defaults 0 2
# swap was on /dev/nvme0n1p2 during installation
UUID=1b94e7a2-a123-45f5-b8b3-d58c33ed6fd1 none swap sw 0 0
fstab original:
Code: Select all
mint@mint:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 1.8G 1 loop /rofs
sda 8:0 1 3.7G 0 disk
├─sda1 8:1 1 1.9G 0 part /cdrom
├─sda2 8:2 1 3.9M 0 part
└─sda3 8:3 1 1.9G 0 part /var/log
nvme1n1 259:0 0 477G 0 disk
├─nvme1n1p1 259:2 0 260M 0 part /media/mint/SYSTEM
├─nvme1n1p2 259:3 0 128M 0 part
├─nvme1n1p3 259:4 0 164.7G 0 part /media/mint/74806AB5806A7E0C
├─nvme1n1p4 259:5 0 293.5G 0 part /media/mint/4ED85FD823781303
├─nvme1n1p5 259:6 0 900M 0 part
├─nvme1n1p6 259:7 0 16.5G 0 part
└─nvme1n1p7 259:8 0 1G 0 part
nvme0n1 259:1 0 465.8G 0 disk
├─nvme0n1p1 259:9 0 75.5G 0 part /media/mint/2f207c07-10d2-4019-a271-d0e68e07c166
├─nvme0n1p2 259:10 0 9.2G 0 part
└─nvme0n1p3 259:11 0 302.8G 0 part /media/mint/ebb3b2f2-ba4e-42c7-8a39-da11ddf5240d
mint@mint:~$[code]
Siguiendo este hilo a difenrencia de lo indicado, como es lógico, monté el SYSTEM donde esta el sistema de arranque EFI de windows (sino me equivoco) después de haber montado el raíz en /mnt y dentro de ese sistema en /mnt/boot que es lo suyo.
Desconozco bien como es la estructura EFI de archivos y donde quizás debería estar el grub instalado, pero como se puede observar en el registro de acciones anterior. Está donde está. He hecho un video del problema de arranque por si hay dudas puedo subirlo a Youtube o compartirlo si eso ayuda en algo. Pero pienso que está ya bien descrito por aquí.
Apreciaría muchísimo cualquier ayuda, pero sobretodo entender... ¿Qué diablos anda tan mal que al portar un "disco" de un equipo a otro muy similar sea tan complejo disponer del sistema Linux Mint (o Linux en general) ?
[b][size=150]
Notas:[/size][/b]
También probé a usar el BootRepair sin exito, al contrario, de repente ya no me aparecía la opción de inciar desde NVMe0 ("ubuntu") y debí usar Live CD
Desde el sistema Linux en el dispositivo NVMe0 la estructura de discos es la siguiente (ahora mismo sin iniciar desde USB Live)
[quote]silverio@14Z980-G-AA52B:~$ sudo blkid
[sudo] contraseña para silverio:
/dev/nvme0n1p1: LABEL="Raiz Linux" UUID="2f207c07-10d2-4019-a271-d0e68e07c166" TYPE="ext4" PARTUUID="372bf53e-4619-41b2-b6a3-973c5825d922"
/dev/nvme0n1p2: UUID="1b94e7a2-a123-45f5-b8b3-d58c33ed6fd1" TYPE="swap" PARTUUID="c5ae57e5-ef46-4327-a4d6-d6ef7b1f510b"
/dev/nvme0n1p3: LABEL="miHome" UUID="ebb3b2f2-ba4e-42c7-8a39-da11ddf5240d" TYPE="ext4" PARTUUID="af8e22d5-ca59-48e1-97b0-38369a0a9671"
/dev/nvme1n1p1: LABEL="SYSTEM" UUID="166A-2F7B" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="444deb3f-5c10-4c82-99a2-2dfd957db459"
/dev/nvme1n1p3: LABEL="windows10" UUID="74806AB5806A7E0C" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="5f22c3a4-3dc1-473d-a0ef-c656f7724520"
/dev/nvme1n1p4: LABEL="backup" UUID="4ED85FD823781303" TYPE="ntfs" PTTYPE="dos" PARTLABEL="Basic data partition" PARTUUID="4321235c-b1e3-4ca0-922b-5fca3f44c424"
/dev/nvme1n1p5: LABEL="WinRE" UUID="F8BE17A6BE175D06" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="5728d991-1a36-4aa4-a0d6-73feedaee359"
/dev/nvme1n1p6: LABEL="Recovery" UUID="E05617D75617ACF2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="7b0f7d75-a087-4eec-a74a-e30ac1fa620a"
/dev/nvme1n1p7: LABEL="LGEFI" UUID="6617-D328" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="e47c2ead-5c95-4af8-961f-4286a8d11050"
/dev/mmcblk0p1: LABEL="mSD16" UUID="80242F2C242F251E" TYPE="ntfs" PARTUUID="784eea65-01"
/dev/nvme1n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="a4aab871-3dbb-41a7-93d4-6c64df554447"
silverio@14Z980-G-AA52B:~$
[/quote]
[b][u]
Imagenes orientativas.[/u][/b]
[attachment=2]sistema29.jpg[/attachment]
[attachment=0]sistema30.jpg[/attachment]
[attachment=1]sistema40.jpg[/attachment]
Equipo inicial: LG Gram 14z..., Equipo actual LG product: 17U70N-J.AA78B
Edito: Pienso que el problema es la estructura de archivos de /BOOT tal y como la tengo, pero si es eso... no sé resolverlo.
Muchas gracias por vuestra labor