[SOLVED] win7 no longer booting after installed endea linux. need help in undo or recover win7 os
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hii, your method is something new.
I would love to try that out.
Before that i have tried the commands in my other endea kde laptop.
among the 3 commands.. only 1 exist.
command not found:
update-grub
grub-pc
this package is available
grub-install
so, should i install "update-grub and grub-pc" before hand ?
In an earlier post, you indicated there was no option to disable EFI, pretty common. You also said there was an option to turn CSM on or off, make sure it is on. Your system is booting from the install media in EFI mode and you should be booting in Legacy mode with CSM enabled/on
In your last post you indicate several commands fail. I've never hears of the Linux OS you are trying to use and can't find it online but some of the commands such as update-grub are basically used on Ubuntu and several other systems. The standard command and the script that is actually run from 'update-grub' is grub-mkconfig. Look in your /boot/grub directory to see if you have a directory named i386-pc. If you don't, just copy it there from /usr/lib/grub directory and run grub-install as suggested again.
If whatever OS you are actually trying to install isn't a Debian/Ubuntu derivative it likely doesn't use apt or apt-get. Is it?
In an earlier post, you indicated there was no option to disable EFI, pretty common. You also said there was an option to turn CSM on or off, make sure it is on. Your system is booting from the install media in EFI mode and you should be booting in Legacy mode with CSM enabled/on
In your last post you indicate several commands fail. I've never hears of the Linux OS you are trying to use and can't find it online but some of the commands such as update-grub are basically used on Ubuntu and several other systems. The standard command and the script that is actually run from 'update-grub' is grub-mkconfig. Look in your /boot/grub directory to see if you have a directory named i386-pc. If you don't, just copy it there from /usr/lib/grub directory and run grub-install as suggested again.
If whatever OS you are actually trying to install isn't a Debian/Ubuntu derivative it likely doesn't use apt or apt-get. Is it?
Yes, i have turned on CSM all the time. because without it, i simply can't boot into win7 .
Code:
Your system is booting from the install media in EFI mode and you should be booting in Legacy mode with CSM enabled/on
Yes, i want the linux usb stick to boot in legacy bios boot mode (CSM is always on), but it just telling me my system is EFI enabled (during installation).
When i boot up from liveusb, the grub menu option for installation of Endea linux already indicates UEFI..
I have burn this Endea linux into usbstick using Rufus (i have specificly selected MBR) when i do the burning.
Yes, I do have i386-pc . May i know what is it for ?
Yes, i am using endea.. the apt install is not available. I should be using pacman -S instead.
Post the website where you downloaded the iso from and the full name of the iso you are using.
I think it is from here. The latest version .
However, i have tried a older version downloaded from endeavouros website (which was a few months old iso), it was having exact same problem.. only then i tried Github version.. both having exact same problem.
reboot, if your able to boot into endea, run
Code:
sudo update-grub
This is what i have done. I again install the linux, refuse to install /boot/efi when it prompted me warning..
rebooted, but laptop prompt cant' find bootable device or such error..
I used "boot repair iso" stick to fix the MBR again.. then it able to show windows boot menu with win7 and endea.
Win7 loaded fine, but endea only goes in as much as grub>
Hence i didnt try
Yes, I do have i386-pc . May i know what is it for ?
The i386 directory and contents are used for a Legacy/CSM install so if you have that directory on the usb of Endea, you should be able to install Legacy/CSM. The x86_64-efi directory and its contents are used for an EFI install.
x86_64 is for 64 bit processors. i386 is for 32 bit processors.
If you scroll down in the bootinfo output to the section labelled UEFI, you can clearly see EFI entries for windows there and also that at some point, windows was installed EFI with an EFI partition (sda1). sda1 is no longer an EFI partition. It also shows the drive is not GPT which is required for an EFI install of windows. Not sure what happened there?
The bootinfoscript also shows syslinux as well as grub installed on sda3 but no grub.cfg file is shown. I would expect that executing the commands suggested above would boot Endeavour.
For now this is a mess,
The ops first post about the system is full of miss-information at this point, It is a uefi system booting window 7 in legacy mode, the partition table shown in the first post pics, is no longer valid due to the reinstalls.
That op says there is an entry for endea in windows bootloader, which suggest the op maybe using easybcd.
The boot repair suggest that syslinux is install to the mbr of the drive, I think syslinux is broken based on the last few lines of post #20.
The grub set command shows grub bootcode installed at /dev/sda6 looking for the grub.cfg at /dev/sda6/boot/grub, sda6 is mounted at /home in the fstab for endea,
edit, I changed the grub-mkconfig command in post 23
Last edited by colorpurple21859; 12-30-2020 at 09:19 AM.
The i386 directory and contents are used for a Legacy/CSM install so if you have that directory on the usb of Endea, you should be able to install Legacy/CSM. The x86_64-efi directory and its contents are used for an EFI install.
x86_64 is for 64 bit processors. i386 is for 32 bit processors.
The bootinfoscript also shows syslinux as well as grub installed on sda3 but no grub.cfg file is shown. I would expect that executing the commands suggested above would boot Endeavour.
Hii yancek,
Quote:
If you scroll down in the bootinfo output to the section labelled UEFI, you can clearly see EFI entries for windows there and also that at some point, windows was installed EFI with an EFI partition (sda1). sda1 is no longer an EFI partition. It also shows the drive is not GPT which is required for an EFI install of windows. Not sure what happened there?
When you said above, were you refering to "boot repair summary" ?
I suppose the "EFI entries for windows" was due to i did a "install grub into sda partition" that i tried out last night (using boot repair iso)..
This should allow to boot into system, at the grub prompt
Code:
grub> linux (hd0,3)/boot/vmlinuz-linux root=/dev/sda3
grub> initrd (hd0,3)/boot/initramfs-linux.img
grub> boot
after booting into endea, open a terminal
Code:
sudo grub-mkconfig -o /home/boot/grub/grub.cfg
reboot this should give you back your grub menu and the ability to boot back into your system
Are you using easybcd to boot linux from windows boot menu?
i used easybcd once to add the linux into windows boot menu. but it does not work. (added linux in window boot menu, but does not run linux)
Not remember if i used easy bcd successfully to fix windows issue the other time or not.. i guess not (if i have windows boot issue, i won't be able to boot in windows to use easybcd).
This should allow to boot into system, at the grub prompt
Code:
grub> linux (hd0,3)/boot/vmlinuz-linux root=/dev/sda3
grub> initrd (hd0,3)/boot/initramfs-linux.img
grub> boot
after booting into endea, open a terminal
Code:
sudo grub-mkconfig -o /home/boot/grub/grub.cfg
reboot this should give you back your grub menu and the ability to boot back into your system
Wow! @colorpurple21859,
Genius!... You are the Guru of Linux !
It works.. ! my windows boot menu is working! and linux grub is working! lol
The first of the kind, Double boot menu (first windows boot menu, then grub menu) lol
windows boot menu created by Easybcd (created when i first used it to fix boot)
windows boot menu
-------------------
win7 > boot into win7
endea linux > go to grub menu
grub boot menu
--------------
1st three > boot to linux in their own designated way
4th win7 sda1 > boot into win7
5th win7 sda2 > loop back to windows boot menu
At least it works!! .
Q1.
May i know what is linux now in ? EFI or legacy ? how to check (my brain freezed.. too much info at one shoot ..lol)
Q2.
I don't know how to remove the win7 boot menu.. i suppose i can use easybcd to remove it ? so that i can straight away go into grub menu
*Since grub menu is accessed from win7 boot menu, if i remove win7 boot menu, will it causes grub is no longer accessible or no longer working ?
Q3.
In grub menu: 5th boot option (win7 sda2) is not the bootloader of win7.. hence can be remove..
i will learn to change it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.