LinuxQuestions.org
Help answer threads with 0 replies.
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 02-20-2008, 03:24 PM   #1
NEVICA
LQ Newbie
 
Registered: Feb 2008
Posts: 23

Rep: Reputation: 15
Wiping the HD


Hello,

I am a new user in Linux.

I am currently running Debian.

Unfortunately, I would like to completely wipe the Hard Disk and reinstall both VISTA and DEBIAN on two diffrent partitions of the HD.

I have tried:

root

dd if=/dev/zero of=/dev/fda


I was hoping to wipe the HD this way but it did not work.

Any ideas or utlities which I can use.

Nevica
 
Old 02-20-2008, 03:34 PM   #2
weisso5
Member
 
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133

Rep: Reputation: 16
Boot from a live CD.

Wipe and re-create partitions using fdisk

reformat and boom you are back to scratch.
Example:

mke2fs /dev/sda1
mke2fs -j /dev/sda3
mkswap /dev/sda2 && swapon /dev/sda2

Now you are ready to reinstall your Distro and then Vista.
-weisso
 
Old 02-20-2008, 03:35 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
It should have worked, but I have a question about the command you used.
Code:
dd if=/dev/zero of=/dev/fda
/dev/fda? I've not seen that one before. Look into /etc/fstab, or run 'fdisk -l' to find out what your system calls the hard drive. Then correct the dd command.
 
Old 02-20-2008, 03:44 PM   #4
NEVICA
LQ Newbie
 
Registered: Feb 2008
Posts: 23

Original Poster
Rep: Reputation: 15
????

I am trying 'fdisk -l' in a terminal but this does not work.

Any ideas..............
 
Old 02-20-2008, 03:49 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Fdisk may not be in your PATH environment variable. So, try the full path to the executable called fdisk. Like this: /sbin/fdisk -l.

Side note: if you intend to try to re-make your partitions, you must do it from a liveCD. You shouldn't try re-making partitions from a mounted partition. That is, if the partition yout OS is running from is one of the partitions you intend to work on. Your work should involve unmounted partitions. Also, you need root authority to do it.

Last edited by bigrigdriver; 02-20-2008 at 03:53 PM.
 
Old 02-20-2008, 03:55 PM   #6
NEVICA
LQ Newbie
 
Registered: Feb 2008
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bigrigdriver View Post
Fdisk may not be in your PATH environment variable. So, try the full path to the executable called fdisk. Like this: /sbin/fdisk -l.

Side note: if you intend to try to re-make your partitions, you must do it from a liveCD. You shouldn't try re-making partitions from a mounted partition. Also, you need root authority to do it.
I might be missing something but:

/sbin/fdisk -l

gets no response.

I am sorry to be such a pain but I am a beginner.

NEVICA
 
Old 02-20-2008, 04:13 PM   #7
NEVICA
LQ Newbie
 
Registered: Feb 2008
Posts: 23

Original Poster
Rep: Reputation: 15
I tried

I tried:

dd if=/dev/zero of=/dev/hda

and got the response:


dd: writing to `/dev/hda': No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.000349603 seconds, 0.0 kB/s

I also tried:

dd if=/dev/zero of=/dev/fda

and got the response

dd: writing to `/dev/fda': No space left on device
20249+0 records in
20248+0 records out
10366976 bytes (10 MB) copied, 0.0274376 seconds, 378 MB/s

Any ideas?
 
Old 02-20-2008, 04:35 PM   #8
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
It would help to know more about your computer: make, model, hardware (especially hard drive vendor and disk size).

Fdisk may not be in /sbin on your system. So, in a terminal, run 'locate fdisk' to find out where the fdisk executable is located. Then use the path given to you in the locate results to run the command. Example: suppose locate finds it in /usr/sbin/fdisk. Then you would run the command as '/usr/sbin/fdisk -l'.
 
  


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
wiping files gpg??? acidblue Linux - Software 5 12-30-2005 09:08 PM
Wiping MBR progra,? JoshR Linux - Software 9 07-10-2005 02:07 PM
Wiping MBR? orange400 Linux - General 8 06-25-2004 10:30 AM
Suggested way of wiping HD mymojo Linux - General 4 12-01-2003 02:35 PM
Secure Wiping X11 Linux - Security 0 01-30-2002 09:51 AM


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