LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-31-2019, 02:51 AM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Rep: Reputation: 34
dd disk clean up test


Hi, is there a way to confirm a DD disk wipeout was successful with out using a data recovery tool?

The command I used

dd if=/dev/urandom of=/dev/sda bs=10M

Thanks and Best Regards
 
Old 07-31-2019, 02:58 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Read the messages when it finished.
 
Old 07-31-2019, 03:08 AM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hi syg00, thank for the reply. I have used ILOM console to run the command and it took about 6 days to write 6TB of data. By the time I loged in next time the output has gone off the screen and I am unable to access this even with shift + pageup or down


Thanks and Regards
 
Old 07-31-2019, 04:00 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
so save the output (= redirect it into a file)
 
Old 07-31-2019, 04:41 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Bit late now to save the output.
Short answer is no. /dev/urandom is really slow - I like to use /dev/zero as you can easily check what isn't zero after the fact. There are debates about the efficacy of this, but it suits me fine.
 
Old 07-31-2019, 05:22 AM   #6
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
I had it, then? Only way out is to run a recovery tool!

Thank you for the input, any recovery too that you might recommend, My environment is Oracle linux 6.8, 64bit / Server HW x7-2M HD 2 x 6TB drives


Kind Regards
 
Old 07-31-2019, 05:58 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
you can look for different recovery tools on the net (like testdisk), but that will be really slow.
rewriting (with logging, using /dev/zero) can be much faster.
 
Old 07-31-2019, 06:17 AM   #8
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Log back on the console, then hold down the shift key and press "Page Up" key...

---

Nevermind, I see you have already tried this; sorry.

Last edited by dc.901; 07-31-2019 at 06:18 AM.
 
Old 07-31-2019, 03:00 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Could maybe use a binary editor to view the actual disk.
 
Old 08-01-2019, 11:57 PM   #10
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
HI Guys, thank you for the replies,

Hi dc.901, I did try this but some how the keys are not interpreted as expected I change the Tried with different TERM values with no luck. For

Quote:
shift + pageup it output 3
and for

Quote:
shift + pagedown it does nothing
Hi Pan64, I have found few but looks they will take some time, was wondering of a tool that will do a quick scan and give me an out put as "no files found"

The issue is this machine was given to a customer for a POC and we need this back for another, I due to the time constrain I need this as soon as possible. Just want to know the quickest possible way to get this done.

Thank and Kind Regards
 
Old 08-02-2019, 12:47 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
you posted it at about two days ago. All the tools would have been completed since then.
 
Old 08-02-2019, 01:41 AM   #12
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Than you for the reply Pan64
 
Old 08-02-2019, 06:24 AM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,689

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by procfs View Post
HI Guys, thank you for the replies,
Hi dc.901, I did try this but some how the keys are not interpreted as expected I change the Tried with different TERM values with no luck. For and for

Hi Pan64, I have found few but looks they will take some time, was wondering of a tool that will do a quick scan and give me an out put as "no files found"

The issue is this machine was given to a customer for a POC and we need this back for another, I due to the time constrain I need this as soon as possible. Just want to know the quickest possible way to get this done.
Think about what you've done. You overwrote the ENTIRE DISK with random junk...what do you expect to find when you do that? Have you thought about just plugging it in to a working system, and trying to mount it? You have no file system, no files, nothing...and if you're going to format it for reuse anyway, what's the point of this entire exercise?

Last edited by TB0ne; 08-02-2019 at 06:29 AM.
 
Old 08-02-2019, 06:44 AM   #14
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
I have sympathy for the OP, having been involved in a benchmark centre in a previous life. Multiple users of the same environment expected access to a clean environment. And might demand proof their data wouldn't be retrievable by the next client.
Just because a filesystem isn't mountable doesn't mean you can't scrape files off the disk(s). As I said, I like /dev/zero as you can pipe dd to hexdump and list the entire device in essentially one line if it's all zeroes. KISS.
 
Old 08-02-2019, 06:59 AM   #15
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
One thing comes to mind, if this machine has a hardware RAID, then you can use the RAID utility to initialize the disks.
Then capture the output, to show as proof that disks were indeed wiped.
However, all this is depended on hardware RAID.

Otherwise, as others mentioned, next time, redirect to a file.
 
  


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
Clean $PATH and clean python install iFunction Linux - General 1 10-12-2016 09:09 AM
Load test, boundary test & stress test for USB EHCI/xHCI driver rama_toshiba Linux - Kernel 5 02-29-2012 02:43 PM
[SOLVED] Silencing the line "echo test > test/test.txt" in a shell script Arenlor Linux - General 2 06-18-2010 01:37 PM
Apache benchmark test VERY SLOW from clean install! wepeel Linux - Enterprise 0 10-04-2004 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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