LinuxQuestions.org
Help answer threads with 0 replies.
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 10-25-2011, 10:19 PM   #1
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Rep: Reputation: Disabled
Delete ENTIRE Drive


How would I do this: Delet all data on a physical drive ignore all partitions delete the entire physical drive and then replace it with a sleek, modern FAT filesystem. I mean ignore partitions as in ignore that they are there and delete everything no matter what filesystem it is.
 
Old 10-25-2011, 10:26 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You can use the "dd" command to wipe an entire drive by filling it with zeros. If you want to do this to the primary drive, you will need to boot to some kind of live system to perform the erase, though if you are trying to wipe a secondary drive then there's no problem.

Code:
dd if=/dev/zero of=/dev/DEVICE bs=1M
Where DEVICE is your dev node (probably sda, sdb, etc). Please, please be careful when running a command like this, and be absolutely sure you are running it against the right device. If you accidentally run it against your primary drive, or something you want to keep, the command will likely have already done permanent damage before you realize the mistake and cancel the process.
 
Old 10-26-2011, 12:35 AM   #3
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
you can use fdisk to delete partitions and create new ones. for example:
Code:
fdisk /dev/sdb
then use mkfs.vfat (for FAT filesystem). FAT is limited to files smaller than 4GB
or better use mkfs.ntfs to create a NTFS filesystem and be able to have huge files on it. I tested it with files up to 30GB, but it can go even higher.
Both FAT and NTFS are Windows filesystems, so you'll be able to access the data when plugging the disk into a Windows XP, Vista or Seven machine.
Otherwise, ext3 or ext4 are the modern Linux filesystems. XFS is a great Linux filesystem but a bit less common.

Have fun
 
Old 10-27-2011, 01:09 AM   #4
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
you Have kubuntu live cd. Run kubuntu's installer and when it get's to the partition part, choose advance and then you'll manual control of all partitions, and you can then delete them. You are posting off a mac. If the computer you want to do this to is the mac, then you can use the mac install disc too, with disc utilitys in the menu bar after setting the language.
 
Old 10-27-2011, 01:45 AM   #5
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
also http://www.dban.org/ of course you only need to use this if you want a forensically clean hard drive .

Last edited by Daedra; 10-27-2011 at 01:52 AM.
 
Old 10-27-2011, 01:54 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
replace it with a sleek, modern FAT filesystem.
the FAT format is anything BUT modern
it is old ,VERY OLD , it dates to 1995
in computer terms that is 3 generations old

a fat file system WILL NOT hold a dvd iso
nor any file larger than 4 gig minus 1 bit ( 3.999...9 gig )

If you NEED a windows format use NTFS !
 
  


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] find a null value in a row/column and delete entire row umix Linux - Newbie 10 10-13-2011 01:26 AM
Sed search for variable and delete entire line, but variable contains forward /'s Passions Programming 2 11-10-2008 03:44 PM
how to delete entire contents of file using vi editor once sunlinux Linux - General 1 08-17-2007 05:48 AM
Delete an entire partition john8675309 Linux - Software 1 02-02-2005 08:57 PM
i need to delete my entire HD but linux wont let me? aaronluke Linux - General 6 10-25-2002 08:50 PM

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

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