LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-13-2016, 05:47 AM   #1
Sharkos
LQ Newbie
 
Registered: Nov 2016
Posts: 8

Rep: Reputation: Disabled
MBR messed up + can't run any liveCD/liveUSB


Actually was using a dual boot "Windows 10 / Ubuntu 16.04 LTS" on my laptop. I wanted to delete Ubuntu (in order to reinstall it), so I deleted the Linux's partitions without repairing the MBR (so a beginner's mistake). I have the classical error message:
"error : no such partition
Entering rescue mode ...
grub rescue >"

Now, I can't even run a LiveCD or a LiveUSB with Ubuntu or Win10 on it to repair the MBR (tried the drivers on other laptops though, they can run). Any Any clue can be helpful for me in order to repair the MBR.
I can also format my SSD because I carefully saved my data before doing this.

Thanks for your help.
 
Old 11-13-2016, 07:42 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Did you install both windows 10 and Ubuntu yourself? If windows 10, was pre-installed, it was almost certainly using EFI. The methods to repair your problem will vary depending upon whether you were using EFI or MBR to boot. That would be the first bit of information that would be useful.

In your situation, there would be no reason whatsoever to delete the partition to re-install Ubuntu. All you would have had to do is re-install to the same partition(s) on which it was previously installed and formatted. Most of the Grub bootloader files are on the Ubuntu partition, the one you deleted which is why you have this problem.

So post back which type (EFI/MBR) you are using. Also, you inability to access the BIOS is unrelated to deleting the Ubuntu files. You need to further explore boot options in the BIOS. If you aren't familiar with this, post information on your hardware, specifically the manufacaturer and someone should be able to help.
 
Old 11-13-2016, 08:01 AM   #3
Sharkos
LQ Newbie
 
Registered: Nov 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
MBR messed up + can't run any liveCD/liveUSB

Thank you for your answer.
I installed Win10 and Ubuntu myself so I guess I use MBR (or at least I used to use it before installing ubuntu on dual boot and booting with Grub).
I tried to check some settings in the BIOS. The only one relevant is the starting mode : I disabled secure booting and tried to run with both UEFI and CSM modes.
-CSM: I got the "grub rescue" error (see above).
-UEFI: He check media, fail then print an error message "No bookable device -- Please restart again".
Do you have other settings in mind that I should check ?
Anyway, the Pc I'm using is a Toshiba Satellite C55-A-19D.

Last edited by Sharkos; 11-13-2016 at 08:43 AM.
 
Old 11-14-2016, 03:45 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I don't get why you can't run a live media?
 
Old 11-14-2016, 06:10 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
just boot your live USB and re / install Linux on the same partitions they used to be on, reinstall grub as usual and you be ok.

You can skip that delete Linux first step. all you have to do is boot into a LIVE to install Linux then in the install process check to format that partition getting rid of the previous install and installing a fresh OS.
 
Old 11-14-2016, 06:10 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
just boot your live USB and re / install Linux on the same partitions they used to be on, reinstall grub as usual and you be ok.

You can skip that delete Linux first step. all you have to do is boot into a LIVE to install Linux then in the install process check to format that partition getting rid of the previous install and installing a fresh OS.
 
Old 11-15-2016, 10:49 AM   #7
Sharkos
LQ Newbie
 
Registered: Nov 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thank you for your answer.
It's kind of too late right now.
I can't run OS (Ubuntu, Win10, SG2D)on any media (removable or hard disk).
The problem is obviously not the hard drive because I can't run liveCD and liveUSB. Anyone have any clue to help me localise the problem? (The error looks like a MBR problem).Click image for larger version

Name:	grub rescue.jpg
Views:	21
Size:	86.7 KB
ID:	23535
Is it possible to repair the MBR on the hard disk with connecting it for example on another computer with a SATA adaptator ?
 
Old 11-15-2016, 11:01 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Sharkos View Post
Thank you for your answer.
It's kind of too late right now.
I can't run OS (Ubuntu, Win10, SG2D)on any media (removable or hard disk).
The problem is obviously not the hard drive because I can't run liveCD and liveUSB. Anyone have any clue to help me localise the problem? (The error looks like a MBR problem).Attachment 23535
Is it possible to repair the MBR on the hard disk with connecting it for example on another computer with a SATA adaptator ?
you got a go hard core, and use your BIOS to boot your media now. Me doing this, I'd hopefull have a ISO already burned into a USB Stick. Plug it into my USB Port, turn on my laptop, hit the proper key(s) needed to have BIOS select that USB Port with my Live Linux version to install on it. then it will use that USB Stick with same on it to boot, then go though the entire process of installing Linux onto that "missing" partition that is still there, just not able to be seen by that install of grub.

