Grub lost Win7 entry
Hello,
im having trouble booting my Win7 partition lately. I haven't used it for a while and i didnt notice that grub lost the Windows entry during the last couple of months. What i tried so far: Code:
sudo os-prober Ive also installed boot-repair, which detects the Win7 partition but does not fix the problem. I tried just to fix the Win boot files, reinstall grub and place the boot flag on the linux partition. I also purged grub once but it didn't help. BootInfo gives me the following output: Quote:
Thank you for your help. |
Hope others know, just wanted to post thoughts....
sdc5 has *. Doesn't that mean bootable? Modern linux may not need but Windows does??? https://en.wikipedia.org/wiki/GNU_GRUB#Version_2_(GRUB) has pretty good info but the machine you are on may make access to /boot too high up on disk. May need to know that. |
please the post the whole boot-info file, not just the parts you think are important.
|
Sorry, i wanted to keep the post as short as possible. Ive uploaded the full Boot-Info to hastebin
https://hastebin.com/ihicosugiy.sql @jefro: Thanks for the Info. I will have a look if i can find a hint an wikipedia. I think that the * shows where the boot flag is though. But thats just a guess of mine ... |
Try changing the boot flag to /dev/sdc1
|
Do you know which drive your windows is installed on?
If you are using MBR (not UEFI) then you can add Windows entry explicitly. Here is how I added windows to debian grub: First, I checked that I have "ntfs" partition on on the second drive (/dev/sdb) Code:
$ sudo parted /dev/sdb print Then, I added appropriate entry Code:
$ cat /etc/grub.d/40_custom I then called Code:
$ sudo update-grub Even without of this entry, you can click "c" on Grub menu, and type Code:
set root=hd1 If you have Windows installed on the same harddrive, but different partition, you should use something like "hd0(1)" That means "disk 0, partition 1". So, in my case I can use ``hd1(0)`` which also works |
Hey,
sorry for my late reply. Thank you for your suggestions. @ colorpurple21859 ive tried setting the boot flag on sdc1 but with no luck @ IlyaK the created custom entry seems not to be detected by grup-update. Code:
Sourcing file `/etc/default/grub' Code:
-rwxr-xr-x 1 root root 285 May 24 23:01 40_custom Code:
#!/bin/sh |
this
Quote:
Syntax errors in the 40_custom file will prevent a menu entry from being generated. If windows bootloader is on the first partition of the first drive, this is the correct syntax Code:
set root=(hd0,1) Code:
set root=(hd0) Code:
set root=(hd2,1) Code:
set root=(hd2) Code:
menuentry "Windows 7" { |
All times are GMT -5. The time now is 12:55 AM. |