Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The drive is a Western Digital 250GB S-ATA drive. How do I release this drive to stranger and get all the information of it being my only disk? Should I just boot from my Debian disk and run the installer as a fresh install or is there something else I can do?
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.
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.
Last edited by carlosinfl; 01-16-2007 at 11:39 AM.
I would boot a live Linux CD and use shred to overwrite the entire drive.
Code:
shred -v /dev/sda
That will overwrite the entire disk with random data 25 times. You may be satisfied with having the disk overwritten once. The shred man page has more information about the parameters that control its behavior.
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
dd works fastest if you keep the bs parameter small and allow that to reiterate many times via the count parameter.
Last edited by stress_junkie; 01-16-2007 at 11:50 AM.
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.
How do I release this drive to stranger and get all the information of it being my only disk? Should I just boot from my Debian disk and run the installer as a fresh install or is there something else I can do?
I don't understand your question. Do you want to get the information off of it and then securely wipe it of your personal info?
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! 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.
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 -
root@Knoppix:~# cd /media/
root@Knoppix:/media# ls
cdrom fd0 hd hda hdb sda1 sda5 test
root@Knoppix:/media# cd sda1
root@Knoppix:/media/sda1# ls
root@Knoppix:/media/sda1# ls -la
total 2
drwxr-xr-x 2 root root 1024 Jan 16 2007 .
drwxr-xr-x 10 root root 1024 Jan 16 2007 ..
root@Knoppix:/media/sda1# cd ..
root@Knoppix:/media# ls
cdrom fd0 hd hda hdb sda1 sda5 test
root@Knoppix:/media# cd sda5
root@Knoppix:/media/sda5# ls
root@Knoppix:/media/sda5# ls -la
total 2
drwxr-xr-x 2 root root 1024 Jan 16 2007 .
drwxr-xr-x 10 root root 1024 Jan 16 2007 ..
It shows nothing on the 2 mounted /dev/sda drives.
What am I missing. I want to see something there before I scrub it clean.
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 /
root@Knoppix:/# mount /dev/sda1
root@Knoppix:/# cd /dev/sda1
-su: cd: /dev/sda1: Not a directory
root@Knoppix:/# cd /media/sda1
root@Knoppix:/media/sda1# ls
System.map-2.6.17-2-k7 initrd.img-2.6.17-2-486.bak lost+found
config-2.6.17-2-k7 initrd.img-2.6.17-2-k7 vmlinuz-2.6.17-2-k7
grub initrd.img-2.6.17-2-k7.bak
root@Knoppix:/media/sda1# mount /dev/sda5
mount: you must specify the filesystem type
To me it looks fine. Perhaps I need to add another string to the "mount" command so it knows how to mount it or something like that? I obviously will need to "umount" sda5 when I am done looking at it so I can shred it.
Last edited by carlosinfl; 01-16-2007 at 06:25 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.