From owner-freebsd-questions@FreeBSD.ORG Thu Apr 9 05:38:59 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF0C01065670 for ; Thu, 9 Apr 2009 05:38:59 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by mx1.freebsd.org (Postfix) with ESMTP id 651C08FC0C for ; Thu, 9 Apr 2009 05:38:59 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr14.xs4all.nl (8.13.8/8.13.8) with ESMTP id n395cqQc081833; Thu, 9 Apr 2009 07:38:52 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 0AA9BBA8B; Thu, 9 Apr 2009 07:38:52 +0200 (CEST) Date: Thu, 9 Apr 2009 07:38:52 +0200 From: Roland Smith To: Yuri Message-ID: <20090409053851.GA18705@slackbox.xs4all.nl> References: <49DD7091.3080900@rawbw.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <49DD7091.3080900@rawbw.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Why USB enclosure with HD isn't a block device? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2009 05:39:00 -0000 --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--