From owner-freebsd-questions@FreeBSD.ORG Sat May 31 09:42:29 2008 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 76D94106564A for ; Sat, 31 May 2008 09:42:29 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by mx1.freebsd.org (Postfix) with ESMTP id E97C58FC22 for ; Sat, 31 May 2008 09:42:28 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id m4V9gL6q035820; Sat, 31 May 2008 11:42:22 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 92DDDBA97; Sat, 31 May 2008 11:42:21 +0200 (CEST) Date: Sat, 31 May 2008 11:42:21 +0200 From: Roland Smith To: Colin Brace Message-ID: <20080531094221.GA81037@slackbox.xs4all.nl> Mail-Followup-To: Colin Brace , freebsd-questions@freebsd.org References: <25515aa06ecb67b43d2a517bcceed88f@localhost> <20080531072955.GA76694@slackbox.xs4all.nl> <79defaf7e7f012e2cd5c6381d84dccb9@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <79defaf7e7f012e2cd5c6381d84dccb9@localhost> 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.17 (2007-11-01) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: error mounting USB disk: Invalid argument 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: Sat, 31 May 2008 09:42:29 -0000 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 31, 2008 at 10:27:50AM +0200, Colin Brace wrote: >=20 > On Sat, 31 May 2008 09:29:55 +0200, Roland Smith wrote: >=20 > > Can you show us what is shown in the dmesg output when you plug this > > drive in, which devices are then created and the exact command that you > > used to mount it? >=20 > dmesg: >=20 > [...] > umass0: on uhub1 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-2 device=20 > da0: 1.000MB/s transfers > da0: 194481MB (398297088 512 byte sectors: 255H 63S/T 24792C) >=20 > These nodes are created: >=20 > # ls -1 /dev/da* > /dev/da0 > /dev/da0s1 > /dev/da0s1c >=20 > Then: >=20 > # mount /dev/da0s1c /media/disk6 > mount: /dev/da0s1c : Invalid argument This is caused by the nmount system call returning EINVAL. Quoting from mount(2):=20 [EINVAL] The super block for the file system had a bad magic number or an out of range block size. After partitioning and labeling the disk, did you make filesystems on the partitions with newfs? 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) --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhBHX0ACgkQEnfvsMMhpyUeowCePslgh9jnxlKzAHJSP4H1M8z/ T2wAn1suhFkKZcj6C0VpqIcbfrZclog8 =itOI -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--