[Bug 681535] Re: Auto-detection of a filesystem of /dev/md0 failed.

Joachim Schiele 681535 at bugs.launchpad.net
Sun Apr 22 19:55:30 UTC 2012


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:
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 <bug-grub at gnu.org>

/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#grub at irc.freenode.net 


parted:
Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  2000kB  1983kB               non-fs   bios_grub
 2      2097kB  3001GB  3001GB               primary

[root at 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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/681535

Title:
  Auto-detection of a filesystem of /dev/md0 failed.

Status in “grub2” package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: grub2

  Setting up grub-pc (1.99~20101124-1ubuntu1) ...
  /usr/sbin/grub-probe: error: no such disk.
  Auto-detection of a filesystem of /dev/md0 failed.
  Please report this together with the output of "/usr/sbin/grub-probe --device-map="/boot/grub/device.map" --target=fs -v /boot/grub" to <bug-grub at gnu.org>
  /usr/sbin/grub-probe: error: no such disk.

  > sudo /usr/sbin/grub-probe --device-map="/boot/grub/device.map" --target=fs -v /boot/grub
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: scanning hd0 for LVM.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: no LVM signature found
  .
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: scanning hd1 for LVM.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: no LVM signature found
  .
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: scanning hd2 for LVM.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: no LVM signature found
  .
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: changing current directory to /dev.
  /usr/sbin/grub-probe: info: changing current directory to snd.
  /usr/sbin/grub-probe: info: changing current directory to by-path.
  /usr/sbin/grub-probe: info: changing current directory to cpu.
  /usr/sbin/grub-probe: info: changing current directory to shm.
  /usr/sbin/grub-probe: info: changing current directory to dri.
  /usr/sbin/grub-probe: info: opening md0.
  /usr/sbin/grub-probe: error: no such disk.

  with grub 1.98+20100804-7ubuntu1:

  > sudo /usr/sbin/grub-probe --device-map="/boot/grub/device.map" --target=fs -v /boot/grub
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd0 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd1 is 1953525168.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: the size of hd2 is 781422768.
  /usr/sbin/grub-probe: info: changing current directory to /dev.
  /usr/sbin/grub-probe: info: changing current directory to snd.
  /usr/sbin/grub-probe: info: changing current directory to by-path.
  /usr/sbin/grub-probe: info: changing current directory to cpu.
  /usr/sbin/grub-probe: info: changing current directory to shm.
  /usr/sbin/grub-probe: info: changing current directory to dri.
  /usr/sbin/grub-probe: info: opening md0.
  ext2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/681535/+subscriptions




More information about the foundations-bugs mailing list