Re: Problem creating filesystem

Guest section DW (dwguest@win.tue.nl)
Tue, 27 Feb 2001 02:39:05 +0100


On Mon, Feb 26, 2001 at 06:48:16PM -0500, Carlos Fernandez Sanz wrote:

> I have just purchased a new HD and I'm getting problems creating a
> filesystem for it. The HD is a Maxtor 80 Gb
>
> Disk /dev/hde: 16 heads, 63 sectors, 15871 cylinders
> Units = cylinders of 1008 * 512 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hde1 1 15871 7998952+ 83 Linux
>
> Command (m for help): w
> The partition table has been altered!
>
> Calling ioctl() to re-read partition table.
>
> Syncing disks.
> ------------------
> When trying to create the filesystem, I get this:
>
> [root@alhambra /sbin]# ./mke2fs /dev/hde1
> mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
> /dev/hde1: Invalid argument passed to ext2 library while setting up
> superblock
> -------------------
>
> I'm using
> Linux version 2.2.17-14 (root@porky.devel.redhat.com)

Reboot. Look at the boot messages. You should see your disk mentioned
and the partitions listed (hde: hde1).
If they disappear too quickly, say "dmesg | grep hde".

Test the size of hde1 with "blockdev --getsize /dev/hde1"
or "fdisk -s /dev/hde1" or so. If you get 0 that explains
the mke2fs error.

Make sure your tools are up to date. Old versions often have
an overflow somewhere.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/