Originally Posted by
dino99
The 2nd link seems to have worked.
Code:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/loop0: 1.4 GiB, 1479708672 bytes, 2890056 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: 477 GiB, 512110190592 bytes, 1000215216 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: gpt
Disk identifier: 70EF62F0-9A2D-4258-AA52-668B616E3259
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 8802829 8800782 4.2G EFI System
/dev/nvme0n1p2 8804352 12023807 3219456 1.5G Linux swap
/dev/nvme0n1p3 12023808 933806079 921782272 439.6G Linux filesystem
/dev/nvme0n1p4 933806080 964258176 30452097 14.5G EFI System
/dev/nvme0n1p5 964259840 1000214527 35954688 17.1G Linux filesystem
Disk /dev/sda: 29.9 GiB, 32080200192 bytes, 62656641 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: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 62656511 62654464 29.9G c W95 FAT32 (LBA)
ubuntu@ubuntu:~$ sudo mount /dev/nvme0n1p3 /mnt
ubuntu@ubuntu:~$ sudo mount /dev/nvme0n1p4 /mnt/boot/efi
ubuntu@ubuntu:~$ for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
ubuntu@ubuntu:~$ sudo chroot /mnt
root@ubuntu:/# grub-install /dev/nvme0n1
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@ubuntu:/# update-grub
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-5.0.2-050002-generic
Found initrd image: /boot/initrd.img-5.0.2-050002-generic
Found linux image: /boot/vmlinuz-4.4.0-150-generic
Found initrd image: /boot/initrd.img-4.4.0-150-generic
Found linux image: /boot/vmlinuz-4.4.0-148-generic
Found initrd image: /boot/initrd.img-4.4.0-148-generic
Found linux image: /boot/vmlinuz-4.4.0-83-generic
Found initrd image: /boot/initrd.img-4.4.0-83-generic
Adding boot menu entry for EFI firmware configuration
done
root@ubuntu:/#
But now I am stuck in "emergency mode". I can't access the GUI at all.
Yes, I tried to bring up "journalctl -xb", but I can't copy and paste it (because, stuck in GUI mode), and the log is HUGE. Even if I took a picture of it, it would be tons of pictures.
"fsck" shows that "/dev/nvme0n1p3" is "clean". What the --?!?
Please help. I'll extend the "death sentence" to this weekend, but if I can't fix it by then, it's the death penalty for this hard drive.
Bookmarks