LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-27-2005, 04:12 PM   #1
matty123
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Zero-Out Hard Drive vs. Uninstall OS


I have been running Fedora Core 3 for about a year and a half now and want to go back to running a Windows OS, then have the ability to partition the drive and put linux on in the future. However, I have a dilemma: I can't install Windows XP.

I have two choices:

1) Uninstall Fedora
-I don't know how to do this
-is this even possible?

2) Zero-Out/Wipe my hard drive
-This is what comes up when I do fdisk
Code:
[root@localhost ~]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          17      136521   83  Linux
/dev/sda2              18        4369    34957440   83  Linux
/dev/sda3            4370        9468    40957717+  83  Linux
/dev/sda4            9469        9729     2096482+   5  Extended
/dev/sda5            9469        9729     2096451   82  Linux swap
-i have thought of doing
Code:
[root@localhost ~]# dd if=/dev/zero bs=1024 block=80000 of=/dev/sda
but I din't know if that would work or get through some parts of my drive, stop, and I have a half empty/half full drive

Any help would really be appreciated.
 
Old 12-27-2005, 04:25 PM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Get a live cd like SystemRescueCD which contains qtparted. Delete your partitions and create a new ntfs partition (and leave some space for your next linux install )
 
Old 12-27-2005, 06:46 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
There is a doc on the M$oft support site that provides all the gory details.
 
Old 12-28-2005, 08:19 AM   #4
matty123
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Okay, I deleted all the partitions, but now XP is telling me I don't have a hard drive when the computer startup tells me I do. If I startup without the cd, I boot from HD; the HD still has an imprint of Fedora, I guess, and comes up with "grub>". You guys have any clue what to do?
 
Old 12-28-2005, 09:08 AM   #5
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
You need to fix the MBR. An old 98 boot disk would do it with fdisk /mbr

Or just install linux again
 
Old 12-28-2005, 10:09 AM   #6
matty123
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I stuck in an old Windows 98 recovery disk, got the prompt, and did fdisk /mbr. Then, to make sure I had no partitions or anything, I did fdisk and checked: no partitions. I inserted the XP disk, restarted, and viola, the same thing happens as before.

Windows XP tells me it cannot detect my hard drive disk and make sure it is connected and the stuff on it is "correct." Well, there is nothing on it. I do the recovery disk again and make a DOS partition. Then try installing XP; same problem. I try deleting the DOS partition; error. I use fdisk /mbr this time and still an error when I try to install XP.

Why is it that my computer and the old disks (98 or my fedora rescue thingy) see that I do indeed have a hard drive, but XP doesn't? How do I fix this?
(if it helps, the only new thing is that I cannot boot anything from the hard drive, not even grub; I now require a disk)

PS - thanks for what you guys have said so far, it has worked up to this point.
 
Old 12-28-2005, 04:00 PM   #7
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Unfortunately 'intelligent' and 'easy to use' OSes like windows aren't always very clever or simple.

fdisk /mbr will only wipe the mbr, not the partition table.

Did you use 'format' to format the partition? windows will not see it untill it is formatted.
 
Old 12-28-2005, 04:23 PM   #8
tormented_one
Member
 
Registered: Oct 2004
Location: Small Town USA
Distribution: slamd64 2.6.12 Slackware 2.4.32 Windows XP x64 pro
Posts: 383

Rep: Reputation: 30
Did you install the sata drivers for your drives? Just a thought.
 
Old 12-28-2005, 04:58 PM   #9
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Partition info must still be in a state that windows doesn't like. You might have to zero it out with a linux boot cd, or try ranish disk partitioner or something...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
SCSI hard drive is not found after linux uninstall dilberim82 Linux - Hardware 1 02-05-2005 07:12 PM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:32 AM.

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