LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-03-2006, 02:57 PM   #1
JohnnioM
LQ Newbie
 
Registered: Jan 2006
Location: UK, Scotland
Distribution: Fedora Core 1, Fedora Core 4, SUSE Linux 9.3 Live CD, Knoppix Live CD
Posts: 11

Rep: Reputation: 0
How do you uninstall Fedora Core 4 ?


How do you uninstall Fedora Core 4, because I want a fresh hard drive to install Windows XP on. I am not dual booting Linux so the hard drive just has linux on it, ill show you what is there when I type fdisk -l :

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 2432 19430617+ 8e Linux LVM


Much help appreciated,
John
 
Old 04-03-2006, 03:01 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Boot up linux, then as root:

dd if=/dev/zero of=/dev/hda bs=512 count=16

This will make your drive unbootable and unmountable (even from a rescue CD) until you install an OS, so make sure you don't need to boot or access the drive again.

Shutdown and boot the Windows install CD.
 
Old 04-03-2006, 03:10 PM   #3
JohnnioM
LQ Newbie
 
Registered: Jan 2006
Location: UK, Scotland
Distribution: Fedora Core 1, Fedora Core 4, SUSE Linux 9.3 Live CD, Knoppix Live CD
Posts: 11

Original Poster
Rep: Reputation: 0
ok, hopefully this works and thanks for the fast reply
 
Old 04-03-2006, 03:13 PM   #4
JohnnioM
LQ Newbie
 
Registered: Jan 2006
Location: UK, Scotland
Distribution: Fedora Core 1, Fedora Core 4, SUSE Linux 9.3 Live CD, Knoppix Live CD
Posts: 11

Original Poster
Rep: Reputation: 0
sorry for double posting but will this 100% work, cause I dont want to fuck up my hd cause im on a laptop which means I only have 1 hd
 
Old 04-03-2006, 03:20 PM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What's wrong with just booting from the Windows CD and proceeding with installation? You should be able to delete the Linux partitions (which may show up as "unknown") and create new ones for use with Windows.
 
Old 04-03-2006, 03:22 PM   #6
JohnnioM
LQ Newbie
 
Registered: Jan 2006
Location: UK, Scotland
Distribution: Fedora Core 1, Fedora Core 4, SUSE Linux 9.3 Live CD, Knoppix Live CD
Posts: 11

Original Poster
Rep: Reputation: 0
I have tried that, it boots up to the Windows XP cd and then says "Windows is now inspecting your systems hardware, please wait..." and then just shows a black screen, so thats why that doesnt work for me.

and on other sites I see this - dd if=/dev/zero of=/dev/hda bs=512 count=1
but on this threads reply it says - dd if=/dev/zero of=/dev/hda bs=512 count=16

What one is right ?
 
Old 04-03-2006, 03:22 PM   #7
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
What this command does is zero out the first 16 sectors on the hard drive. That includes the volume label, the master boot record (which probably contained lilo or grub), the partition table, and any additional metadata from LVM/software RAID (if you had them installed).

When you run the installer for an OS, it will find that it need to partition and format the drive, since all the data is gone. The OS will assign its default label to the drive.
 
Old 04-03-2006, 03:27 PM   #8
JohnnioM
LQ Newbie
 
Registered: Jan 2006
Location: UK, Scotland
Distribution: Fedora Core 1, Fedora Core 4, SUSE Linux 9.3 Live CD, Knoppix Live CD
Posts: 11

Original Poster
Rep: Reputation: 0
oh, ok, so this means it will actually pass the hardware inspection stage and successfully partition and format the hd then go on its way to install Windows XP, and the reason why I am uninstalling Linux is because my family needs to use the laptop as well so XP will be better.
 
Old 04-03-2006, 03:29 PM   #9
JohnnioM
LQ Newbie
 
Registered: Jan 2006
Location: UK, Scotland
Distribution: Fedora Core 1, Fedora Core 4, SUSE Linux 9.3 Live CD, Knoppix Live CD
Posts: 11

Original Poster
Rep: Reputation: 0
so let me get this straight, here is what I will do:
1. Boot up into Linux and log on as 'root'
2. Start up Terminal
3. Type into the terminal: dd if=/dev/zero of=/dev/hda bs=512 count=16
4. Shutdown and start the laptop up and boot into the Windows XP disk
5. Follow the instructions to install Windows XP


So is that what you do ?
 
Old 04-03-2006, 03:30 PM   #10
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
For those interested, the Windows XP installer is particularly brain-dead. I've had it refuse to install/hang/blue screen when finding data it thought it recognized in the these sectors. I've even had it fail when formatting an NTFS filesystem during installation if it finds a bad sector in the wrong location (formatting with Linux corrects that too). To work around these problems, I usually boot a Linux rescue disk, zap the sectors as above.
 
Old 04-03-2006, 03:32 PM   #11
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Quote:
Originally Posted by JohnnioM
so let me get this straight, here is what I will do:
1. Boot up into Linux and log on as 'root'
2. Start up Terminal
3. Type into the terminal: dd if=/dev/zero of=/dev/hda bs=512 count=16
4. Shutdown and start the laptop up and boot into the Windows XP disk
5. Follow the instructions to install Windows XP


So is that what you do ?
It's what I've done to correct problems with the Windows installation for others. Personally, I and my extended family run Linux.
 
  


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
Upgrade Fedora Core 4 (FC4) to Fedora Core 5 (FC5) hangs vogelap Fedora - Installation 10 05-22-2006 09:00 AM
How to uninstall the Fedora core 4? VincentChau Linux - Hardware 7 04-06-2006 04:14 AM
Okay, now i need to uninstall Fedora Core 4 and install SuSE 10.0, but how? mr_coffee Linux - Newbie 1 01-16-2006 09:09 PM
How Do You Uninstall Fedora Core? SoldierofHyrule Linux - Newbie 6 04-24-2005 02:02 PM
How to uninstall Fedora Core 3 and install Windows XP SpiderIRE Linux - Software 2 01-22-2005 01:17 PM

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

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