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.
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339
Rep:
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.