LinuxQuestions.org
Register a domain and help support LQ
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 12-09-2005, 04:54 PM   #1
Haraldsh
LQ Newbie
 
Registered: Sep 2003
Distribution: Debian 2.6.9 Sarge
Posts: 24

Rep: Reputation: 15
Howto remove Windows using Knoppix


I need to remove the Windows partion and other information left on it, and at the same time secure that no information is left (not restorable). How can I do that with using Knoppix? Currently my problem is that I cannot get access to remove any files on a ntfs partition, which is annyoing. I'm using the recent version of Knoppix (4.0) that has ntfs support for both read & write.



How do I proceed?
 
Old 12-09-2005, 05:11 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
If you want to remove all the info from a partition, you don't need to unmount it. You can overwrite the whole of it (that's even more secure because the information about which file was where will be also removed). All you need is the partition name (like /dev/hda1). Find it out (you have probably already done it).

Then look if you have openssl installed. It has a nice option, rand, that produces random values. You can overwrite the whole partition this way. To learn more about it, run 'man rand'.

The command will be rather simple (but make sure you're using right partition name, because you'll remove everything!). It's something like
openssl rand -out /dev/hda1 100000
The last parameter is size (in bytes). You can test it with smaller one first to see if it works correctly (because it'll take some time when run on N GB).

Edit: if you want it really impossible to recover, repeat ten times or so.

Last edited by Mara; 12-09-2005 at 05:12 PM.
 
Old 12-09-2005, 05:12 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
unmount the partition and go
dd if=/dev/random of=/dev/hd<where windows lives> bs=2048
a couple of times...



Cheers,
Tink
 
Old 12-09-2005, 05:13 PM   #4
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
well looks like the above poster's beat me to it.

Last edited by Boow; 12-09-2005 at 05:15 PM.
 
Old 12-10-2005, 12:03 AM   #5
Haraldsh
LQ Newbie
 
Registered: Sep 2003
Distribution: Debian 2.6.9 Sarge
Posts: 24

Original Poster
Rep: Reputation: 15
nothing seems to happen when I do "dd if=/dev/random of=/dev/hd<where windows lives> bs=2048"
 
Old 12-10-2005, 12:33 AM   #6
Haraldsh
LQ Newbie
 
Registered: Sep 2003
Distribution: Debian 2.6.9 Sarge
Posts: 24

Original Poster
Rep: Reputation: 15
Okay something must have happened since I can't mount the partition again (hooray). But I thought a extensive operation as overwriting 60GB should get the harddrive to work alot, there is no activity showing whatsoever either on the lights of the computer or the "top". Am I doing something wrong here?
 
Old 12-10-2005, 12:59 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
I though random had the potential to block, hence you may not scrub the entire partition. Especially on repeated runs.
I've always considered urandom a better option for things like this.
 
Old 12-10-2005, 12:33 PM   #8
Haraldsh
LQ Newbie
 
Registered: Sep 2003
Distribution: Debian 2.6.9 Sarge
Posts: 24

Original Poster
Rep: Reputation: 15
urandom worked better, thanks!
 
  


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
VNC howto remove background? humbletech99 Linux - Networking 3 10-14-2005 06:53 AM
howto manually remove hardware mcalizo Linux - Hardware 5 04-29-2005 09:32 AM
howto remove GRUB from the partition using fdisk ? cccc Linux - General 6 01-18-2005 08:09 PM
Remove linux with Knoppix? HULLU Linux - General 6 11-08-2004 03:30 PM
How does one remove the custom KNOPPIX graphics from a KNOPPIX HD Install? apache363 Linux - Distributions 2 03-29-2004 06:08 AM


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