i am using this setup:
GPT on sda and sdb (see parted paste below)
/dev/sda2 + /dev/sdb2 = /dev/md0
/dev/md0 is a pv (for lvm)
i installed my nixos system (yes no ubuntu) into /dev/myVolGrp/system and i'm not using an additional boot partition as /dev/sda1 or /dev/sdb2; they are only there so that i can put grub2 stuff there. my system is directly booted from lvm;
so why do i post this, because i had a similar error:
nixos-rebuild switch --fast
building the system configuration...
updating GRUB 2 menu...
installing the GRUB bootloader on /dev/sda...
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: error: no such disk.
Auto-detection of a filesystem of /dev/mapper/myVolGrp-system failed.
Try with --recheck.
If the problem persists please report this together with the output of "/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe --device-map="/boot/grub/device.map" --target=fs -v /boot/grub" to <email address hidden>
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe --device-map="/boot/grub/device.map" --target=fs -v /boot/grub
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: Cannot stat `/dev/disk/by-id/scsi-35000c5003f556643', skipping.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: Cannot stat `/dev/disk/by-id/scsi-35000c5003f5363a6', skipping.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to /dev.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to pts.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to shm.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to myVolGrp.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to md.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to disk.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to by-label.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to by-uuid.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to by-partlabel.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to by-partuuid.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to by-path.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to by-id.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to snd.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: changing current directory to mapper.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: info: opening myVolGrp-system.
/nix/store/iaypdz5mm1qk8izs9412cb28v9vwwcn4-grub-1.99/sbin/grub-probe: error: no such disk.
but all i did was:
cd /boot/grub
cat device.map
(hd0) /dev/disk/by-id/scsi-35000c5003f556643
(hd1) /dev/disk/by-id/scsi-35000c5003f5363a6
then
rm /boot/grub/device.map
and after i had removed the device.map file, grub-install would just work!
hope this helps someone.
thanks a lot to Jordan_U#<email address hidden>
parted:
Number Start End Size File system Name Flags
1 17.4kB 2000kB 1983kB non-fs bios_grub
2 2097kB 3001GB 3001GB primary
[root@nix9000:~]# lvdisplay
--- Logical volume ---
LV Path /dev/myVolGrp/system
LV Name system
VG Name myVolGrp
LV UUID pszfD0-hAY8-A0QS-SFCr-ZI77-5KYP-QL2ziR
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
--- Logical volume ---
LV Path /dev/myVolGrp/swap
LV Name swap
VG Name myVolGrp
LV UUID LE9YTS-wKUP-3VCb-Wv2t-WLEf-xgP6-h2yrX6
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 2
LV Size 8.00 GiB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
pvdisplay
--- Physical volume ---
PV Name /dev/md127
VG Name myVolGrp
PV Size 2.73 TiB / not usable 888.00 KiB
Allocatable yes
PE Size 4.00 MiB
Total PE 715396
Free PE 700548
Allocated PE 14848
PV UUID 22ycjZ-h0Bd-fPqc-4FMZ-CZcw-KIXb-S2gnEX
i'm using grub 1.99
i am using this setup:
GPT on sda and sdb (see parted paste below)
/dev/sda2 + /dev/sdb2 = /dev/md0
/dev/md0 is a pv (for lvm)
i installed my nixos system (yes no ubuntu) into /dev/myVolGrp/ system and i'm not using an additional boot partition as /dev/sda1 or /dev/sdb2; they are only there so that i can put grub2 stuff there. my system is directly booted from lvm;
so why do i post this, because i had a similar error: iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: error: no such disk. myVolGrp- system failed. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe --device- map="/boot/ grub/device. map" --target=fs -v /boot/grub" to <email address hidden>
nixos-rebuild switch --fast
building the system configuration...
updating GRUB 2 menu...
installing the GRUB bootloader on /dev/sda...
/nix/store/
Auto-detection of a filesystem of /dev/mapper/
Try with --recheck.
If the problem persists please report this together with the output of "/nix/store/
/nix/store/ iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe --device- map="/boot/ grub/device. map" --target=fs -v /boot/grub iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: Cannot stat `/dev/disk/ by-id/scsi- 35000c5003f5566 43', skipping. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: Cannot stat `/dev/disk/ by-id/scsi- 35000c5003f5363 a6', skipping. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to /dev. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to pts. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to shm. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to myVolGrp. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to md. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to disk. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to by-label. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to by-uuid. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to by-partlabel. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to by-partuuid. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to by-path. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to by-id. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to snd. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: changing current directory to mapper. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: info: opening myVolGrp-system. iaypdz5mm1qk8iz s9412cb28v9vwwc n4-grub- 1.99/sbin/ grub-probe: error: no such disk.
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
/nix/store/
but all i did was: by-id/scsi- 35000c5003f5566 43 by-id/scsi- 35000c5003f5363 a6
cd /boot/grub
cat device.map
(hd0) /dev/disk/
(hd1) /dev/disk/
then device. map
rm /boot/grub/
and after i had removed the device.map file, grub-install would just work!
hope this helps someone.
thanks a lot to Jordan_U#<email address hidden>
parted:
Number Start End Size File system Name Flags
1 17.4kB 2000kB 1983kB non-fs bios_grub
2 2097kB 3001GB 3001GB primary
[root@nix9000:~]# lvdisplay system hAY8-A0QS- SFCr-ZI77- 5KYP-QL2ziR
--- Logical volume ---
LV Path /dev/myVolGrp/
LV Name system
VG Name myVolGrp
LV UUID pszfD0-
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
--- Logical volume --- wKUP-3VCb- Wv2t-WLEf- xgP6-h2yrX6
LV Path /dev/myVolGrp/swap
LV Name swap
VG Name myVolGrp
LV UUID LE9YTS-
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 2
LV Size 8.00 GiB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
pvdisplay h0Bd-fPqc- 4FMZ-CZcw- KIXb-S2gnEX
--- Physical volume ---
PV Name /dev/md127
VG Name myVolGrp
PV Size 2.73 TiB / not usable 888.00 KiB
Allocatable yes
PE Size 4.00 MiB
Total PE 715396
Free PE 700548
Allocated PE 14848
PV UUID 22ycjZ-