Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

format /dev/hda ?

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
Swordmaster
Posts: 19
Joined: 2004-03-14 13:01

format /dev/hda ?

#1 Post by Swordmaster »

I totally messed-up my HD. I hat an debian installation that was far from ok, and then I experimented with dual boot.
To make the story short: I made a mess!

Today I feel like cleaning so, what I want to do is clean out the hole HD (after backing up my important files of course!) and begin all over again.
In windows I used to format the hole thing and it was clean. But how can I do this with Linux?

lacek
Posts: 764
Joined: 2004-03-11 18:49
Location: Budapest, Hungary
Contact:

#2 Post by lacek »

You make a filesystem on it; that will erase any previous data. Making a filesystem is done by the command
mkfs.<filesystem_type>
So, if you want to make an ext2 filesystem, mkfs.ext2 is your friend. Note that Linux install CDs are always clean the HDD (if they aren't asked not to do so), so if you want to install a new linux, just boot the install CD, it will do the rest.

Swordmaster
Posts: 19
Joined: 2004-03-14 13:01

#3 Post by Swordmaster »

I want to clean up the total HD. so I wnat to get rid of the windows partition too. Will this partition be gone too when I boot a linux CD?

lacek
Posts: 764
Joined: 2004-03-11 18:49
Location: Budapest, Hungary
Contact:

#4 Post by lacek »

During the installation process, Linux will ask you if you want to partition your hard disk. If the disk is already partitioned, and valid ext2 and swap partitions are found, this step will be optional.
While partitioning your disk, you can remove the windows partition, and create new partition(s) instead. This way, all the data will be lost with the deleted partition.

Post Reply