• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

formating a hardisk

I have added a hardisk which I have partition and one of which i want to add it to linux
i fdisked it and recognized that partition as linuxnative with /dev/hdc2.
After this do i have to format the hardisk in order to get recognised by the linux if yes, can someone let me know how I can do it and what is the command.
If not what else should I do so that linux recognises it.
Thanks in advance
Arun
0
tumma
Asked:
tumma
  • 2
1 Solution
 
j2Commented:
mke2fs /dev/hdwhatever

(add -m 1 to reduce the amout of root reserved space to 1%)

when the FS is complete, just mount the partition, voila.
0
 
aa0naCommented:
1.  you have to know how many blocks to format

2.  run fdisk and look to see how many blocks are in that partition.

3.  mkfs -t ext2 /dev/hdc2 165000

4.  165000 is a number i just picked out of my head, you put the number of blocks there.
0
 
j2Commented:
What? That was ages ago.

the mke2fs does all that for you.
0
 
EatEmAndSmileCommented:
Just run mkfs.ext2 /dev/hdc2 and forget about it... :)
--------------_4D4801079B98BFFFEDD4
Content-Disposition: form-data; name="notify"

on
--------------_4D4801079B98BFFFEDD4
Content-Disposition: form-data; name="Submit"

Submit
--------------_4D4801079B98BFFFEDD4--
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now