Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Misc > Formatting a Linux hd?

Forgot Password?
 Misc   Any questions or Linux discussion that does not fit in any of the other technical areas.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-18-2009   #1 (permalink)
Just Joined!
 
Join Date: Jul 2009
Posts: 10
Formatting a Linux hd?

I'm looking for a clean start, before switching distros as I have had problems of late.

Normally under windows I'd just drop a win 98 boot disk in and DOS my way to a quick format or partition removal. But under Linux, I am at a loss. What if anything is there that does this on a HD occupied by Linux?
brian_va is offline  


Reply With Quote
Old 09-18-2009   #2 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Panther City, Tx
Posts: 4,110
Quote:
Originally Posted by brian_va View Post
I'm looking for a clean start, before switching distros as I have had problems of late.

Normally under windows I'd just drop a win 98 boot disk in and DOS my way to a quick format or partition removal. But under Linux, I am at a loss. What if anything is there that does this on a HD occupied by Linux?
You can use most Linux installer CD/DVD's to overwrite the data for you when you begin the install. Just tell the installer to install over the top of the old install, just like you would with Windows. Well not exactly like that, but you get the idea.
__________________
I do not respond to private messages asking for help.
Please keep it on the forums only.
MikeTbob is offline   Reply With Quote
Old 09-18-2009   #3 (permalink)
Just Joined!
 
Join Date: Jul 2009
Posts: 10
I understand that method, but I suspect something is on my drive that prevents me from Ubuntu, that doesn't prevent me from running Fedora or Mint. I juts wanted a clean slate to ensure one way or another.
brian_va is offline   Reply With Quote
Old 09-18-2009   #4 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,495
You could boot a linux livecd and do something like

Code:
dd if=/dev/zero of=/dev/hda
This is not formatting (though), it will just leave your disk completely plain, without partitions.

Beware that this will overwrite your whole drive with zeroes, which means that you will not be able to recover a single bit out of it once this has finished. If you do this, make sure you choose the correct drive and don't throw /dev/hda in there blindingly.

However, there shouldn't be a need for that. If you truly want to erase all the partitions you should be able to do it from almost any installer. And if not, just boot a livecd, and then use fdisk, parted, gparted or whatever suits you to delete all the partitions. Save, reboot and insert whatever installation disk you want.
i92guboj is offline   Reply With Quote
Old 09-18-2009   #5 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,202
Yup, pretty much all installers include partitioning tools, a few command line only, and pretty much all live CD's include gparted.

GParted partitioning software - Full tutorial
reed9 is online now   Reply With Quote
Old 09-18-2009   #6 (permalink)
Linux Newbie
 
Join Date: May 2009
Posts: 129
Most Distros include also GParted.
GParted is a very powerfull tool that is very easy (intuitively) to use and looks very similar to Partition Magic.

I also used DOS and fdisk very much but for Linux I don't know anything better than GParted. Try it out. It's really easy.
As it supports nearly all filesystems it is much more powerfull than fdisk under win98.
__________________
computerophil.at
computerophil is offline   Reply With Quote
Old 09-18-2009   #7 (permalink)
Just Joined!
 
Join Date: Sep 2009
Posts: 15
FC3 does a good job.

Had several stalls lately and used FC3 to "clean" the disk properly. It re-formats and so destroys all switches that may be set to get good reboots. The bad ones too!

And it lets you see what it does.
Carsto is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:47 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2