Getting Rid Of Hard Drive?
OK - I am selling my one and only hard drive which is what my Linux partition is built on.
Code:
cwilliams@stormshadow:~$ sudo df -h |
Sorry, I didn't quite get what you are up to. I'm confused by this getting-rid expression...
do you want to a) get all information of it, as in transfering it to a new disk, or b) get all information off it, as in giving it to a stranger completely empty? I suppose, you are going to give your old hard drive away and want to transfer the information on it to a new harddrive? Is this it? Then, you probably don't need to rerun the installer at all. Your partition setup is pretty straight-forward, shouldn't be much of a hassle. Just * connect your new drive * boot from your old hard drive as root * recreate both of your data partitions ( / and /boot) with cfdisk on the new harddrive * create the file systems with mkfs -t ext3 * mount them somewhere (e.g., /mnt/new-hd and /mnt/new-hd/boot) * copy the content from the old one there with cp -xRp / /mnt/new-hd and cp -xRp /boot /mnt/new-hd/boot * After that, update /mnt/new-hd/etc/fstab if necessary * Don't forget to reconfigure and install the boot loader on the new drive's MBR. * Switch hard drives * Pray that I didn't tell bullshit here If both drives have the same dimensions, you could just "clone" them with the dd utility. Hope that helps ~fab |
No - I am selling my drive and I have uploaded all my data to a secure NFS on my LAN. I am scared someone will be able to access the drive data and any sensitive information I have on it.
When I release the drive to the new owner, how do I make sure the drive is wiped and the data would be gone or hard to recover? I understand to some degree there is always a way to recover data depending on who and how bad they want it. What is the best process for wiping the one & only drive I have on my system? I tried booting with Knoppix 3.6 (old) and it has a app called "QtParted" which did not work as I am still booting from the system and posting from it now. Everything is still here. |
I would boot a live Linux CD and use shred to overwrite the entire drive.
Code:
shred -v /dev/sda Some Linux distributions may not have shred but do have a similar utility called wipe. If all else fails you could use the dd utility. Code:
dd if=/dev/urandom of=/dev/sda bs=25K count=10G |
Reformatting and reinstalling will not really erase all of your personal data from the disk. Overwriting the disk with multiple passes with alternating ones and zeros via the dd command will pretty much keep all but the professional data recovery people from finding any real info.
|
Quote:
If that's what it is, burn your info to CD/DVD that you want to keep. Then reboot with a Knoppix CD and type shred -z -v -n 10 /dev/sda. This will overwrite the drive 10 times with different combinations of data and then a final pass with all zeros. If you're really paranoid, you can leave off the "-n 10" and it defaults to like 25 times or some large number (just be prepared to wait a day for it to finish). EDIT: Late to the game as always! :D BTW after you finish shredding the drive, you can see just how good of a job you did by running a forensic program on the drive like foremost or photorec and see if it comes back with any real data. |
Yes - I just want to destroy all data on the disk. I know how to back up everything fine but I don't want my resume, tax info, SS#, and everything else I have on my Linux box being recovered by some 17 year old kid.
|
You could download Darik's Boot and Nuke.
http://dban.sourceforge.net/ |
So I just booted into Knoppix for fun and I for some reason can't understand why I am unable to browse my drives data from a Live CD?
Code:
knoppix@Knoppix:~$ sudo su - What am I missing. I want to see something there before I scrub it clean. |
Were they mounted or just recognized and mount points were created? I'm guessing /etc/fstab has the "noauto" option. Try mount /dev/sda1...
|
OK - that worked but as you can see my data seems to be on the /dev/sda5 partition and the same command that worked for sda1 does not for sda5, why?
Code:
root@Knoppix:/media/sda5# cd / |
Maybe sda5 isn't in fstab? cat /etc/fstab
|
Code:
root@Knoppix:/media/sda1# cat /etc/fstab |
What type of filesystem is it (fdisk -l)? Change the "auto" to the right filesystem type.
|
Code:
root@Knoppix:/media/sda1# fdisk -l |
All times are GMT -5. The time now is 10:19 AM. |