Date: Thu, 9 Apr 2009 07:38:52 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Yuri <yuri@rawbw.com> Cc: freebsd-questions@freebsd.org Subject: Re: Why USB enclosure with HD isn't a block device? Message-ID: <20090409053851.GA18705@slackbox.xs4all.nl> In-Reply-To: <49DD7091.3080900@rawbw.com> References: <49DD7091.3080900@rawbw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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). >=20 > And got the message: > /dev/da0 is not a block device. > Refusing to make a filesystem here! >=20 > 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 --=20 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) --J2SCkAp4GZ/dPZZf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkndiesACgkQEnfvsMMhpyX7agCfTDl64B+n35J1VCyuRo4ZkNS+ kcMAnixqIMQPeQbQuRZe0jh6D6UvGZSz =LKeZ -----END PGP SIGNATURE----- --J2SCkAp4GZ/dPZZf--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090409053851.GA18705>