FedoraForum.org - Fedora Support Forums and Community
Page 2 of 2 FirstFirst 1 2
Results 16 to 25 of 25
  1. #16
    Join Date
    Aug 2007
    Posts
    177

    Re: Grub2-mkconfig problem

    Try mounting the other root partitions (use nautilus or any other file-manager) before running the grub command.
    This is absolutely not necessary as os-prober scans all partitions for known OSs and can mount and examine file systems itself. There is absolutely no need to have any other file systems mounted.

  2. #17
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    4,603

    Re: Grub2-mkconfig problem

    Amiga is right,
    On Fedora 28 rawhide, /dev/sda, the / partition was closed correctly, and osprober recognized it.

    /dev/sdb is purely my data Disk, , no operating system.

    /dev/sdc is where the second Fedora F27 KDE was installed, and it had a problem with / and it was jumped over by os-prober. Had it been mounted, that operation would have corrected the os-prober and it's recognition of same.
    /dev/sdc was corrected using xfs_repair. The repair was successful and os-prober recognized the F27 KDE.

    /dev/sdd was a temporary Fedora 28 (I temporarily installed it to resolve the os-prober problem). For some reason the / root partition could not be repaired by xfs_repair. backing up and restoring / fixed the problem. Subsequently the Fedora was recognized by os-prober.

    Looking back at what happened, because I could boot any of the /dev/sd{a,c,d} via bios, I conclude that amiga is right. If the disks were pre-mounted, the linux mount command would have corrected whatever setting there was that blocked os-prober.

    For the past three years I have been running multiple Fedora versions (up to 4) concurrently. This is the first time something like this has happened. Now I am aware of what to do to correct same. I do run btrfs file system on a fourth SSD device.
    but it caused other problems with Gnome due to btrfs's "copy on write".

    Thank you all for your help.
    Last edited by lsatenstein; Yesterday at 03:56 PM.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  3. #18
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    4,603

    problem: os-prober anomalie

    I have 5 disks on my system
    /dev/sda Test Fedora 28
    /dev/sdb Data
    /dev/sdc Fedora 27 KDE
    /dev/sdd Data
    /dev/sde Fedora 27 Gnome on SSD

    Today I had a kernel upgrade to version 4.14.3-300.fc27.x86_64. The grub.cfg that was generated
    included the three Fedora installations.
    When manually running grub2-mkconfig from the F27Gnome version, it skips the KDE distribution.

    When I run manually, I was getting stopped by "/etc/grub.d/15_ostree" script. I stored that out of harms away as it causes the manual execution of grub2-mkconfig to fail. (message that I detected "error: opendir(ostree/repo): No such file or directory"

    Anyone else experiencing these two problems? You can test by not directing grub2-mkconfig to a file or directing the output to /tmp/grub.test
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  4. #19
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,399

    Re: Grub2-mkconfig problem

    leslie, please stop creating duplicate topics each time this happens with a kernel update. you can subscribe to this thread and find it again via your user control panel. any further duplicates will be removed and not merged back in.

  5. #20
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    4,603

    Re: Grub2-mkconfig problem

    Antikythera,
    It seems that I can find other's postings more easily than my own. It is discouraging to me too.
    Why is the 15_ostree link within /etc/grub.d pointing to a value that kills grub2-mkconfig, but when it is a kernel update,
    the new grub.cfg seems to just jump over that 15_ostree. I did move that link out but it was recreated with the kernel upgrade.

    As I indicated grub2-mkconfig [enter] displays all the build activities, including error messages. os-prober quits early in the scan process without error messages
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  6. #21
    Join Date
    Nov 2017
    Location
    Havant
    Posts
    100

    Re: Grub2-mkconfig problem

    Quote Originally Posted by amiga
    This is absolutely not necessary as os-prober scans all partitions for known OSs and can mount and examine file systems itself. There is absolutely no need to have any other file systems mounted.
    Choose what you want to believe!, os-prober doesn't work 50% of the time here and never has.
    I see the same on my T410 or desktop PC

    Code:
    os-prober first fail
    
    [leigh@localhost ~]$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg 
    [sudo] password for leigh: 
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-4.13.16-200.fc26.x86_64
    Found initrd image: /boot/initramfs-4.13.16-200.fc26.x86_64.img
    Found linux image: /boot/vmlinuz-4.13.13-200.fc26.x86_64
    Found initrd image: /boot/initramfs-4.13.13-200.fc26.x86_64.img
    Found linux image: /boot/vmlinuz-4.13.12-200.fc26.x86_64
    Found initrd image: /boot/initramfs-4.13.12-200.fc26.x86_64.img
    Found memtest image: /boot/elf-memtest86+-5.01
    Found Fedora 25 (Twenty Five) on /dev/nvme0n1p3
    Found Fedora 28 (Rawhide) on /dev/nvme0n1p5
    done
    [leigh@localhost ~]$ sudo os
    osage      osbs-2.7   osgmlnorm  ospcat     os-prober  osx        
    osbs-2     osd_login  ospam      ospent     ostree
    
    os-prober second fail
         
    [leigh@localhost ~]$ sudo os-prober 
    /dev/nvme0n1p3:Fedora 25 (Twenty Five):Fedora:linux
    /dev/nvme0n1p5:Fedora 28 (Rawhide):Fedora1:linux
    
    Give the crapware it's third and final chance to find F27, how friggin hard can it be to find a plain ext4 partition on the same friggin drive? 
    
    [leigh@localhost ~]$ sudo os-prober 
    /dev/nvme0n1p3:Fedora 25 (Twenty Five):Fedora:linux
    /dev/nvme0n1p5:Fedora 28 (Rawhide):Fedora1:linux
    
    Mount F27 root in nemo then it can find it :rolleyes:
    
    [leigh@localhost ~]$ sudo os-prober 
    /dev/nvme0n1p2:Fedora 27 (Twenty Seven):Fedora:linux
    /dev/nvme0n1p3:Fedora 25 (Twenty Five):Fedora1:linux
    /dev/nvme0n1p5:Fedora 28 (Rawhide):Fedora2:linux
    [leigh@localhost ~]$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg 
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-4.13.16-200.fc26.x86_64
    Found initrd image: /boot/initramfs-4.13.16-200.fc26.x86_64.img
    Found linux image: /boot/vmlinuz-4.13.13-200.fc26.x86_64
    Found initrd image: /boot/initramfs-4.13.13-200.fc26.x86_64.img
    Found linux image: /boot/vmlinuz-4.13.12-200.fc26.x86_64
    Found initrd image: /boot/initramfs-4.13.12-200.fc26.x86_64.img
    Found memtest image: /boot/elf-memtest86+-5.01
    Found Fedora 27 (Twenty Seven) on /dev/nvme0n1p2
    Found Fedora 25 (Twenty Five) on /dev/nvme0n1p3
    Found Fedora 28 (Rawhide) on /dev/nvme0n1p5
    done
    [leigh@localhost ~]$
    https://src.fedoraproject.org/user/leigh123linux
    https://github.com/leigh123linux
    https://admin.rpmfusion.org/pkgdb/packager/leigh123linux/

  7. #22
    Join Date
    Dec 2013
    Location
    United Kingdom
    Posts
    5,399

    Re: Grub2-mkconfig problem

    It's never worked reliably for me either which is why I use rEFInd.

    Give the crapware it's third and final chance to find F27, how friggin hard can it be to find a plain ext4 partition on the same friggin drive?

  8. #23
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    4,603

    Re: Grub2-mkconfig problem

    Hi os-prober users.

    What I have noticed is the following:
    if I run grub2-mkconfig for my own booted distribution, it never fails.
    If one of the other Fedora Linux versions has an unclean (partition not marked as clean), os-prober fails.
    So, in my case
    /dev/sda was clean, (F 28 rawhide -test)
    /dev/sdb -- my data disk had a partition that not marked as "clean" os-prober fails
    /dev/sdc os-prober had quit. KDE version of Fedora on this disk was not picked up.
    /dev/sde --Fedora 27, my daily Fedora 27 is not showing /dev/sda or /dev/sdc Fedora Linux versions

    I posted this bug
    by the way, mounting a partition appears to load the corresponding journal file and mark that partition as clean.
    Ergo, Amiga (comment 16) is right
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  9. #24
    Join Date
    Nov 2017
    Location
    Havant
    Posts
    100

    Re: Grub2-mkconfig problem

    Quote Originally Posted by lsatenstein
    Hi os-prober users.

    What I have noticed is the following:
    if I run grub2-mkconfig for my own booted distribution, it never fails.
    If one of the other Fedora Linux versions has an unclean (partition not marked as clean), os-prober fails.
    So, in my case
    /dev/sda was clean, (F 28 rawhide -test)
    /dev/sdb -- my data disk had a partition that not marked as "clean" os-prober fails
    /dev/sdc os-prober had quit. KDE version of Fedora on this disk was not picked up.
    /dev/sde --Fedora 27, my daily Fedora 27 is not showing /dev/sda or /dev/sdc Fedora Linux versions

    I posted this bug
    by the way, mounting a partition appears to load the corresponding journal file and mark that partition as clean.
    Ergo, Amiga (comment 16) is right
    Try again as your theory has just been proved wrong, the partition was/is clean (systemd runs fsck automatically) .

    Code:
    sudo fsck -a  /dev/nvme0n1p2
    fsck from util-linux 2.31
    F27_ROOT: clean, 428313/2564096 files, 5050891/10238720 blocks
    https://src.fedoraproject.org/user/leigh123linux
    https://github.com/leigh123linux
    https://admin.rpmfusion.org/pkgdb/packager/leigh123linux/

  10. #25
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    4,603

    Re: Grub2-mkconfig problem

    Leigh, I could not create a clean grub.cfg until I mounted the / partitions of the other copies of Fedora.
    I did run fsck via Gparted to clean up each partition on each drive. When I tried to create the grub.cfg, it failed until
    I mounted those drives.
    And after demounting the drives, I was able to once again create the grub.cfg. Mounting/demounting the drive did something.,
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. grub2-mkconfig not completing.
    By lsatenstein in forum F27 Development Forum
    Replies: 1
    Last Post: 13th November 2017, 08:36 AM
  2. [SOLVED] grub2-mkconfig problem
    By lsatenstein in forum Using Fedora
    Replies: 8
    Last Post: 31st July 2017, 03:54 AM
  3. grub2-mkconfig error
    By Pedroski in forum Using Fedora
    Replies: 2
    Last Post: 19th March 2014, 12:39 AM
  4. Why do I have to manually run grub2-mkconfig
    By hmaarrfk in forum Using Fedora
    Replies: 5
    Last Post: 11th February 2013, 08:32 AM
  5. Replies: 0
    Last Post: 27th January 2013, 09:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •