Re: getting core dump with grub2-mkconfig on systems with windows7 partitions?? (No windows menu entry?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9 Mar 2025 at 5:37, Michael D. Setzer II via user wrote:

To:             	Community support for Fedora users 
<users@xxxxxxxxxxxxxxxxxxxxxxx>
Date sent:      	Sun, 09 Mar 2025 05:37:13 +1000
Subject:        	Re: getting core dump with grub2-mkconfig on 
systems with windows7
	partitions??
Priority:       	normal
Send reply to:  	mikes@xxxxxxxx,
	Community support for Fedora users 
<users@xxxxxxxxxxxxxxxxxxxxxxx>
From:           	"Michael D. Setzer II via users" 
<users@xxxxxxxxxxxxxxxxxxxxxxx>
Copies to:      	Camina Shell 
<fedoraproject.5cqga@xxxxxxxxxxx>,
	"Michael D. Setzer II" <mikes@xxxxxxxx>

> On 8 Mar 2025 at 13:53, Camina Shell via users wrote:
> 
> Subject:        	Re: getting core dump with grub2-mkconfig on 
> systems with windows7
> 	partitions??
> To:             	users@xxxxxxxxxxxxxxxxxxxxxxx
> Date sent:      	Sat, 08 Mar 2025 13:53:50 -0000
> Send reply to:  	Community support for Fedora users 
> <users@xxxxxxxxxxxxxxxxxxxxxxx>
> From:           	Camina Shell via users 
> <users@xxxxxxxxxxxxxxxxxxxxxxx>
> Copies to:      	Camina Shell 
> <fedoraproject.5cqga@xxxxxxxxxxx>
> 
> > Running os-prober on its own also reveals this seg fault.
> > 
> > ❯ sudo os-prober
> > /dev/nvme2n1p1@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
> > /usr/libexec/os-probes/50mounted-tests: line 186: 224295 Segmentation fault      (core dumped) grub2-mount "$partition" "$tmpmnt" 2> /dev/null
> > -- 
> 
> Did a test with grub2-probe and it gives same Segmentation fault 
> on nfts partitions. Note book had 9 partitions.
> 
> for a in $(cat /proc/partitions | grep sda. | cut -b26-40); do echo -n 
> /dev/$a" " ; grub2-probe -d /dev/$a; done
> /dev/sda1 Segmentation fault (core dumped)
> /dev/sda2 Segmentation fault (core dumped)
> /dev/sda3 Segmentation fault (core dumped)
> /dev/sda4 grub2-probe: error: cannot find a GRUB drive for 
> /dev/sda4.  Check your device.map.
> /dev/sda5 ext2
> /dev/sda6 grub2-probe: error: ../grub-core/kern/fs.c:123:unknown 
> filesystem.
> /dev/sda7 ext2
> /dev/sda8 ext2
> /dev/sda9 ext2
> 
> Also, noticed /etc/filesystems and /proc/filesystems don't have ntfs??
> 
> Partitions on this notebook.
> 
> /dev/sda1            2048   39847935   39845888    19G 27 Hidden 
> NTFS WinRE
> /dev/sda2  *     39847936   40052735     204800   100M  7 
> HPFS/NTFS/exFAT
> /dev/sda3        40052736  379084799  339032064 161.7G  7 
> HPFS/NTFS/exFAT
> /dev/sda4       379084800 1953523711 1574438912 750.8G  5 
> Extended
> /dev/sda5       714633216  716730367    2097152     1G 83 Linux
> /dev/sda6       716732416  724756479    8024064   3.8G 82 Linux 
> swap / Solaris
> /dev/sda7       724758528  835887103  111128576    53G 83 Linux
> /dev/sda8       835889152 1953523711 1117634560 532.9G 83 
> Linux
> /dev/sda9       379086848  714631167  335544320   160G 83 Linux
> 

Actually rebooted machine to check what windows option was 
showing, and found that there was no option to select windows 
from the grub2 menu??
Looking at grub.cfg found.
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

Then manually added this to have it have an option for windows?
The worked fine to boot the windows, but will require manually 
updating grub.cfg after running a grub2-mkconfig or other similar 
process.

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7" {
    insmod ntfs
    set root=(hd0,2)  # Modify this to match your Windows partition
    chainloader +1
}
### END /etc/grub.d/30_os-prober ###

Note both machines had Windows 7 from Acer installed, and don't 
seem to be be EFI setup, so just the regular ntldr setup.

Hadn't booted machine to Windows 7 for a long time, but had 
worked fine in past?
So, issue is bigger than an error message that does make a 
difference?

Thanks.


> 
> 
> 
> > _______________________________________________
> > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> > Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
> > Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
> 
> 
> +------------------------------------------------------------+
>  Michael D. Setzer II - Computer Science Instructor (Retired)     
>  mailto:mikes@xxxxxxxx                            
>  mailto:msetzerii@xxxxxxxxx
>  mailto:msetzerii@xxxxxxx
>  Guam - Where America's Day Begins                        
>  G4L Disk Imaging Project maintainer 
>  http://sourceforge.net/projects/g4l/
> +------------------------------------------------------------+
> 
> 
> 
> -- 
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
> Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue


+------------------------------------------------------------+
 Michael D. Setzer II - Computer Science Instructor (Retired)     
 mailto:mikes@xxxxxxxx                            
 mailto:msetzerii@xxxxxxxxx
 mailto:msetzerii@xxxxxxx
 Guam - Where America's Day Begins                        
 G4L Disk Imaging Project maintainer 
 http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+



-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux