LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 09-11-2023, 12:20 PM   #16
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,353

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590

Quote:
Your grub-mkconfig output shows windows found on sda3 which is not going to help in your case as that is a reserved partition which is only 500+MB
Sometimes the windows boot files are stored on this partition.
 
Old 09-11-2023, 12:22 PM   #17
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,353

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
but I'm unclear about where the windows boot is and where the system files are,
The windows boot repair procedure will sort this out.
 
Old 09-12-2023, 10:37 AM   #18
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
I vaguely seem to remember that windows needs a repair / restore (hidden) partition directly adjacent to its C: drive. I can't see anything like that in your screenshot. If anyone here knows more about that ... sorry, I don't use windows since more than 20 years.
 
Old 09-12-2023, 11:35 AM   #19
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
The best source of information on what the microsoft reserved partition is would be the microsoft site. Links below. According to the links below, it is used only on UEFI/GPT systems. You don't have that but the computer is probably capable of it. I don't use windows so can't explain any of it. What I find interesting is that sda3 has the boot flag in your gparted image? If the links below are accurate, having a boot flag on that partition would be pointless. You might try changing the boot flag to sda4 with gparted. Linux systems don't use it. Otherwise try the windows repair tools.

https://answers.microsoft.com/en-us/...6-8c82d828631f

https://learn.microsoft.com/en-us/pr...799232(v=ws.10)

An MBR install such as your would originally have some windows boot code in the MBR and the rest on the system partition which would be what is referred to as C"\ in windows. Some previous versions of windows (7 to be specific) had a separate boot partition. Newer versions of windows have an EFI partition which also includes some boot files. You do not have an EFI install so that is not a concern.

Last edited by yancek; 09-12-2023 at 11:38 AM.
 
Old 09-12-2023, 02:28 PM   #20
golfnut324
LQ Newbie
 
Registered: Feb 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thank you all for the help and good advice. I haven't been able to get the windows 10 usb to boot up. I have about decided to pull the trigger on a full new install of Linux Mint 21.2, double my ram to 32gb and go to vm for windows.

Looking back on it, I think the computer came either with vista or windows 7 and was updated to windows 10. Seems that can cause some bios issues? Over the years I have added many linux applications from 3rd party repositories. Bottom line, it's probably time to have a clean start. All data is backed up on my nas so a few hours of transferring it over should put me back to the good.

Thanks again. You all have been very helpful.
 
Old 09-12-2023, 03:17 PM   #21
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,353

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
I haven't been able to get the windows 10 usb to boot up
How did you create the usb. I think you have to use windows media creator to put the iso onto the usb.

Quote:
Looking back on it, I think the computer came either with vista or windows 7 and was updated to windows 10. Seems that can cause some bios issues?
This system here was originally a windows 7 that was upgraded to windows 10, and now has windows 11 installed on it in dual boot with windows 10. It is a Hp AMD Phenom 9550 Quad-Core Processor system legacy system that came out before uefi and tpm became the standard.

Last edited by colorpurple21859; 09-12-2023 at 03:19 PM.
 
Old 09-13-2023, 06:13 AM   #22
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
Quote:
I haven't been able to get the windows 10 usb to boot up
Did you try setting the boot flag to sda4? What happened?

You could try the entry shown at the link below for windows 7. Since you have 10 but it is in Legacy mode, it should work. Change the set root line to (hd0,4). I would put this in your grub.cfg file and not update grub but just reboot to test. If it fails, just delete that entry in grub.cfg. If the windows boot files are there and were not lost or corrupted when you moved the partition, I would expect it to work.

https://technologytales.com/2010/11/...tu-grub2-menu/

Last edited by yancek; 09-13-2023 at 06:16 AM.
 
Old 09-13-2023, 09:53 AM   #23
golfnut324
LQ Newbie
 
Registered: Feb 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Did you try setting the boot flag to sda4? What happened?
Yes. Not sure it made any difference.

With bios setup to boot iaw 1.png (attached) I get the boot option screen 2.png which is normal. I can boot into linux but if selecting windows 10 results in black screen. Occasionally I get 3.png but none of the options work. The "Recovery" screen flickers and refreshes.

With bios setup to boot iaw 4.png (attached) I get 5.png. Selecting any of those diagnostics or setup utilities opens the Dell applications to check hardware.

Quote:
Originally Posted by yancek View Post
You could try the entry shown at the link below for windows 7.
I will work on this.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	4
Size:	181.4 KB
ID:	41641   Click image for larger version

Name:	2.png
Views:	4
Size:	207.8 KB
ID:	41642   Click image for larger version

Name:	3.png
Views:	3
Size:	174.5 KB
ID:	41643   Click image for larger version

Name:	4.png
Views:	3
Size:	227.0 KB
ID:	41644   Click image for larger version

Name:	5.png
Views:	3
Size:	160.0 KB
ID:	41645  

 
Old 09-13-2023, 11:29 AM   #24
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
I can't read the first image, the part highlighted in blue under settings.

Quote:
Yes. Not sure it made any difference.
Neither am I? Did you make the change? Did you use gparted? If you open gparted, highlight sda4 in the main window, right click on the highlighted partition and select Manage flags and check the box next to boot. If you did/do this, update grub? Does it show an entry for windows? Is it still sda3?
 
Old 09-13-2023, 12:09 PM   #25
golfnut324
LQ Newbie
 
Registered: Feb 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
I can't read the first image, the part highlighted in blue under settings.Boot Sequence
Neither am I? Did you make the change? Did you use gparted? If you open gparted, highlight sda4 in the main window, right click on the highlighted partition and select Manage flags and check the box next to boot. I changed the flag to sda4 and it made no difference wrt my boot to windows issue. If you did/do this, update grub? I am still struggling with this. Trying to make a go of it but it is new territory for me
The instructions at the link you sent have me editing the /etc/grub.d/40_custom file with

menuentry 'Windows 7' {
set root='(hd0,msdos2)'
chainloader +1
}
Is that correct? Or do I enter into the grub.cfg file

menuentry 'Windows 7' {
set root='(hd0,4)'
chainloader +1
}

Does it show an entry for windows? Is it still sda3?
..............................
 
Old 09-13-2023, 12:23 PM   #26
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,353

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
If this doesn't work with the boot flag at partition 3
Code:
menuentry 'Windows 7' {
set root='(hd0,4)'
chainloader +1
}
AT the grub menu press e for edit and change the 4 to a 3, ctrl-x to boot.
If that doesn't work, set the boot flag on partition4 and use the entry as is and/or with a 3.
 
1 members found this post helpful.
Old 09-14-2023, 04:49 AM   #27
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
The simplest method is the suggestion in post 26 above.
In a case where you want to simply test an entry, the next easiest method is to edit grub.cfg and save the change. If you do that, do NOT update grub. If you want a permanent entry, use the 40_custom file suggested in the link. Not much point in doing this until you know it works so go with the suggestion in post 26. This is a one time change, if you reboot to test again you need to use the 'e' key and make the change again.

After you changed the boot flag to sda4 and tried to boot windows, what happened? Black screen, BSOD, error messages? Details needed. If neither option works, mount the windows system partition (sda4) from your Linux and look for a BOOT or BCD directory and/or files. I don't know exactly which files are needed on a Legacy windows system. Depending upon what messages (if any) you get trying to boot windows, the boot files may be missing or corrupted.

Last edited by yancek; 09-14-2023 at 04:53 AM.
 
Old 09-14-2023, 06:16 AM   #28
golfnut324
LQ Newbie
 
Registered: Feb 2016
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thank you both, again.

At the boot menu I press "e" and see this: (see attachment 1)

I edit the 3rd line to set root='hdo,4' then Ctrl+x and I get this: (see attachments 2 & 3)

Then have to force shut down computer.

BTW, in case it helps, at the menuentry line my /boot/grub/grub.cfg reads:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 10 (on /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-08420730420721D4' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 08420730420721D4
else
search --no-floppy --fs-uuid --set=root 08420730420721D4
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	4
Size:	24.8 KB
ID:	41658   Click image for larger version

Name:	2.png
Views:	4
Size:	192.6 KB
ID:	41659   Click image for larger version

Name:	3.jpg
Views:	4
Size:	48.4 KB
ID:	41660  
 
Old 09-14-2023, 12:22 PM   #29
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
How did you move the windows system partition, the one that is now sda4? Did you create sda4 and then move all the windows files to sda4? The UUID you show in the menuentry you posted for sda3 is: 08420730420721D4

Run the blkid command to get the UUID for sda4. If it is not the same, change it in the grub.cfg file and change the set root line to (hd0,4) and reboot to test.

The images you posted (2 and 3) are running memtest and that is not what you want obviously.

Last edited by yancek; 09-14-2023 at 12:25 PM.
 
Old 09-14-2023, 12:27 PM   #30
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,523

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
How did you move the windows system partition, the one that is now sda4? Did you create sda4 and then move all the windows files to sda4? The UUID you show in the menuentry you posted for sda3 is: 08420730420721D4
Run the blkid command to get the UUID for sda4. If it is not the same, change it in the grub.cfg file and change the set root line to (hd0,4) and reboot to test.

The images you posted ( 2 and 3) show you are booting into memtest and the uuid for that partition is a Linux UUID starting with c7d..... (hd0,4) should be a windows UUID. Check the output of blkid (or post here if you are not sure).

Last edited by yancek; 09-14-2023 at 12:29 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I increase my "/" partition space using unallocated space?(bodhi linux) PrathamBhatter Linux - Newbie 3 07-29-2020 05:56 PM
Adding Unallocated space before Linux partition Chrislw324 Linux - Newbie 3 01-30-2019 07:15 PM
[SOLVED] Windows boot partition got unallocated after resizing partition mike54 Linux - Newbie 5 10-28-2011 02:18 PM
moving unallocated disk space into reiserfs partition. GUIPenguin Linux - General 3 04-08-2006 03:07 PM
Using unallocated space to install Suse 9.1 w/ XP (Dual Boot) DocShock SUSE / openSUSE 1 02-13-2005 06:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 04:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration