From owner-freebsd-questions@FreeBSD.ORG Mon Jun 2 13:36:05 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 5700B1065762 for ; Mon, 2 Jun 2008 13:36:05 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from a.cs.okstate.edu (a.cs.okstate.edu [139.78.113.1]) by mx1.freebsd.org (Postfix) with ESMTP id 433998FC0A for ; Mon, 2 Jun 2008 13:36:05 +0000 (UTC) (envelope-from lreid@cs.okstate.edu) Received: from [127.0.0.1] (localhost [127.0.0.1]) by a.cs.okstate.edu (Postfix) with ESMTP id 24BCC154CA4; Mon, 2 Jun 2008 08:36:04 -0500 (CDT) Message-ID: <4843F741.3010304@cs.okstate.edu> Date: Mon, 02 Jun 2008 08:36:01 -0500 From: Reid Linnemann User-Agent: Thunderbird 2.0.0.6 (X11/20070926) MIME-Version: 1.0 To: Colin Brace References: <25515aa06ecb67b43d2a517bcceed88f@localhost> <20080531072955.GA76694@slackbox.xs4all.nl> <79defaf7e7f012e2cd5c6381d84dccb9@localhost> <20080531094221.GA81037@slackbox.xs4all.nl> <19839aceb10de69024c9fae933836067@localhost> In-Reply-To: <19839aceb10de69024c9fae933836067@localhost> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Mon, 02 Jun 2008 13:36:05 -0000 Written by Colin Brace on 05/31/08 05:17>> > On Sat, 31 May 2008 11:42:21 +0200, Roland Smith wrote: > >> After partitioning and labeling the disk, did you make filesystems on >> the partitions with newfs? > > Ah, no. According to Absolute FreeBSD, 2nd ed, which I have in front of me, > newfs invoked by sysinstall, which I used to create the slice and partition > it (p 241). > > Anyway, I now try running newfs in terminal, but it throws up some errrors: > > # newfs /dev/da0s1c > /dev/da0s1c: 194474.3MB (398283416 sectors) block size 16384, fragment size > 2048 > using 1059 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. > super-block backups (for fsck -b #) at: > newfs: wtfs: 65536 bytes at sector 160: Invalid argument > > # newfs /dev/da0s1c > /dev/da0s1c: 194474.3MB (398283416 sectors) block size 16384, fragment size > 2048 > using 1059 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. > super-block backups (for fsck -b #) at: > 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, > 3387328, 3763680, 4140032,newfs: wtfs: 65536 bytes at sector 4516384: > Invalid argument You obviously did not really partition the slice with bsdlabel. The c partition is invalid for a filesystem. If you look at the label I'm sure you'll see that the FSTYPE field is 'unused', with a comment that reads ``"raw" part, don't edit``. You should add a partition with bsdlabel, perhaps partition 'a', with fstype 4.2BSD. You can then newfs this partition.