I'm having a grub2 installation problem
I had an installed system with 4 physical drives:
#1 Windows
#2 Linux Mint
#3 Linux mint
#4 I want to boot from this drive and keep the rest empty. So I just want to install grub2 on a 1 GB partition on this drive.This is an nvme-ssd.
The system used to work after installing the first 3 drives. The boot partition was accidentally already on #4.(Probably caused becuase this drive was accidentally selected with the standard mint installer... ).
When I formatted this drive supprisingly my grub2 was gone. I thought it was on #3. So my #3 installation has no boot option. I'm unable to boot it from bios.
After a day trying to install grub2 manually, I'm still not succesfull.
So now i'm asking for help.
I do would like to do this manual. So I learn and can repeat it in the future.
What I tried was(booting from live-usb):
1. showing devices:
Code: Select all
sudo fdisk -l
Code: Select all
Disk /dev/loop0: 1.7 GiB, 1842749440 bytes, 3599120 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.8 GiB, 500107862016 bytes, 976773168 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: 66F4369E-083D-4C1E-AFC0-92AB7D913A62
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 60561407 60559360 28.9G Linux filesystem
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 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: 1965D484-46F2-4F0D-B935-E0BC8226BE2C
Device Start End Sectors Size Type
/dev/sda1 7815168 976773134 968957967 462G Linux filesystem
/dev/sda2 2048 7815167 7813120 3.7G Linux swap
Partition table entries are not in disk order.
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
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: 762B86F7-7610-4DBB-B27E-66F85FA01A37
Device Start End Sectors Size Type
/dev/sdb1 2048 3907028991 3907026944 1.8T Linux filesystem
Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
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: 794FB41C-9B39-4ACD-962B-83EEED5CD0D6
Device Start End Sectors Size Type
/dev/sdc1 2048 1023999 1021952 499M Windows recovery environment
/dev/sdc2 1024000 1226751 202752 99M EFI System
/dev/sdc3 1226752 1259519 32768 16M Microsoft reserved
/dev/sdc4 1259520 3907028991 3905769472 1.8T Microsoft basic data
Disk /dev/sdi: 7.5 GiB, 8015314944 bytes, 15654912 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: 0xaff9ac97
Device Boot Start End Sectors Size Id Type
/dev/sdi1 * 2048 15654911 15652864 7.5G c W95 FAT32 (LBA)
2. formatting drive (gparted )
1gb ext4.
with error
realised this writing this topic :s :
e2label: No such file or directory while trying to open /dev/nvme0n1p1
Couldn't find valid filesystem superblock.
Couldn't find valid filesystem superblock.
3. mounting:
Code: Select all
mount /dev/nvme0n1 /boot
Code: Select all
mount: wrong fs type, bad option, bad superblock on /dev/nvme0n1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
Code: Select all
mount /dev/nvme0 /boot
Code: Select all
mount: /dev/nvme0 is not a block device
I still dont know how to solve
4. installing grub.
Code: Select all
sudo grub-install /dev/nvme0
Code: Select all
grub-probe: error: failed to get canonical path of `aufs'.
Installing for i386-pc platform.
grub-install.real: error: failed to get canonical path of `aufs'.
The goal is not to do a complete install on #4. This would be easy doing an automatic install .
I want to keep this drive empty. Except for the 1 gb boot partition.
Thanks in advance.