LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-24-2010, 06:36 AM   #1
grizlbr
LQ Newbie
 
Registered: Sep 2010
Posts: 26

Rep: Reputation: 0
How to kill grub2?


How to kill grub2? Even with a 20 second hard-drive delay grub2 throws a error: no such partition and will not boot to a floppy. I know there is no partition I deleted all and started over. How do I kill grub so I can install fresh? I can boot to a thumb drive with gpart how do I clear the partition table and bootstrap?
 
Old 09-24-2010, 07:29 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
When you install a new distro to the hd it should install the bootloader of its own, it will overwrite grub2. If you are going to use the hd for storage you can use fdisk to delete the partition but you will not be able to boot the hd until you make a new partition. If you have two hds, change the boot order and let the other one boot first. If you have windows on the first partition and then you will need a windows disk and do the fixmbr thing.

Last edited by Larry Webb; 09-24-2010 at 07:32 AM.
 
Old 09-24-2010, 09:12 AM   #3
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 285

Rep: Reputation: 61
You have provided us with a lot of disjoint information. Where is Grub2 installed? Hard disk, floppy, thumb drive? You mention all three. If it is on a hard disk, is there any other OS on the hard disk? If not, just use dd to zero out the first 64 sectors on the disk.
 
Old 09-24-2010, 11:18 AM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,206

Rep: Reputation: 230Reputation: 230Reputation: 230
Quote:
How to kill grub2?
You don't need to kill. You have killed it already. What keeps re-appearing is its ghost rising from the graveyard of MBR each night.

Quote:
Even with a 20 second hard-drive delay grub2 throws a error: no such partition and will not boot to a floppy. I know there is no partition I deleted all and started over.
Yes you know it's nothing but a ghost, and a ghost cannot be killed anymore: You MUST exorcise it.

Quote:

How do I kill grub so I can install fresh? I can boot to a thumb drive with gpart how do I clear the partition table and bootstrap?
So you have the solution in hand already. Boot from the usb-thumb--

1) launch "parted" or "gparted" whatever you have
2) repartition the hard drive
3) commit them into the mbr

or, if booting into usb can offer you a shell (terminal) bash, csh or sh whatever, try enter this command:

grizlbr@host-# dd if=/dev/zero of=/dev/sda bs=512 count=1 <Enter>

(change of=/dev/sda to /dev/hda if your machine reads it hda)
by this simple command everything in the graveyard of MBR becomes a landscape of emptiness all the ghosts haunting you each night shall be gone into the neitherworld, leaving you quietly in peace to begin a new life.

Ve'emru ameyn.

Last edited by malekmustaq; 09-24-2010 at 12:10 PM.
 
Old 09-25-2010, 10:55 AM   #5
grizlbr
LQ Newbie
 
Registered: Sep 2010
Posts: 26

Original Poster
Rep: Reputation: 0
Wink Back to basics DOS

Having already performed the above twice, and gparted $ dd not found, went back to the tools I had on hand: a old boot disk for eMachine.
Still would like to know how to fix this from a lLinux boot CD?

1.Fdisk /mbr : did not help, still got grub error
2.Format c: still error
3. After Sys c: was able to boot a Vista Enterprise install
My question how to perform the same function from a gparted >$ prompt?
Enterprise will find my Wifi; Home Premium will not. So I started from 1 again. I left a 500 mb gap for swap file before Ntfs partition. Now to set up partition for linux and fat32 so I can move files. Just got desktop in Vista now to move on.

Last edited by grizlbr; 09-25-2010 at 11:06 AM. Reason: Read responce
 
Old 09-25-2010, 01:31 PM   #6
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,206

Rep: Reputation: 230Reputation: 230Reputation: 230
Quote:
1.Fdisk /mbr : did not help, still got grub error
2.Format c: still error
You cannot 'dd' from the grub> prompt: I said if booting to CD can offer you a shell (i.e. terminal) you can issue 'dd'. You must have a shell running: be it bash, csh, sh, zsh or tcsh. grub> has no dd command.

Quote:
3. After Sys c: was able to boot a Vista Enterprise install
This time vistra should have overwritten the mbr already.

Quote:
My question how to perform the same function from a gparted >$ prompt?
From Vista? Noh...
Quote:

Enterprise will find my Wifi; Home Premium will not. So I started from 1 again. I left a 500 mb gap for swap file before Ntfs partition.
I don't really understand what you are doing.

Quote:
Now to set up partition for linux and fat32 so I can move files. Just got desktop in Vista now to move on.
You are making harder what you could have attained easily.

Do not use vista or anything microsoft to partition a linux file system.

My question is: Do you really need to run vista? If not then do not install it. You can back up your data using a linux LiveCD.

If you have previous data that you need to back up into safe place do these:

Step 1: Download a good (easy to use) live CD here.

Step 2: Burn and boot it in your machine. It has a very good Gparted GUI application very easy to see your hard disk. In gparted editor shrink your ntfs or fat32 (whatever) drives available TO ALLOW SPACE FOR DATA BACK UP. Then with the new space available create a new partition: use 'ext3' file system.

Step 3: Copy all your data into the new ext3 partition. You can Copy and Paste through a file browser available in the Mint live CD.

Step 4: All data being safely backed up into the ext3 partition, you may now delete all remaining partitions. With the new space available create three (3) primary partitions and the remaining create a logical partition.

Step 5: Install (click Install) the Linux Mint into one of the partitions. This installation WILL WRITE A NEW MBR and you will boot into the new system automatically.

Good luck.

Last edited by malekmustaq; 09-25-2010 at 01:33 PM.
 
Old 01-21-2011, 03:44 PM   #7
grizlbr
LQ Newbie
 
Registered: Sep 2010
Posts: 26

Original Poster
Rep: Reputation: 0
Making this hard?

I have the live cds, the install throws error that partitions can not be changed after grub2? So I did the whole diskpart fixboot mbr thing for Vista. If a W98 boot cd would see my sda harddrive I would remove the reference to grub 2. But each boot shows a hardrive geo error. Just would like to know with out rebuilding 7 partitions how to fix this. Dd does not work unless you can boot the kernel? So with out learning a whole new language (I am trying with Linux) how to basically dd mbr view in 16 byte wide view edit and dd back. Is there a newbie root console that does not need the root password of the partitionit is working on? As the bootinitrd.img has the root uuid listed.
 
Old 01-21-2011, 04:35 PM   #8
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,098

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Set boot prioity to boot cd first.
 
  


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
What if 'kill -9' fails to kill a task? chii-chan Linux - Newbie 15 03-27-2013 03:47 PM
bash `kill`: process 'B' silently dies; but process 'A' = `kill` spews back debris! GrapefruiTgirl Programming 9 06-23-2009 09:42 AM
[SOLVED] Kill a hung task when kill -9 doesn't help 10110111 Linux - General 4 04-02-2009 11:10 AM
how to use kill to kill a batch of processes with same name? dr_zayus69 Linux - Software 2 09-03-2005 06:35 PM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM


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