On Wed, Apr 08, 2009 at 08:50:41PM -0700, Yuri wrote: > I got USB enclosure and put HD there. > I tried to create NTFS on it (using mkntfs from sysutils/ntfsprogs). > > And got the message: > /dev/da0 is not a block device. > Refusing to make a filesystem here! > > mkntfs does 'stat' on /dev/da0. > Why /dev/da0 stats not as a block device?
FreeBSD doesn't have block devices anymore. Try 'ls -l /dev/|less' and you'll see that every device's permissions begin with a 'c' for character devices. See [http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-block.html] as to the reason why. The complaint from mkntfs is probably a linuxism. Isn't there an override switch? On FreeBSD, the test should probably test for a character device. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
pgpwGls9MICG7.pgp
Description: PGP signature