You are not logged in.

#1 2016-01-09 07:53:59

gbj13
Member
Registered: 2010-05-06
Posts: 109

Problems with os-prober and grub

Hi, i had to re-install arch recently aadn wanted to use grub to boot into Windows 8.1 to rescue some documents.

the problem is that when I run grub-mkconfig -o /boot/grub/grub.cfg os prober fails with the following error

gbj@gord /h/gbj> grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-ck
Found initrd image: /boot/initramfs-linux-ck.img
Found fallback initramfs image: /boot/initramfs-linux-ck-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
umount: /var/lib/os-prober/mount: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)
rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy
rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy
rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy
done

My lsblk -f gives me this code

gbj@gord /h/gbj> lsblk -f
NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
sda                                                      
|-sda1                                                   
|-sda2 ntfs         6A7419BE74198E47                     /var/lib/os-prober/mount
`-sda5 ext4   arch  533d9b4f-1b4a-d101-4038-9b4f1b4ad101 /
sdb                                                      
|-sdb1                                                   
|-sdb5 ext4   hdd2  ff9a1f6d-58aa-cf01-3010-1f6d58aacf01 /mnt/hdd02
`-sdb6 ntfs   games 0BE9475D497F7B21                     
sdc                                                      
`-sdc1 ext4         141112ad-f181-4900-a110-a567a2d083ea /mnt/hdd01
sr0     

Many thanks for your help,

Offline

#2 2016-01-09 11:20:04

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Problems with os-prober and grub

So can you unmount /var/lib/os-prober/mount manually? Have you checked what's using it as the instruction told? Did you cd into somewhere of it?

Offline

#3 2016-01-09 11:26:56

gbj13
Member
Registered: 2010-05-06
Posts: 109

Re: Problems with os-prober and grub

I can indeed cd into the empty directory /var/lib/os-prober/mount.  umount /var/lib/os-prober/mount gives no errors, grub-mkconfig -o /boot/grub/grub.cfg works as expected, but it does not detect my windows 8.1 installation.

Offline

#4 2016-01-09 11:48:20

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: Problems with os-prober and grub

By works as expected do you mean this shows up every time or now nothing about os-prober or Windows is mentioned when you run grub-mkconfig?

umount: /var/lib/os-prober/mount: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)
rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy
rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy
rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy

Do you still have os-prober installed? Is there any output if you run os-prober directly with root?

Offline

#5 2016-01-09 11:50:03

gbj13
Member
Registered: 2010-05-06
Posts: 109

Re: Problems with os-prober and grub

No os-prober gives no output when running as root hmm n And I meant that even tough I unmount /var/lib/os-prober/mount os-prober does not find windows when I run grub-mkconfig -o /boot/grub/grub.cfg

It is because even tough I unmount the directory successfylly I get the following errors:

Generating grub configuration file ...
Found theme: /boot/grub/themes/Elegant-GRUB2-master/theme.txt
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-linux-ck
Found initrd image: /boot/initramfs-linux-ck.img
Found fallback initramfs image: /boot/initramfs-linux-ck-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
umount: /var/lib/os-prober/mount: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)
rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy
rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy
rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy
done

Last edited by gbj13 (2016-01-09 11:54:00)

Offline

#6 2016-01-09 13:05:06

gbj13
Member
Registered: 2010-05-06
Posts: 109

Re: Problems with os-prober and grub

I ran a script I found online.  Boot info script, and these are the results:

                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 114 for .
 => No boot loader is installed in the MBR of /dev/sdb.
 => No boot loader is installed in the MBR of /dev/sdc.

sda1: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Arch Linux ()
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Windows/System32/winload.exe

sdb1: __________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 

sdb5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb6: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdc1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________
Disk /dev/sda: 119.2 GiB, 128035676160 bytes, 250069680 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

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1               1,985   103,247,871   103,245,887   f W95 Extended (LBA)
/dev/sda5               2,048   103,247,871   103,245,824  83 Linux
/dev/sda2         103,247,872   250,066,943   146,819,072   7 NTFS / exFAT / HPFS


Drive: sdb _____________________________________________________________________
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: dos

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1               1,985 3,907,022,847 3,907,020,863   f W95 Extended (LBA)
/dev/sdb5               2,048 1,836,302,335 1,836,300,288  83 Linux
/dev/sdb6       1,836,304,384 3,907,022,847 2,070,718,464   7 NTFS / exFAT / HPFS


Drive: sdc _____________________________________________________________________
Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 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

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdc1                   1 1,953,525,167 1,953,525,167  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sdc1           2,048 1,953,523,711 1,953,521,664 Data partition (Linux)

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda2        6A7419BE74198E47                       ntfs       
/dev/sda5        533d9b4f-1b4a-d101-4038-9b4f1b4ad101   ext4       arch
/dev/sdb5        ff9a1f6d-58aa-cf01-3010-1f6d58aacf01   ext4       hdd2
/dev/sdb6        0BE9475D497F7B21                       ntfs       games
/dev/sdc1        141112ad-f181-4900-a110-a567a2d083ea   ext4       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/sda5        /                        ext4       (rw,noatime,discard,data=ordered)
/dev/sdb5        /mnt/hdd02               ext4       (rw,relatime,data=ordered)
/dev/sdc1        /mnt/hdd01               ext4       (rw,relatime,data=ordered)

Offline

Board footer

Powered by FluxBB