1828427 Members
4678 Online
109977 Solutions
New Discussion

Re: format

 
navin
Super Advisor

format

I would like to know what the equalent command
for "format" in linux.presently i work in sun system.Pls help.
Thanks
Learning ...
6 REPLIES 6
Jerome Henry
Honored Contributor

Re: format

Hi !

So you must be talking about MS DOS command format, like in format a: to make 1.44 mb diskette.

You can use mkfs (man mkfs for info).

If you installed mtools (great package !) just type mformat, like in DOS !

hth

J
You can lean only on what resists you...
Caesar_3
Esteemed Contributor

Re: format

Hello!

Pls explain what you mean by format,
what you want to format drive or floppy
or other device.

Caesar
Balaji N
Honored Contributor

Re: format

using the format command in sun, u can identify the hard disks connected to a system and then partition them into slices.

if you are looking at that,

then fdisk is your friend on linux.
fdisk -l lists all all connected / identfied hard disks.

fdisk /dev/hda will enable you to partition / view/modify details of partitions on /dev/hda.

you need root access to all this. and after you create the partitions, you need to create a filesystem before you are able to access them.

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Caesar_3
Esteemed Contributor

Re: format

Hello!

So if format in sun is to work on HD,
so on linux you have fdisk for interactive
and sfdisk for commandline work on HD.

After you create a partition on the disk
and if the partition for simple storage (not for database and so on) then you must create
filesystem on the partiton with mkfs.

Caesar
Sanjiv Sharma_1
Honored Contributor

Re: format

Hi,

fdisk/sfdisk for partitioning the HDD and
mkfs for filesystem creation.

hth.
Everything is possible
Huc_1
Honored Contributor

Re: format

Hello

For floppy diskette format

fdformat # read man fdformat

for formatting/patitioning harddisk

fdisk /dev/'your device hda,sda ...'

mkfs* # man -k mkfs

the above command man -k mkfs will point you to the many diferrent file system's you can have on you various device's



Hope You find some of this of use

Jean-Pierre
Smile I will feel the difference