On Thu, 24 Feb 2011, Howard Sanner wrote:
I'm trying to create a linux partition & format a 500GB Western Digital EIDE
HD under Suse 10.0. I'd like one 500GB partitition.
By using cfdisk I managed to create a non-bootable primary partition
/dev/hdb1 with type 0x83. So far, so good.
When I try to create an ext2 filesystem,
mkfs -v -c -t ext2 /dev/hdb1
gives an "invalid blocks count" error. However, the man page seems to
indicate that blocs count is optional. Running
mkfs.ext2 -c -v /dev/hdb1
returns "could not stat /dev/hdb1 -- no such file or directory" and asks if I
specified it correctly.
I suspect the second error message is the real problem: /dev/hdb exists but
/dev/hdb1 does not. I seem to recall there's a special command to create a
block device, but I can't find it in any of the messages I've saved from this
mailing list. I'm *sure* I would have saved something like this!
So please help. I know I'm doing something simple wrong. (This is what
happens when you turn a music major--B.A. '75; M.M. '81--loose with
hardware.)
Thanks.
Howard Sanner
linux-au...@terrier.ampexguy.com
Under kernel 2.6 and udev, creating the device is supposed to be
automatic.
First try to see if the kernel sees the new partition:
dmesg | grep hdb
If you don't see hdb1, make the kernel re-read the partition table:
hdparm -z /dev/hdb
If /dev/hdb1 still doesn't exist, you can make it the old fashioned way:
/dev/MAKEDEV hdb1