LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-06-2013, 01:05 AM   #1
Zope
LQ Newbie
 
Registered: Jan 2013
Posts: 7

Rep: Reputation: Disabled
How to clear the entire space of a hard drive


Hello Everyone,

I have a Hard drive installed as /dev/sdb1/, everything on that disk has been already saved onto another hard drive and now I need to empty the disk. When I reconnected the disk to the computer it's contents poped out on a window and I thought "this shouldn't be so different than windows and just selected the folders and deleted. Now if I do df I can still see that the space on the disk is still used and that the disk still has 85% of its space occupied. I already tried dd, but the same thing appears when I do df. If in terminal I cd to the directory where the disk was mounted and do ls, it looks empty. I need to delete the entirety of the data so I can copy other data into this file. What can I do?

Thanks,

Rodrigo
 
Old 08-06-2013, 01:07 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

have you considered deleting and recreating the partition? (eg with fdisk)

Evo2.
 
Old 08-06-2013, 01:09 AM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You can reformat with your disk utility.
What operating system?
 
Old 08-06-2013, 04:40 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Are you sure about "/dev/sdb1" - it is not a whole disk it is one partition. The whole disk would be "/dev/sdb". Do not repartition it if you do not want to lose data from other partitions, if you have any more. Please paste output of
Code:
fdisk -l
df -h
ls -la /your_mouting_point_of_sdb1

Last edited by eSelix; 08-06-2013 at 04:42 AM.
 
Old 08-06-2013, 05:10 AM   #5
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Download DBAN, burn it to a disk. turn off your PC, disconnect the disk you want to keep safe and leave the disk you want to wipe connected. Reboot with the DBAN disk in the disc drive and wipe the disk following the instructions in the screen. When thats done reconnect the other disk and restart your PC.

Last edited by k3lt01; 08-06-2013 at 05:11 AM.
 
  


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
[SOLVED] I want to delete/erase my entire hard drive. Lola Kews Ubuntu 19 10-14-2012 07:56 PM
Need to encrypt entire hard drive Do7AN Slackware 3 01-10-2010 11:41 PM
Copy entire hard drive SuperDude123 Linux - Newbie 5 09-01-2009 04:05 AM
Finding Used / Free Space for the Entire Hard Disk Jayaraghavendran Programming 1 03-03-2006 05:33 AM
Mirroring entire Hard drive guanyu Linux - General 7 03-04-2003 08:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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