LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-13-2006, 05:32 AM   #1
nunovski
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 0
Question trying to uninstall grub


I'll explain: My PC has two HDD's.
Disk 1 - C: (Windows) and D:
Disk 2 - Z:

I reduced the Z: partition in order to have space for ubuntu. Everything was fine, i installed it, and then it asked me to reboot, so that it would boot ubuntu. It didn't happen, because I have Disk 1 instead of Disk 2 in my boot priorities. When I wanted to boot ubuntu, I just had to select Disk 2, in the Boot menu. No problem. Then, I noticed ubuntu doesn't work on my PC, when i enter login and password, it freezes. It might be my gfx card. So i want to uninstall it, but before i do that, i wanted to clean the MBR, and then format my linux partition. How can i do that? I already tried the FIXMBR command from the WinXP CD, but it didin't work. Any suggestions?
 
Old 05-13-2006, 05:52 AM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Hi, and welcome to LQ. I suggest you try and bash ubuntu into working rather than just give up, but in the end that's up to you.

I can't recall the exact workings of FIXMBR, but perhaps you (unknowingly) instructed it to work on the wrong drive? Anyways, as long as you have a working bootloader on disk 1 (to test it, take out disk 2 and see if you can boot), there's no harm in having the boot loader on disk 2 as well, and you can't save space by uninstalling it, because the sectors used for it will always be reserved; whether there's a boot loader in them or not doesn't change anything. If you really mean it, you could always just zero out the first couple of sectors (I think "dd if=/dev/zero of=/dev/hdb bs=512 count=10" does the right thing, but I'm not sure; be very sure that it's the right device before doing anything).

hth --Jonas
 
Old 05-13-2006, 06:04 AM   #3
nunovski
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
I want to uninstall GRUB not for saving space. I want to have Disk 2 the same way it was before i installed linux. If i want to install another distro, i think it was better. And in what drive is grub installed? In the linux partition?
 
Old 05-13-2006, 07:54 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by nunovski
I want to uninstall GRUB not for saving space. I want to have Disk 2 the same way it was before i installed linux. If i want to install another distro, i think it was better. And in what drive is grub installed? In the linux partition?
Grub is installed wherever you installed it!! I seem to recall that the Ubuntu installer asks you where you want it, but I'm not sure exactly what it says.

Grub (or any boot loader) is typically in the mbr of the first drive (not in a partition).

First, you need to figure out whty FIXMBR doesn't work. Otherwise, you may need to re-install Windows. Make sure your windows drive is #1 and try it again (to be sure, you might even disconnect the other drive).
You can also try something like the Utlimate Boot CD.

In one of my many attempts to setup my system, I just put grub on a floppy---this way the Windows install is never disturbed.
 
Old 05-13-2006, 02:31 PM   #5
nunovski
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
But in teh installer it didn't ask me where to install it, but i know it is in Disk 2, because when i boot Disk 1, it goes to Windows, no questions asked. If I format Disk 2, will it erase GRUB? Or the MBR isn't affected by format?
 
Old 05-13-2006, 04:12 PM   #6
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
no, the MBR is not affected by formatting. Use the dd command I gave above, that should clear it out.
 
Old 05-13-2006, 04:13 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by nunovski
But in teh installer it didn't ask me where to install it, but i know it is in Disk 2, because when i boot Disk 1, it goes to Windows, no questions asked. If I format Disk 2, will it erase GRUB? Or the MBR isn't affected by format?
I think of formatting as appying to partitions. You can certainly get rid of grub by wiping the drive (Wiping will erase **everything**). You can also use dd--like so:

dd if=/dev/zero of=/dev/<whatever the drive is> bs=446 count=1

Be very careful with dd---it will happily destroy your whole system
 
Old 05-13-2006, 04:42 PM   #8
nunovski
LQ Newbie
 
Registered: May 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany
I think of formatting as appying to partitions. You can certainly get rid of grub by wiping the drive (Wiping will erase **everything**). You can also use dd--like so:

dd if=/dev/zero of=/dev/<whatever the drive is> bs=446 count=1

Be very careful with dd---it will happily destroy your whole system

and where do i use that command?
 
Old 05-13-2006, 06:23 PM   #9
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
and where do i use that command?
in your favorite shell.
 
Old 05-14-2006, 09:39 AM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by nunovski
and where do i use that command?
In a terminal (command-line)
If you are not familiar with the command-line, then dd might not be the best way to learn.....

The easy way is to download a copy of DBAN (Darik's boot and nuke). This boots from a floppy and will totally erase (wipe) your hard drive. I think it is on sourceforge, but Google will find it.
 
Old 05-14-2006, 10:50 AM   #11
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
Hi to all,

I think the easiest way to remove the dual boot is to boot from a Windows 98SE bootdisk and then issue the following command at the A:\> prompt :- "fdisk /mbr". This should remove the dual boot.

warm regards,
Visham
 
Old 05-14-2006, 12:48 PM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
It appears Grub has been installed in the disk 2 and does not affect Windows which has its own MBR in disk 1.

I would just forget about the whole thing of bothering the first 512 bytes of Disk 2 because in installing another OS in Disk 2 it will overwrite its MBR automatically.

However using the Bios to switch the booting order is very old method. One can use Grub or Lilo (the other main Linux boot loader) to do the switching easily. Therefore one can boot to disk 2 permanently and use the boot loader to switch the disk order on-the-fly when booting Windows. All the tips are in the last link of my signature.

It appears to me that you could make Ubuntu by re-configuring Xorg. When Ubuntu hangs it doesn't really hang at all. Pressing crtl+alt+backspace can drop you into the command line mode and there you can look at the Xorg log and re-configure the graphic card.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
uninstall grub? yayd Linux - Newbie 17 01-16-2006 10:57 AM
uninstall GRUB Krun Linux - Newbie 3 11-20-2004 11:03 AM
How can i uninstall grub? Braveheart1980 Linux - Software 12 06-17-2004 07:32 AM
How to uninstall GRUB Cone_420 Linux - Newbie 1 03-01-2003 08:22 PM
GRUB Uninstall Reno Linux - Software 1 05-02-2001 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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