From owner-freebsd-sparc Thu Oct 31 7:38:11 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74B4F37B401 for ; Thu, 31 Oct 2002 07:38:09 -0800 (PST) Received: from k6.locore.ca (k6.locore.ca [198.96.117.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4DF643E3B for ; Thu, 31 Oct 2002 07:38:08 -0800 (PST) (envelope-from jake@k6.locore.ca) Received: from k6.locore.ca (jake@localhost.locore.ca [127.0.0.1]) by k6.locore.ca (8.12.5/8.12.5) with ESMTP id g9VFpPbd032938; Thu, 31 Oct 2002 10:51:25 -0500 (EST) (envelope-from jake@k6.locore.ca) Received: (from jake@localhost) by k6.locore.ca (8.12.5/8.12.5/Submit) id g9VFpOCs032937; Thu, 31 Oct 2002 10:51:24 -0500 (EST) Date: Thu, 31 Oct 2002 10:51:24 -0500 From: Jake Burkholder To: Alex Deiter Cc: sparc64@FreeBSD.ORG Subject: Re: Creating a Disk Label: fsck don't work Message-ID: <20021031105124.E22677@locore.ca> References: <067f01c27fee$9b2fcba0$6301320a@dav> <20021030111111.D22677@locore.ca> <081601c280e8$3104c780$6301320a@dav> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <081601c280e8$3104c780$6301320a@dav>; from tiamat@komi.mts.ru on Thu, Oct 31, 2002 at 05:17:04PM +0300 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Apparently, On Thu, Oct 31, 2002 at 05:17:04PM +0300, Alex Deiter said words to the effect of; > # uname -a > FreeBSD serafima 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Wed Oct 30 10:15:02 MSK > 2002 sparc64 > > # disklabel -w -r -B da0 auto > # disklabel -e -r da0 > ...edit > > # disklabel -r da0 > # /dev/da0c: > type: unknown > disk: amnesiac > label: > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 255 > sectors/cylinder: 16065 > cylinders: 4427 > sectors/unit: 71132959 > rpm: 3600 > interleave: 1 > trackskew: 0 > cylinderskew: 0 > headswitch: 0 # milliseconds > track-to-track seek: 0 # milliseconds > drivedata: 0 > > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 71132959 0 4.2BSD 1024 8192 16 # (Cyl. 0 - > 4427*) > c: 71132959 0 unused 0 0 # (Cyl. 0 - > 4427*) > serafima# newfs /dev/da0a > newfs: /dev/da0a: No such file or directory > serafima# ls -l /dev/da0* > crw-r----- 1 root operator 4, 0 Oct 31 18:01 /dev/da0 > crw-r----- 1 root operator 4, 6 Oct 31 18:01 /dev/da0c > # reboot > > ....after reboot... > > # ls -l /dev/da0* > crw-r----- 1 root operator 4, 0 Oct 31 18:04 /dev/da0 > crw-r----- 1 root operator 4, 1 Oct 31 18:04 /dev/da0a > crw-r----- 1 root operator 4, 2 Oct 31 18:04 /dev/da0c > > # newfs /dev/da0a > /dev/da0a: 34732.9MB (71132956 sectors) block size 16384, fragment size 2048 > using 190 cylinder groups of 183.62MB, 11752 blks, 23552 inodes. > super-block backups (for fsck -b #) at: > 32, 376096, 752160, 1128224, 1504288, 1880352, 2256416, 2632480, 3008544, > .... > 70324000, 70700064, 71076128 > # echo $? > 0 > > # fsck /dev/da0a > fsck: cannot get disklabel for `/dev/da0a': Inappropriate ioctl for device Use fsck_ffs or put the filesystem in /etc/fstab so fsck can guess the type. Jake To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message