LinuxQuestions.org
Visit Jeremy's Blog.
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 07-23-2018, 04:48 PM   #16
Dindigul
LQ Newbie
 
Registered: Jul 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled

The two urls are as follows:

http://paste.ubuntu.com/p/8F75fVnysX/

(This I prepared before attempting boot-repair)

and

http://paste.ubuntu.com/p/Nzw3JDGwWv/

I somehow copied the note. But cannot understand the 2nd para (The boot files of ...)

Boot successfully repaired.

Please write on a paper the following URL:
http://paste.ubuntu.com/p/Nzw3JDGwWv/


In case you still experience boot problem, indicate this URL to:
boot.repair@gmail.com or to your favorite support forum.

You can now reboot your computer.


Please do not forget to make your BIOS boot on sdb (ATA ST1000LX015-1U71) disk!

The boot files of [Linux Mint 19 Tara] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)

Last edited by Dindigul; 07-23-2018 at 04:51 PM.
 
Old 07-23-2018, 06:10 PM   #17
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
I again see Grub Rescue.
If this is with both drives installed and in their original boot order, do this at the grub resue prompt with the usb removed

Code:
grub rescue> set prefix=(hd1,5)/boot/grub
grub rescue> set root=(hd1,5)
grub rescue> insmod normal
grub rescue> normal
at this point you should see the grub menu, if so select mint and boot.
if not then continue with the following commands
Code:
grub rescue> insmod linux
grub rescue> linux /vmlinuz root=/dev/sdb5
grub rescue> initrd /initrd.img
grub rescue> boot
this should get you booted into linux
once booted open a terminal then

Code:
sudo grub-install /dev/sda
sudo update-grub
when asked for password use your login password
This should fix the boot problem

Last edited by colorpurple21859; 07-23-2018 at 06:15 PM.
 
Old 07-24-2018, 06:08 AM   #18
Dindigul
LQ Newbie
 
Registered: Jul 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Wow, I will try these commands.

Though in bad shape, I feel this condition gave an opportunity to learn something new. I just feel buying an SSHD was a bad decision because after I boot with Mint, windows fails to load and I have to use the original iso to boot from, use fixmbr, rebuildbcd and then windows relents. But this again disrupts Mint.
 
Old 07-24-2018, 07:16 AM   #19
Dindigul
LQ Newbie
 
Registered: Jul 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Armed with your commands, I started my laptop, and booted from BIOS to look for 2nd hard disk (Linux does not appear in the bootloader featuring windows) and expected to see Grub rescue.

BUT now Linux booted just fine. (But I am not sure it will behave next time, because after every reboot, my laptop behaves differently)

Right now, I am typing this from within Linux.


Thanks for all help.

----------
BTW, do you know how can I transfer the bootloader to windows section so that I can choose whether to load windows or linux?
 
Old 07-24-2018, 08:44 AM   #20
Dindigul
LQ Newbie
 
Registered: Jul 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
There is something wrong.

Windows bootloader should boot by default, but in its absence, Linux appears and Grub rescue is seen.

The commands insmod normal AND inmod linux says no such partition

(Though I get the linux bootloader only when I boot my 2nd hdd, from bios options (choose boot from USB/2nd hdd etc)
 
Old 07-24-2018, 09:31 AM   #21
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
your windows bootloader was replaced by grub when the boot repair was ran. according to the last boot repair report:

Quote:
Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for /boot/grub
core.img should be looking for (hd1,msdos5)/boot/grub, therefore the grub rescue.
If you want the windows bootloader on the first drive you will have to get a windows cd and run boot repair.


If you want to keep grub on the first drive, boot into mint open a terminal and run
Code:
sudo fdisk -l
that is a lower case L to make sure your first drive is /dev/sda(if not change the following accordingly), then run
Code:
sudo grub-install /dev/sda
. It that doesn't work then run the commands as I posted in post 17, If you get errors on the two set commands post the ouput of ls.

Last edited by colorpurple21859; 07-24-2018 at 09:43 AM.
 
  


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
LXer: What prevents Linux from beating Windows and OS X? LXer Syndicated Linux News 3 05-06-2015 02:21 PM
problem creating multiboot in linux mint using yumi mia_tech Linux - General 4 03-13-2015 07:42 AM
Want to install Debian and Slackware and keep my Windows (multiboot) tin Linux - Distributions 13 05-18-2010 04:06 PM
How to install windows XP on linux mint? 08CP022 Linux - Newbie 3 05-17-2009 06:00 AM
Freedos & linux mint multiboot on a pendrive dns.davies Linux - General 0 12-03-2007 08:10 AM

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

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