LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-24-2020, 03:16 PM   #1
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Rep: Reputation: Disabled
win7 no longer booting after installed endea linux. need help in undo or recover win7 os


Hii,
I was trying to install linux endea lxqt along side with win7 hdd.
My hardware is legacy bios boot capable only. no efi
1 hdd preinstalled with win7.
Partitioning scheme is MBR
1st partition is 100MB ntfs Boot reversed partition
2nd partition is nftf win7
3rd partition is fat32 Boot mountpoint /boot/efi
4th partition ext4 /root
5th partition swap
Click image for larger version

Name:	b.jpg
Views:	29
Size:	240.6 KB
ID:	35010
Click image for larger version

Name:	a.jpg
Views:	21
Size:	236.4 KB
ID:	35011

I thought it can be easily fix with supergrub, which i used before, it does amazing work. but this time supergrub said it is in efi can't do mbr... or sort of .. hence no way to load windows partition. I suppose MBR has being redirected to /boot/efi bootloader instead a previous win boot loader.

any idea how to fix it back ?
 
Old 12-24-2020, 03:35 PM   #2
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Thanks. But i have got my win7 back.
Thx for this guy.
Code:
https://www.youtube.com/watch?v=9vSnEUrxAFU
 
Old 12-24-2020, 04:19 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Open a terminal and run the sudo commands on this page:
https://endeavouros.com/docs/install...other-systems/
 
Old 12-24-2020, 04:30 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by andrewysk View Post
My hardware is legacy bios boot capable only. no efi
1 hdd preinstalled with win7.
Partitioning scheme is MBR
1st partition is 100MB ntfs Boot reversed partition
2nd partition is nftf win7
3rd partition is fat32 Boot mountpoint /boot/efi
4th partition ext4 /root
5th partition swap
bit weird; you say it's legacy bios, no efi, yet you have efi partitions in there.
 
Old 12-25-2020, 06:07 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,539

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
The images in your initial post clearly show you have selected and EFI install of your Linux while the windows is not EFI. The Grub bootloader won't boot a Legacy install of windows if Grub is EFI. I don't beleive that a default windows can boot any Linux EFI. There are different solutions to this but since you got your windows back, it doesn't matter.

If you decide to try this again, you might do a little research on compatibility of UEFI/Legacy installs with windows/Linux.
 
Old 12-25-2020, 06:31 AM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Quote:
Thanks. But i have got my win7 back.
Thx for this guy
Are you able to boot edea after following the tutorial?
 
Old 12-29-2020, 07:58 AM   #7
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Are you able to boot edea after following the tutorial?
I will have to try again.
After the last post, i have did a lot of trial.. i tried many time.. and read a bit..
I said my laptop don't have EFI.. this laptop was purchased in germany 5 to 6 years ago at around 400 euro (not newest model, hence cheap price), fujitsu a series
There is no EFI mentioned in bios setting.

But there is CSM on/ off button.
And legacy mode on/off for usb plug stick.
Someone told this it was about this time the EFI came to market..
These mixed info made me reconsider what i said ... maybe my laptop do have EFI feature after all.. someone pointed out to me that if not EFI , why then have CSM ? hmm.. *something to ponder about*

I have redo the dual boot installation, 2 more times (a total of 3 times already so far), each time a bit different (to experiment it out), and resulting windows no longer bootable.. i have to do the same repair as shown in the youtube to fix it.
 
Old 12-29-2020, 07:59 AM   #8
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Are you able to boot edea after following the tutorial?
I just read your post, i will try again. After i read more.. have to try again anyway.
 
Old 12-29-2020, 08:01 AM   #9
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
bit weird; you say it's legacy bios, no efi, yet you have efi partitions in there.
Yes, i did quite a lot of asking, reading, testing...
I have become clear what EFI and legacy stuff , understand more as before.
The /boot/efi partition was made in according to the instruction of kalamares during installation.. kalamares asked me to do so, else i will not able to boot up after installation.. hence i did according.. that time i was not that clear of the whole efi and legacy thing.. just follow half blindly..
 
Old 12-29-2020, 08:10 AM   #10
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Until now, i still don't know how to disable efi in my bios setting..
I redo my iso boot usb with the latest endea iso version from github, used lastest version of rufus.. specifically ask it to burn in mbr mode.. did another installtion .. still not working.
when installation, kalamares still tells me my system is in EFI mode and my hdd is in MBR (win7 preinstalled hdd)..
I created 1 primary partition ext4 for "/" , 1 logical ext4 for "/home" and 1 more swap.
During installtion, i flagged the "/" partition as legacy bios boot.. at the end of the linux installation, linux and windows both can't boot up..

