From owner-freebsd-fs@FreeBSD.ORG Wed Feb 24 15:07:22 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 954ED106566C for ; Wed, 24 Feb 2010 15:07:22 +0000 (UTC) (envelope-from escholtz@argonsoft.de) Received: from coyote.quickmin.net (coyote.quickmin.net [217.14.112.24]) by mx1.freebsd.org (Postfix) with ESMTP id 170108FC18 for ; Wed, 24 Feb 2010 15:07:21 +0000 (UTC) Received: (qmail 47108 invoked from network); 24 Feb 2010 16:07:20 +0100 Received: by simscan 1.4.0 ppid: 47102, pid: 47106, t: 0.0167s scanners: clamav: 0.95.2/m:49/d:8609 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=argonsoft.de; b=IDqRxhhb71SbDzONUx+TQHuvWIt/sEcKLyBsG+7yPYx56tt+JmAw8LdgXZZok68P4we1MTNKWTYxngDe9dRxnNi+2DNg/62tYNL6As68iPHWtOr8dirWqN9kjGVPk4bPTVZeJ/99K3pShVt1PfnhMRGGE3FLathAKZU71X+Frx8= ; Received: from dialbs-213-023-239-142.static.arcor-ip.net (HELO erik-scholtzs-macbook-pro-15.fritz.box) (00000150@213.23.239.142) by coyote.quickmin.net with SMTP; 24 Feb 2010 16:07:20 +0100 Message-ID: <4B8540A8.7010007@argonsoft.de> Date: Wed, 24 Feb 2010 16:07:20 +0100 From: "Erik Scholtz, ArgonSoft GmbH" User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> References: <4B84EB1C.1080700@argonsoft.de> <4B84F92E.8040305@quip.cz> <4B851EAF.40200@argonsoft.de> <4B852A8B.9070505@quip.cz> In-Reply-To: <4B852A8B.9070505@quip.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: Problem with writing an UFS2 to iStore Storage System / can't find block in cyl 0 / bad magic number X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2010 15:07:22 -0000 Miroslav, works perfectly! Many thanks. One last question. After creating the filesystem successfully, I tried to run a fsck on the new partition. unfortunatly, this does not seem to be possible: ********************************************************************************** |# fsck /dev/da0p1 |fsck: Could not determine filesystem type ********************************************************************************** Do you have a hint for me, how to repair the filesystem if it gets broken? fsck_ufs and fsck_ffs repair the filesystem to dead. Cheers, Erik --- My blog: http://blog.elitecoderz.net Miroslav Lachman wrote: > Erik Scholtz, ArgonSoft GmbH wrote: >> Miroslav, >> >> thanks for your reply. No - I haven't tried this yet and so did this a >> minute ago, but got stucked on the second command: >> >> ********************************************************************************** >> >> >> |# gpart create -s GPT da0 > > [...] > >> |# gpart add -b 1 -s 20971519 -t freebsd-ufs -l MyLabel da0 >> |gpart: start '1': Invalid argument >> | >> |# gpart add -b 34 -s 20971519 -t freebsd-ufs -l MyLabel da0 >> |gpart: size '20971519': Invalid argument >> | >> |# gpart add -b 34 -s 20971485 -t freebsd-ufs -l MyLabel da0 >> |gpart: size '20971485': Invalid argument >> ********************************************************************************** >> >> >> >> Since gpart set the begin (start) on 1 and not on 34, I changed the -b >> option too. After failing this, I set the begin to 34 as in your >> example, which did not work either. Then I reduced the size (since when >> the start is later, it reduces the size too), which also did not work. > > You can try 'gpart show da0' right after gpart create, it will show you > available space. > > for example: > # gpart show da2 > => 34 209715133 da2 GPT (100G) > 34 209715133 - free - (100G) > > The first line tells you about your hard drive. You can start > partitioning from sector 34 and the last available sector is 209715133. > The second line gives information that there is free space beginning at > sector 34 and spreading to sector 209715133. > It means that the drive is empty. > > I am not sure if -s must be given in 512 bytes sectors, I saw some > HowTos with "-s 100G", but it didn't work in my setup with FreeBSD 7.2 > (it may work on 8.0?) You can try both versions and you can try little > smaller partition if it gives you an error. > (I am not too experienced with gpart) > > Miroslav Lachman