Just got a new 2TB hardrive for my Debian Squeeze Box. Trying to format it in ext4 after creating a Primary partition using cfdisk.
I just did this exact process with a 120GB drive on the same system with no problems.
After searching for the returned error on Google, it seems that it usually comes up when people are trying to format an Extended partition, not a Primary. Mine is a primary and is still showing the error.
See my shell output below for the details. Any idea why this is giving so much trouble?
Output of fdisk -l:
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 243201 1953512001 83 Linux
And then:
:~# mkfs.ext4 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
**mkfs.ext4: inode_size (128) * inodes_count (0) too big for a
filesystem with 0 blocks, specify higher inode_ratio (-i)
or lower inode count (-N).**
tried again using /dev/sdb:
:~# mkfs.ext4 /dev/sdb
mke2fs 1.41.12 (17-May-2010)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
/dev/sdb is apparently in use by the system; will not make a filesystem here!
:~#
Disk identifier: 0x00000000andDevice Boot. Normally there is only one. Did you omit an error message such asDisk /dev/sdb doesn't contain a valid partition table? – Mikel May 6 '11 at 23:26partx -l /dev/sdbprint? – Mikel May 6 '11 at 23:28