[H-GEN] Formatting new HDD under Debian

Russell Stuart russell-humbug at stuart.id.au
Thu Dec 16 16:38:02 EST 2004


On Thu, 2004-12-16 at 20:31, David Duffy wrote:
> I want to replace a corrupted hard disk on my Debian box.
> To format the new one, do I just do this?
> 
> mkfs -t ext3 -c /dev/hdc1
> 
> The new one is slotting into the same IDE spot as the old one.
> I've already unmounted the old one. (& removed from fstab too)

If it is a brand new disk you probably need to partition it
first.  Use you favourite partition edits to do that.  If
you don't have one try one of these commands:

  cfdisk /dev/hda
  fdisk /dev/hda

If you want to use ext3, you probably should add a '-j' to
your mkfs command:

  mkfs -t ext3 -c -j /dev/hdc1

See "man mkfs.ext3" or "man mke2fs" for more information on -j.







More information about the General mailing list