that would be my first thing to do. I hope that helped.

for them that know GRUB (2) their is a way to tell grub what hard disk and partition it is on, something like this but I do not know the actual syntax
Code:
(hd0,1) root=where ever it is at, mount ro
hd0 is the first hard drive, 1 is the second partition. it is an array count, or Zero-based numbering that always starts with zero as the first number.

Last edited by BW-userx; 11-15-2016 at 11:08 AM.
 
Old 11-15-2016, 11:46 AM   #9
Sharkos
LQ Newbie
 
Registered: Nov 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for your answer.
I'm very familiar with the BIOS and I already tried this, tried also several boot modes (UEFI, CMS). However, I still can't run any media.
in the rescue mode, when I try ls, I have this partitions:
(hd0) (hd0,1) (hd0,2) (hd0,3). What are these exactly ?
I will try to find the correct syntax to boot on (hd0,1).
 
Old 11-15-2016, 11:48 AM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Sharkos View Post
Thanks for your answer.
I'm very familiar with the BIOS and I already tried this, tried also several boot modes (UEFI, CMS). However, I still can't run any media.
in the rescue mode, when I try ls, I have this partitions:
(hd0) (hd0,1) (hd0,2) (hd0,3). What are these exactly ?
I will try to find the correct syntax to boot on (hd0,1).
you have to remember exactly where you installed it or try process of elimination.

you only have 4 to try.

as far a BIOS that has me puzzled. how did you use BIOS with your USB Stick in the first place to get into this mess?

Last edited by BW-userx; 11-15-2016 at 11:50 AM.
 
Old 11-15-2016, 11:51 AM   #11
Sharkos
LQ Newbie
 
Registered: Nov 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Actually I don't know what (hd0) (hd0,1) (hd0,2) (hd0,3) refers to. Can you help me with this? Maybe it will help to remember where I installed it.
Is it possible to try every single one of them, or it will be problematic if I fail the first try?
Thank you.
 
Old 11-15-2016, 11:53 AM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
found this
what to write in grub >
https://www.linux.com/learn/how-resc...g-grub-2-linux
 
Old 11-15-2016, 11:56 AM   #13
Sharkos
LQ Newbie
 
Registered: Nov 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
Oh thanks, I will try it and then give you a feed back, even if I'm a little bit perplex because actually I deleted the Linux parts, so I need to boot on Windows.
 
Old 11-15-2016, 11:57 AM   #14
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Sharkos View Post
Actually I don't know what (hd0) (hd0,1) (hd0,2) (hd0,3) refers to. Can you help me with this? Maybe it will help to remember where I installed it.
Is it possible to try every single one of them, or it will be problematic if I fail the first try?
Thank you.
I explained what they meant in my prior post, they are the locations to hard drives and their respective partitions using the zero numbering system, where zero is the first number in that scheme.

read this and fully understand it. This will tell you everything you need to know to get into where you want to be.

https://www.linux.com/learn/how-resc...g-grub-2-linux
 
Old 11-15-2016, 12:01 PM   #15
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Sharkos View Post
Oh thanks, I will try it and then give you a feed back, even if I'm a little bit perplex because actually I deleted the Linux parts, so I need to boot on Windows.
are you sure you even have a good working bootale USB Stick with Linux to install from it still?
if you have to fix that MBR to get into Windows for whatever reason. You are going to need a WINDOWS boot/install or rescue disk to do that.

whatever system you are using right now to get to the internet, if it is not your phone, you can try to create another USB Stick too. and see if that might be your booting with BIOS problem. lets not rule that out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
liveUSB is superior to liveCD newbiesforever Linux - General 9 06-25-2013 03:04 PM
Problem on creating LiveCD and LiveUSB satimis Linux - General 6 08-16-2012 04:45 AM
LXer: LiveUSB and LiveCD: devil OpenBSD twins LXer Syndicated Linux News 0 12-07-2011 07:31 PM
Ubuntu 9.10 LiveCD (works) vs LiveUSB (doesn't) bltblt Ubuntu 8 01-16-2010 10:41 PM
messed up MBR klee12 Linux - Hardware 2 07-20-2009 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:58 AM.

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