LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-23-2008, 08:50 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
Nuke and Erasing a HDD


I used Nuke to erase a customers hdd that he wanted to wipe completely clean.

http://www.linux.com/feature/48092

I used DOD short and after it had finished. I attempted to install the OS and it told me that it could even though I know that the hdd is present and it ok. It was working fine until I used Nuke. I attempted to create new partition and it told me that it could see the hdd. Is there something that I am doing wrong?

If anyone wants a great tutorial on Darik boot and Nuke here it tis:

http://www.irongeek.com/i.php?page=v...o-wipe-a-drive

Last edited by metallica1973; 11-23-2008 at 09:24 AM.
 
Old 11-23-2008, 09:04 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I think you mean "could NOT" in two places....

Something similar came up a few days ago---I have always assumed that something like "dd" makes a drive look like new---ready to add partitions.

Can you boot up from liveCD and see the drive with fdisk -l?
 
Old 11-23-2008, 09:28 AM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
I tried to use a xp cd (my client wants to use xp) and it says that it cannot see a hdd but the Bios is seeing it ok. The hdd worked fine before using "Nuke". I also tried using the restore cdrom from the manufacturer and it also says that is cannot see any hdd. I will try a linux distro to see if it can see anything. I will use fdisk.
 
Old 11-23-2008, 08:08 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
You nuked the drive and now you complain you can't see it?

Windows doesn't like drives with a damaged partition table. You can write out a new one with cfdisk, but start with the -z option to ignore any invalid partition tables.

jlinkels
 
Old 11-23-2008, 08:46 PM   #5
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
'fdisk' would tell you something like you haven't got a valid partition table.

1. boot from a live CD
2. zero the MBR: dd if=/dev/zero of=/dev/whateverdevice bs=512 count=1
3. run fdisk or any other partition tool you want

[edit] Be extremely careful with dd - that can destroy the partition table on a disc you don't want to erase ...

Last edited by pinniped; 11-23-2008 at 08:47 PM.
 
Old 11-24-2008, 12:25 AM   #6
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
I did a:

PHP Code:
dd if=/dev/zero of=/dev/whateverdevice bs=512 count=
then I created the partition using fdisk:

PHP Code:
# fdisk /dev/sda
(to create new partition)
(for primary partition)
(for partition number)
default for 
First cylinder
(change partition's system id)
1 (for partition number)
L (to view hex codes)
7 (for NTFS partition)
w (to write changes) 
I then formatted the NTFS partition using mkntfs -v /dev/sda1. I also made the partition active. I once again tried windows XP pro cdrom and it still is not able to see any hdd. Could it be that I didnt copy the start and ending sectors of the hdd prior to doing this ???????????????????

Last edited by metallica1973; 11-24-2008 at 03:49 PM.
 
Old 11-24-2008, 01:21 AM   #7
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Quote:
Originally Posted by metallica1973 View Post
I did a:

PHP Code:
dd if=/dev/zero of=/dev/whateverdevice bs=512 count=
I presume you mean 'dd if=/dev/zero of-/dev/sda bs=512 count=1' ? Otherwise you create a 512B file named 'whateverdevice'.

Quote:
Originally Posted by metallica1973
I then formatted the NTFS partition using mkntfs -v /dev/sda.
That would be a problem; 'sda' is the raw device; you would have overwritten the MBR and all. After you create a partition (or several of them) you need to format the partition, *not* the drive - so instead of 'sda' you'd use something like 'sda1'.
 
Old 11-24-2008, 04:18 PM   #8
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
when running fdisk, what is the starting sector and the end sector for this drive?

http://www.hitachigst.com/tech/techl...256EBA00749D6D

I cannot figure this out!

Last edited by metallica1973; 11-24-2008 at 06:22 PM.
 
Old 11-24-2008, 11:17 PM   #9
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Darik Nuke, Nuked my hdd and now it is not usable. What a piece of @#$#@$#@$. Beware.
 
Old 11-25-2008, 05:04 AM   #10
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
That might be, but you were given some advice about recovering. The only thing I have seen is that you cleaned the partition table AND formatted the drive (not the partition) as NTFS which was said to be wrong.

Did you also read and follow the other advices?

jlinkels
 
Old 11-25-2008, 05:06 AM   #11
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by pinniped View Post
'fdisk' would tell you something like you haven't got a valid partition table.
Therefor use cfdisk -z to ignore the invalid table.

jlinkels
 
Old 11-25-2008, 07:06 PM   #12
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Just dd the mbr as shown above.
Don't create new partition tables or create a filesystem.
Boot from Windows CD.
 
Old 11-25-2008, 09:30 PM   #13
ydns47
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
This reply generated by maintaining loggin period.

So ignore..!!

Thanks for your useful imformation,,
 
Old 11-26-2008, 03:53 PM   #14
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
gentlemen,

I just punched myself in the mouth for being so naive. This Gateway laptop M285-e Touch screen has Sata drives. The poorly packaged Gateway Restore Cdrom for this model does not have the correct drivers for the controller for this laptop(confirmed by MPC Computers formerly Gateway). It makes sense because I could load Ubuntu on it fine but I couldnt load XP pro or the XP 2005 Tablet Edition Gateway Restoration cdrom. So to make a long story short it had nothing to due with Darik's Nuke so I take all that was said badly about the product back thus inserting foot in mouth as I type. Many thanks to all. Now I have to figure out how I can add the driver to the system so that the restore cdrom will recognize the Sata controller.
 
  


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
Houston, we have a nuke Jorophose Linux - News 2 02-12-2007 08:51 PM
Php Nuke!!! FearPasion710 Linux - General 3 10-03-2003 03:43 PM
Safely Erasing a HDD with dd R4z0r Linux - General 1 06-29-2003 06:27 AM
php nuke GT I.N.C Linux - General 2 08-08-2002 02:03 AM
Post Nuke trusouthrnplaya Linux - General 1 03-28-2002 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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