LinuxQuestions.org
Help answer threads with 0 replies.
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-29-2017, 01:01 PM   #1
wuggins
LQ Newbie
 
Registered: Dec 2017
Posts: 1

Rep: Reputation: Disabled
"URGENT" Grub in rescue mode cannot find MBR file for dual-boot


I am running a dual boot system with windows 10 & Debian 9 Stretch on the vintage 2010 Dell XPS M1730. I was cloning the Win-10 partition to an external drive using minitool partition wizard pro. Due to the large size of the partition [675GB] i resized it before copying it. The cloning process worked fine, until i rebooted. Grub could not find the MBR and went into rescue mode. I have several boot utilities inc: G-parted, runtime-live and Soper-Grub2 [which i ultimately ended up using to rebuild the winows-10 MBR which has gotten me back into widows only]. I am still relatively new to the Linux/Debian world and have a very limited command language skills. I am especially illterate with Grub or boot loaders in general. when this problem has occured before i was forced to reinstall Debian to obtain accres to either OS. but i have spent months fine tuning the latest installation and really would like to learn how to help grub find the boot file and fix the problem without starting over again. i also have a really special software tool called Bootice which I know could fix the problem if i only knew how to use it. Thank you in advance for taking your time to help me.
 
Old 12-29-2017, 01:09 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
I don't see how cloning a partition with an OS on it from one drive to a second drive is going to have any effect on booting systems on the original drive. Are you trying to boot the original drive with the original windows and Debian or are you having problems booting the cloned system?
 
Old 12-29-2017, 01:27 PM   #3
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Reinstalling Grub is fairly easy and this should be fixable from a live cd. Basically the steps boil down to
1) Boot from live cd
2) Reinstall Grub

If you have the original installation medium for Debian, I'd suggest using that
 
Old 12-29-2017, 04:13 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by wuggins View Post
Due to the large size of the partition [675GB] i resized it before copying it. The cloning process worked fine, until i rebooted. Grub could not find the MBR and went into rescue mode.
If you got to grub rescue mode, the initial grub code (in the MBR) was launched. Seems we are not being told the entire story.
- did you reboot after resizing to ensure that was ok ?.
- did you move the Linux partition ?.
- did you allow minitool to embed any of its "advanced features" ?.

A simple re-install of grub as above should fix the boot problem. As to whether it's "URGENT" ...
 
Old 12-29-2017, 07:44 PM   #5
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
Quote:
Due to the large size of the partition [675GB] i resized it before copying it.
That's your answer. He screwed with the partitions.

I would not trust any spyware 95 based binary to work as it should.

Depending on which grub we are talking about, we could ask on which stage grub hangs, and than we can look up where grub is.

as said redo the bootloader. Every distro does this differently. E.g. gentoo handbook, section installing the bootloader or what it is called.
I suggest using sysrescue-cd.

Hint gparted livecd worked quite well in teh past for several years and is quite proven here. I would not trust any acronis true image or other spyware95 based software.

Quote:
was forced to reinstall Debian
a spyware 95 approach which is very bad in several aspects.

Just fix the bootloader is the suggested approach.

It's like you buy a new car because you need new pair of wheels.

--

tools needed to get any linux running again, assuming it is grub 1 or grub 2.

sysrescue-cd
nano (or any other suitable texteditor)
grub package for your architecture which sysrescue-cd provides
kernel & intiramfs from your distro in question
gparted (for laziness which sysrescue-cd provides) (of course you can use the command line tools also ...)

gentoo and arch linux wiki / handbook have decent docs about grub

Last edited by _roman_; 12-29-2017 at 07:48 PM.
 
Old 12-29-2017, 10:06 PM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Boot the debian install CD. Choose 'rescue'. Open a root shell in the root directory of the Debian installation. Then do
Code:
$ grub-install
.
 
Old 12-30-2017, 09:01 PM   #7
Stev8
Member
 
Registered: Mar 2012
Location: Hamilton, Ontario
Distribution: Ubuntu 17.10 64 bit
Posts: 113

Rep: Reputation: Disabled
Hi,

Yea, you obviously wiped your grub somehow.

I believe it would be the same as ubuntu boot off your live cd, run
grub-install /dev/sdX
 
  


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
Rescue mode "No Linux Partitions" - how to create an fstab file in this case? bomurf Linux - Newbie 5 04-12-2016 01:53 AM
[SOLVED] "`/boot/grub' is not readable by GRUB on boot" & "cannot find a device for /" Geremia Slackware 26 01-03-2015 11:07 AM
[SOLVED] i didn't find "grub.cfg" file on /boot/grub/ Carl_cj Slackware 14 11-16-2014 09:21 AM
[SOLVED] grub rescue: "error: unknown filesystem" when booting Windows XP / Ubuntu dual boot LittleRatRottenHut Linux - Laptop and Netbook 9 02-01-2011 08:32 PM
How to install GRUB from "linux rescue" mode? iguthrie Linux - General 10 06-14-2007 06:45 AM

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

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