LinuxQuestions.org
Visit Jeremy's Blog.
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 02-16-2010, 04:25 PM   #1
Tony Littlejohn
Member
 
Registered: Dec 2007
Location: In the Nievre, Burgandy France
Distribution: Mandriva 2008.0
Posts: 63

Rep: Reputation: 15
How to remove GRUB using PartedMagic


I am having a problem removing RUB from my HD. I have deleted all the partitions using PartedMagic but still the message :

"Grub loading
error: no such disk
grub rescue>"

appears and I can get no further when attepmting to install any OS.

Any help in this matter would be more than appreciated so thanks in advance,

Tony LIttlejohn
 
Old 02-16-2010, 04:35 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,012

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
I suspect your BIOS is set to boot from your HDD first. So no other devices are seen.

Grub is still on the MBR of your HDD, but it has nothing to boot because you have deleted it all. So it cannot work.

Set your BIOS to boot from CD-ROM / DVD / USB or whatever you are trying to boot as first in the list of your BIOS.
Insert boot device (CD / DVD /USB).
Boot.
Follow the prompts.

OK now ?
 
Old 02-16-2010, 05:20 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,311

Rep: Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032
Or use the "Boot Menu" option if it shows on the Splash screen - e.g. Dell usually use F12 for this.
I have had equipment that ignore the BIOS boot order, and you needed to use a "magic" key during boot to get the CD to boot - hopefully doesn't happen these days.
 
Old 02-16-2010, 05:39 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
You typically cannot use a partition editor to remove grub, because GRUB is not in a partition.

CAUTION: DO NOT RUN THE COMMAND BELOW UNLESS YOU HAVE ALL YOUR DATA BACKED UP AND YOU ARE SURE WHICH DRIVE NEEDS GRUB REMOVED

Boot from any live CD version of Linux and run this command:
(I'm assuming that GRUB is on the first hard disk---modify as required)

dd if=/dev/zero of=/dev/sda bs=512 count=1

This removes the entire MBR. If you want to leave the partition table, then change the 512 to 446
 
Old 02-17-2010, 07:36 AM   #5
Tony Littlejohn
Member
 
Registered: Dec 2007
Location: In the Nievre, Burgandy France
Distribution: Mandriva 2008.0
Posts: 63

Original Poster
Rep: Reputation: 15
Thumbs up

Many thanks to all of you, particularly Pixelany, for your advice on dealing with my GRUB problem. I tried to use Cfdisk from within PartedMagic but was unsuccessful - no write permissions.

So, I moved onto a Knoppix Live CD, started Cfdisk and soon I had Mandriva 2010 installed.

Thanks again, my heart is beating more slowly now.


Tony Littlejohn
 
  


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
Adding PartedMagic and SystemRescueCD to SLAX on USB jesrani Linux - Newbie 1 11-18-2009 10:37 PM
PartedMagic-4.3, the "almost" perfect desktop....Or how to add stereo to Pmagic? linus72 Linux - General 12 07-13-2009 10:08 AM
How to remove GRUB svt11 Debian 2 12-25-2008 02:54 PM
how to remove grub from the grub prompt haroon110 Fedora - Installation 7 12-22-2005 11:57 AM
How to remove GRUB? Zadrras Linux - Newbie 14 08-27-2004 02:37 AM


All times are GMT -5. The time now is 01:03 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration