Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Oct 1998 22:30:37 -0400 (EDT)
From:      Brian Tao <taob@risc.org>
To:        Simon Shapiro <shimon@simon-shapiro.org>
Cc:        "Jordan K. Hubbard" <jkh@time.cdrom.com>, freebsd-current@FreeBSD.ORG, mike@smith.net.au, Bruce Evans <bde@zeta.org.au>
Subject:   Re: Show Stopper? Failure to Install 19981014
Message-ID:  <Pine.GSO.3.96.981017212538.5865X-100000@tor-dev1.nbc.netcom.ca>
In-Reply-To: <XFMail.981017114617.shimon@simon-shapiro.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 17 Oct 1998, Simon Shapiro wrote:
> 
> Please note that:
> 
> a.  At least here, newfs, in and by itself, in an installed system
> does not exhibit any of these messages, nor the faulty behavior.
> Only the context of sysinstall, from the boot floppy does.

    Not here.  I picked up an old 1GB drive and by habit, I
disklablled the first filesystem as swap, and then root.  Newfs'ing
from the command line always prints the error (contrary to prior
observations saying the error does not appear on second and subsequent
tries, while in /stand/sysinstall):

# disklabel -r da1s1 | fgrep -A 2 fstype
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   204800   262144    4.2BSD        0     0     0   # (Cyl.   16*- 29*)
  b:   262144        0      swap                        # (Cyl.    0 - 16*)

# newfs da1s1a
/dev/rda1s1a:   204800 sectors in 50 cylinders of 1 tracks, 4096 sectors
        100.0MB in 4 cyl groups (16 c/g, 32.00MB/g, 6272 i/g)
super-block backups (for fsck -b #) at:
 32, 65568, 131104, 196640,
newfs: ioctl (WDINFO): Cross-device link
newfs: /dev/rda1s1a: can't rewrite disk label

# newfs da1s1a
/dev/rda1s1a:   204800 sectors in 50 cylinders of 1 tracks, 4096 sectors
        100.0MB in 4 cyl groups (16 c/g, 32.00MB/g, 6272 i/g)
super-block backups (for fsck -b #) at:
 32, 65568, 131104, 196640,
newfs: ioctl (WDINFO): Cross-device link
newfs: /dev/rda1s1a: can't rewrite disk label


    If I reverse the / and swap filesystems so that / starts at
cylinder 0, the error is not printed:

# disklabel -r da1s1 | fgrep -A 2 fstype
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   262144        0    4.2BSD        0     0     0   # (Cyl.    0 - 16*)
  b:   204800   262144      swap                        # (Cyl.   16*- 29*)

# newfs da1s1a 
/dev/rda1s1a:   262144 sectors in 64 cylinders of 1 tracks, 4096 sectors
        128.0MB in 4 cyl groups (16 c/g, 32.00MB/g, 7936 i/g)
super-block backups (for fsck -b #) at:
 32, 65568, 131104, 196640,

#

    In both cases, the filesystem appears to be created correctly.
This happens with both 3.0-19981004 and 3.0-19981016 newfs.
-- 
Brian Tao (BT300, taob@risc.org)
"Though this be madness, yet there is method in't"


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.981017212538.5865X-100000>