Use the 'mkfs' command.  The syntax for the command is

     mkfs -t <type> <device> <blocks>

<type> if the type of filesystem to create, i.e. vfat, msdos, ext2
<device> is the partition you want to format (note: partition, not
drive), i.e. hda1 (NOT hda)
<blocks> is the number of 1024-byte blocks.  As far as determining the
number of blocks I think fdisk should be able to help you find out the
exact number for each partition.

Alternately, use 'mkfs.ext2'.  I don't have the proper syntax for this
immediately handy but you can probably find it in a man page.

Hope this helps.

Ken



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Al Niessner
> Sent: Friday, August 20, 1999 2:33 PM
> To: expert-mandrake-linux
> Subject: [expert] formatting a disk?
>
>
>
> I have created the partitions with fdisk -- set them to 83 -- on a new
> disk, but how do I 'format' it with ext2?  I did a man on
> format, mount,
> fdisk, fd, etc looking for a clue, but could find none.  When I do the
> mount it complains that it cannot read the superblock and fails the
> mount.
>
> All help is appreciated.
>
> Al Niessner
>

Reply via email to