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 03-13-2006, 04:28 PM   #1
dangergirl
Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
Question scrub hard disk from remote login


I have a situation where I no longer have physical access to a linux box, but I can still log in remotely. The long and shotr of it is that I wasn't supposed to have this linux box and I could get busted for it being there. So, I would like to completely scrub the hard drive from a remote ssh session. This is totally without malicious intent. I just want to conver my ass.

I am wondering if anyone knows what will happen if you do this using dd.
Specifically, I would like to know if the command has any hope of actually finishing the job once it is started. Or, will the thing bail out because it is scrubbing the hard disk on which the entire operating system is installed.

This is what I was going to use:

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

an let it repeat like 10 times.

thks
dangergirl
 
Old 03-13-2006, 05:47 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Here's what I would try to do, because usually you can't do something like that to a mounted filesystem (i've never done this, but it should work on principle):

1) add a partition
2) add a minimal linux install that has the shred utility and can be loaded to ramdisk
3) modify your bootloader to reboot directly into the ramdisk linux
4) shred the drive

It would be easier if someone could get to the machine with a Knoppix CD and use shred on the drive.

I'm not sure, but you might be able to on the fly load linux into ramdisk and then shred the drive. The key here is to somehow get a minimal kernel with network support (since you'll be connected) loaded up and running shred on the drive...
 
  


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
Cloning 1 hard disk to smaller hard disk, dd or ghost? fireman949 Linux - Hardware 8 12-23-2012 12:51 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
Mounting and using hard disk of remote box umeshbabu Linux - Newbie 1 08-15-2005 06:08 AM
Utility to scrub free space on a disk? Pontius Linux - Software 1 05-20-2004 03:44 PM
Hard Disk question - Making a big hard disk MrAnonym Linux - General 2 09-15-2003 06:08 PM

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

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