hence i used "recovery boot iso" to repair the boot sector back to win7 and create a win7 boot menu.
Then at laptop boot up, there is a boot menu (win7 boot menu style), which i can boot into win7, but not linux (most likely due to no "/boot/efi" folder.

I am so fed up that i was looking for forensis app, trying to disect boot sector to modify the address to boot loader, in the same time do more reading on how these legacy and efi read the boot sector info to boot an os.. oh! so despair.. but not die yet. i will try more.. because there are more info coming in from you guys. Thx

Last edited by andrewysk; 12-29-2020 at 08:12 AM.
 
Old 12-29-2020, 08:14 AM   #11
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
The images in your initial post clearly show you have selected and EFI install of your Linux while the windows is not EFI. The Grub bootloader won't boot a Legacy install of windows if Grub is EFI. I don't beleive that a default windows can boot any Linux EFI. There are different solutions to this but since you got your windows back, it doesn't matter.

If you decide to try this again, you might do a little research on compatibility of UEFI/Legacy installs with windows/Linux.
Can you pls share the "solution" with me. because i want to gather all available info to understand, to make it work.
 
Old 12-29-2020, 08:36 AM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
With the option to turn csm on and off your system is uefi. Windows 7 normally is not setup to boot in efi mode on a uefi system, but instead in csm mode. The grub bootloader boot code needs to be installed in the mode that windows is installed in order to boot windows with grub.

A linux system that is installed in uefi mode, henceforth the grub bootloader installed in uefi mode can easily install grub in csm mode. The other way around takes al little more work
The existence/nonexistence of /sys/firmware/efi what mode linux is booted in.

Last edited by colorpurple21859; 12-29-2020 at 08:49 AM.
 
Old 12-29-2020, 09:04 AM   #13
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,142
Blog Entries: 6

Rep: Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828
Quote:
Until now, i still don't know how to disable efi in my bios setting
UEFI and BIOS are 2 different things.
https://en.wikipedia.org/wiki/Unifie...ware_Interface
https://en.wikipedia.org/wiki/BIOS

If it's a BIOS machine then there is no EFI settings. Perhaps you are speaking of legacy boot, with an EFI machine.

Look in the UEFI setup page for that.

Quote:
at the end of the linux installation, linux and windows both can't boot up..
How was Windows installed?

Quote:
kalamares still tells me my system is in EFI mode and my hdd is in MBR
Yes, EFI machines should be using gpt disks, but your windows install is on a MBR disk.

Here is some general info
https://wiki.archlinux.org/index.php/partitioning
https://wiki.archlinux.org/index.php/MBR
https://wiki.archlinux.org/index.php/GPT
https://wiki.archlinux.org/index.php/UEFI
https://wiki.archlinux.org/index.php...stem_partition
 
Old 12-29-2020, 09:37 AM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
this is assuming /dev/sda6 is still the linux root partition, boot the live installer open a terminal
Code:
sudo apt install grub-pc
sudo mount /dev/sda6 /mnt
sudo grub-install --target=i386-pc --boot-directory=/mnt/boot /dev/sda
reboot, if your able to boot into endea, run
Code:
sudo update-grub

Last edited by colorpurple21859; 12-29-2020 at 09:38 AM.
 
Old 12-29-2020, 03:11 PM   #15
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
UEFI and BIOS are 2 different things.
https://en.wikipedia.org/wiki/Unifie...ware_Interface
https://en.wikipedia.org/wiki/BIOS

If it's a BIOS machine then there is no EFI settings. Perhaps you are speaking of legacy boot, with an EFI machine.

Look in the UEFI setup page for that.


How was Windows installed?


Yes, EFI machines should be using gpt disks, but your windows install is on a MBR disk.

Here is some general info
https://wiki.archlinux.org/index.php/partitioning
https://wiki.archlinux.org/index.php/MBR
https://wiki.archlinux.org/index.php/GPT
https://wiki.archlinux.org/index.php/UEFI
https://wiki.archlinux.org/index.php...stem_partition
My win7 was installed thru liveusb.. the iso i have downloaded from their windows website. i just plugged it in and installed win7.. i have no idea what it uses...


Code:
UEFI classes

UEFI machines can have one of the following "classes", which were used to help ease the transition to UEFI.  

    Class 0: Legacy BIOS
    Class 1: UEFI in CSM-only mode (i.e. no UEFI booting)
    Class 2: UEFI with CSM
I think my laptop is either class 1 or class 2. I don't know how to disable uefi.. That's the big problem.
According to the method of checking legacy bios / efi mode of win7 from itsfoss .. my windows7 is indeed running on legacy bios boot mode.

That does not answered why kalamares shows my system is in EFI instead of legacy bios.
Last night, some one told me could be

Last edited by andrewysk; 12-29-2020 at 03:17 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
Right click menu flickers and gone. Happen mostly on first few right click . Endea Linux andrewysk Linux - Distributions 12 10-01-2020 05:28 PM
Howto: Undo midnight commander (mc) no longer showing hidden files and folders Rava Linux - Software 4 10-25-2014 03:54 PM
UEIF Dual Boot Win7 & CentOS only boots Win7 wigglytoes Linux - General 3 12-30-2013 05:53 AM
[SOLVED] dual booting. i have installed windows vista after ubuntu. want 2 recover grub. hemanthm17 Linux - Newbie 3 08-20-2011 03:21 PM
[SOLVED] After Upgrading from Win7-32 to WIN7-64 can't mount cifs shares pobrika Linux - Networking 2 07-21-2010 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 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