LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums 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 01-30-2018, 11:24 AM   #1
Lord_Sisa
LQ Newbie
 
Registered: Jan 2018
Posts: 1

Rep: Reputation: Disabled
Tried to make a dual boot earlier, ended up breaking my laptop's boot sector.


As stated on the title my boot sectore is damaged and I have no way of booting to windows nor linux, the only I can boot into linux is through a usb with a boot repair. Boot rrpair stated "Boot successfully repaired" but after ejecting the usb drive and restarted my pc, it was as it was before the repair.

attached is a pastebin like with more details

http://paste.ubuntu.com/26489155/
 
Old 01-30-2018, 01:27 PM   #2
redfox2807
Member
 
Registered: Jul 2012
Distribution: Debian testing/stable, Gentoo, CentOS 7, Sailfish OS, Android
Posts: 167

Rep: Reputation: 31
What happens when you try to boot your machine? Do you get the grub console or the EFI message that EFI partition is not found?

Your boot partition seems to be OK. The only problem with it as I can see, you have way to many loaders installed.

Try to get to EFI setup, and set ubuntu/shimx64.efi as the default bootloader. Either you can disable secure boot and set the bootloader to ubuntu/grubx64.efi
 
Old 01-30-2018, 01:40 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 12,016

Rep: Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877
Boot repair indicates that you have windows 8 installed, is that correct?
You have windows code in the MBR plus you have an EFI partition. Did you install windows or was it pre-installed? Pre-installed windows 8 is almost always EFI so there should be no boot code in the MBR.

When you boot, do you see a Grub or windows boot menu? If you see the Grub menu. what happens when you select an OS and try to boot?
You should set it to boot EFI in the BIOS. You should have a key to tap on the keyboard on boot. It should show on the screen for a few seconds and you should see an option to select boot from EFI file. Select windows or Ubuntu "/EFI/ubuntu/shimx64.efi file!" and post back the results.

There seems to be a problem with sda3 which appears to be your windows system partition. Doubt you can fix that with any Linux.
If you get a Grub menu or grub prompt (grub>) you might be able to boot by entering each of these lines, hit the Enter key after each line before typing the next line and see if it boots. Post back the results.

Quote:
insmod part_gpt
insmod fat
set root='hd0,gpt2'
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
 
Old 01-30-2018, 03:30 PM   #4
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by yancek View Post
There seems to be a problem with sda3 which appears to be your windows system partition.
There's nothing wrong with this Microsoft reserved partition, these are never formatted with a filesystem. Not sure what it's reserved for, maybe Microsoft root kits

Line 1049 and 1050
Quote:
=================== Advices
Please disable SecureBoot in the BIOS. Then try again.Do you want to continue?
Line 716 to 718
Quote:
=================== UEFI/Legacy mode:
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot enabled.
Everything looks good except for the red stuff above.

Last edited by Brains; 01-30-2018 at 03:44 PM.
 
Old 01-30-2018, 05:02 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 12,016

Rep: Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877
The problem the OP is experiencing is that he cannot boot EITHER windows or Linux and having Secure Boot enabled should have no effect on booting windows.

The OP has mixed an MBR and EFI install, both systems have EFI files so he needs to boot from an EFI file which he should be able to do from the BIOS. Since he has a GPT partitioning scheme and windows only boots to GPT with EFI, he needs to use EFI to boot.
 
Old 01-30-2018, 06:11 PM   #6
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
The most likely cause for Windows 10 not booting is because it's partition was not resized by Windows 10. EFI boot don't look at the MBR, it looks for a FAT system partition. And the OP should do a full recovery with the recovery drive they were told to create. These problems will persist when Windows 10 has it's next cumulative update because the WinRE partition that used to be after the OS partition is not there anymore, which will be recreated as a result during the next cumulative update. The problems for lack of research has only just begun.
 
Old 01-30-2018, 06:41 PM   #7
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
When UUID of partitions change, the boot files need to be updated to reflect the change. In /etc/default/grub of Linux using grub, you can configure grub not to use UUID, then after update-grub command is issued the change will take effect, I have two Debian testing installations, they are actual mirror image of each other with same partition UUID, and I can boot either one at will. If Windows partition UUID changes, it needs to know.
 
Old 01-31-2018, 06:41 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 12,016

Rep: Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877Reputation: 2877
Quote:
The most likely cause for Windows 10 not booting is because it's partition was not resized by Windows 10.
Might be, we could assume that as well as anything but, who knows?

Quote:
EFI boot don't look at the MBR, it looks for a FAT system partition
Which is why I suggested he look for an EFI file an boot it??

The OP hasn't been back so hopefully, he resolved the issue.
 
  


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
[SOLVED] Messed up boot sector - dual boot linux 64bit and linux 32bit littlejoe5 Linux Mint 17 12-02-2014 02:48 PM
Make exact copies of dual boot laptop HDDs to identical laptops? DiBosco Linux - Software 2 10-27-2008 05:44 AM
dual boot linux fedora earlier versions with kernel 2.4 and vista homw premium meena.k.s Linux - Newbie 1 08-31-2007 02:44 AM
cannot find boot sector for dual boot darinbolson Linux - General 21 02-05-2006 03:42 PM
Boot Sector on dual boot PC. Remove Mandrake and replace with FreeBSD Phin666 *BSD 1 10-30-2004 05:02 PM

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

All times are GMT -5. The time now is 05:59 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
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