LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-09-2007, 04:58 PM   #1
Tweak17emon
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Rep: Reputation: 0
Linux Grub, how do i get it off.


im trying to figure out how to get Slackware off my computer, i have formatted it a few times, yet Windows willnot recognize my harddrive. ive been told that it might be a grub file left over as master boot, but i cannot find it in the partition.


im not getting rid of linux from my life, just off this one computer. (typing this in knoppix atm)
 
Old 01-09-2007, 05:11 PM   #2
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Rep: Reputation: 15
If you're trying to get it off, why not just do a clean install of Windows? I would wipe out all of the partitions with the Windows disc and recreate them. Install it from there.

Regards,

Brandon.
 
Old 01-09-2007, 05:13 PM   #3
Tweak17emon
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Original Poster
Rep: Reputation: 0
windows wont recognize my hard drive. like i said, ive been told that the Linux Grub is still set as Boot Master or w/e. i just need to know how to erase it.
 
Old 01-09-2007, 05:14 PM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If Windows doesn't detect your harddisk, it's not because of a bootloader. If you put an install disc of Windows in, it does not use GRUB to load anything, it's loaded before GRUB. It might be something worse..

The steps to remove Linux and put Windows instead of it:

- overwrite bootloader, if you have an existing Windows install, since if you first format you'll have a non-bootable system (unless with a bootdisk). If you're installing a fresh Windows, this is not needed, as it is done anyway. With an existing Windows system, boot into the Recovery Console (XP) either from boot menu or an install disc and run fixmbr or with older Windows systems run fdisk \mbr from a command prompt.
- remove your Linux partitions. Formatting them (to Linux file systems) is not necessarily enough. You can use Linux fdisk or similar tool for this, or GParted or QtParted on a Knoppix or similar. If you intend to use the same tool to create Windows partitions, create them as FAT or NTFS; FAT is ok, Windows XP will just probably reformat them as NTFS.

That's pretty much it. Removing partitions and creating new FAT/NTFS partitions is the main thing, overwriting bootloader just enables you to use another bootloader (like that of Windows'). If you use LiLo, you might just use it with Windows as well; it's copied to the MBR so I don't know if it needs any Linux partition behind it (but I might be wrong, I haven't used it for a while). GRUB installs stuff onto your /boot partition, so if you intend to use it with Windows, don't remove your /boot. Easiest is probably to just use Windows' bootloader if you don't have other operating systems on board.
 
Old 01-09-2007, 05:19 PM   #5
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Rep: Reputation: 15
Can you elaborate on what you mean by "Windows can't recognize my hard drive?" please? When you turn your computer on, do you get the grub bootloader screen, does it say "no system disk present" (or something to that effect), does it do nothing, or this a secondary hard drive? Have you tried going into your BIOS and checking if that recognizes your hard drive? Please answer this questions and then we will be able tobetter help you.

Regards,

Brandon
 
Old 01-09-2007, 05:24 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,049

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
From Knoppix delete all the Linux partitions - if that doesn't work, create a FAT32 one.
 
Old 01-09-2007, 06:19 PM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Got the feeling you may be using a Sata hard disk and didn't feed the driver in when XP installer requested it.

Anyway you don't get rid of a boot loader normally. You overwrite one with another because the bugger resides inside the boot sector exclusive to all filing systems.

If you must do it then boot up any Linux Live CD, click terminal and use dd to write zero in the MBR to destroy it completely. For a Sata it will be like
Code:
dd if=zero of=/dev/sda bs=512 count=1
if your disk is a Pata disk then alter "sda" to "hda".

Last edited by saikee; 01-09-2007 at 06:30 PM.
 
Old 01-09-2007, 08:06 PM   #8
Tweak17emon
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Original Poster
Rep: Reputation: 0
this is what i get:


_______________________________________________________________
Windows Server 2003: Enterprise Edition Setup
=============================================


Setup did not find any hard disk drives installed in your computer

Make sure any hard disk drives are powered up and connected properly.

Setup cannot continue. To quit Setup, press F3.





____________________________________________________________________
 
Old 01-10-2007, 09:50 AM   #9
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Can you confirm if your hard disk is a Sata or not?

If you donot know can you recall how Slackware calls it? either hda or sda?
 
Old 01-10-2007, 06:44 PM   #10
Tweak17emon
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Original Poster
Rep: Reputation: 0
yes, its sata. Western Harddrive 160g

keep in mind this is a CUSTOM built computer, 2nd one ive done. slackware was the first thing i put on it, because i liked it on my laptop and i have used knoppix before.
 
Old 01-10-2007, 06:57 PM   #11
Tweak17emon
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by saikee
Got the feeling you may be using a Sata hard disk and didn't feed the driver in when XP installer requested it.

Anyway you don't get rid of a boot loader normally. You overwrite one with another because the bugger resides inside the boot sector exclusive to all filing systems.

If you must do it then boot up any Linux Live CD, click terminal and use dd to write zero in the MBR to destroy it completely. For a Sata it will be like
Code:
dd if=zero of=/dev/sda bs=512 count=1
if your disk is a Pata disk then alter "sda" to "hda".
didnt work
 
Old 01-10-2007, 07:02 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: 112Reputation: 112
Do you know Win2k and XP need a Sata driver up front before the installation?

The first message, displaying at the bottom of the screen, of the installer is

Press F6 now if you have to install a SCSI disk driver....

A Sata is a SCSI disk variant.

Normally the mobo manufacturer supplies the driver in a floppy. If it is not in the mobo package you will find the floppy image in the driver CD. Pretty standard stuff but it took 12 posts to reach this conclusion..

Last edited by saikee; 01-10-2007 at 07:06 PM.
 
Old 01-10-2007, 07:05 PM   #13
Tweak17emon
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Original Poster
Rep: Reputation: 0
ive hit F6 before and it doesnt bring up anything. my hard drive didnt come with any disks.
 
Old 01-10-2007, 08:25 PM   #14
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by Tweak17emon
ive hit F6 before and it doesnt bring up anything. my hard drive didnt come with any disks.
Are we all talking about the same thing????
During Windows install, you hit F6 to tell it you need to install special drivers. Later on, it will ask you.

The SATA driver will come with the SATA controller--not the drive. If it is on the MOBO, then it should be on the MOBO disk. Tell us more about your exact configuration.
 
  


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
Linux GRUB and Solaris 10 1/06 GRUB zillah Linux - Newbie 8 03-29-2006 04:29 AM
How do I use GRUB to boot linux at grub prompt? Trillseker Linux - Newbie 3 12-11-2005 09:26 PM
How do I use GRUB to boot linux at grub prompt? Mustbox Linux - General 2 02-15-2005 02:01 PM
boot stops at GRUB GRUB linux never boots coffeedemon Slackware 4 11-09-2004 03:20 PM
How do I use GRUB to boot linux at grub prompt? Trillseker Linux - General 5 06-19-2003 07:23 PM


All times are GMT -5. The time now is 03:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration