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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-03-2006, 02:57 PM
|
#1
|
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:
|
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
|
|
|
04-03-2006, 03:01 PM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
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.
|
|
|
04-03-2006, 03:10 PM
|
#3
|
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:
|
ok, hopefully this works and thanks for the fast reply 
|
|
|
04-03-2006, 03:13 PM
|
#4
|
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:
|
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 
|
|
|
04-03-2006, 03:20 PM
|
#5
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464
Rep: 
|
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.
|
|
|
04-03-2006, 03:22 PM
|
#6
|
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:
|
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 ?
|
|
|
04-03-2006, 03:22 PM
|
#7
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
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.
|
|
|
04-03-2006, 03:27 PM
|
#8
|
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:
|
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.
|
|
|
04-03-2006, 03:29 PM
|
#9
|
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:
|
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 ?
|
|
|
04-03-2006, 03:30 PM
|
#10
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
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.
|
|
|
04-03-2006, 03:32 PM
|
#11
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
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.
|
|
|
All times are GMT -5. The time now is 03:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|