[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: formatting /dev/hdc



On Wed, Jan 07, 2004 at 01:31:59PM -0500, Debian User wrote:
> currently, i have two hard drives: /dev/hda as ext2 and /dev/hdc 
> as fat16. i want to format and partition /dev/hdc as ext2. having 
> never done this in a live system before, i though fdisk would work.
> it won't do the formatting as i have read. what should i use? also,
> i plan to partition /dev/hdc just like /dev/hda ... my thinking 
> is that sfdisk -d /dev/hda | sfdisk /dev/hdc will do the trick ..
>  am i correct?

Fdisk will create the partitions but won't do the formatting.
Let's say you partition /dev/hdc into one big partition (/dev/hdc1) that you
want to be ext2. You would use mkfs to actually format the disk.
In this case:

mkfs -t ext2 /dev/hdc1
or
mkfs /dev/hdc1
since ext2 is the default.

Bijan
-- 
Bijan Soleymani <bijan@psq.com>
http://www.crasseux.com

Attachment: signature.asc
Description: Digital signature


Reply to: