Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 2002 10:51:24 -0500
From:      Jake Burkholder <jake@locore.ca>
To:        Alex Deiter <tiamat@komi.mts.ru>
Cc:        sparc64@FreeBSD.ORG
Subject:   Re: Creating a Disk Label: fsck don't work
Message-ID:  <20021031105124.E22677@locore.ca>
In-Reply-To: <081601c280e8$3104c780$6301320a@dav>; from tiamat@komi.mts.ru on Thu, Oct 31, 2002 at 05:17:04PM %2B0300
References:  <067f01c27fee$9b2fcba0$6301320a@dav> <20021030111111.D22677@locore.ca> <081601c280e8$3104c780$6301320a@dav>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021031105124.E22677>