Bug 22800

Summary: 4.2 rc1 install runs newfs on parts marked N
Product: Base System Reporter: heas
Component: i386Assignee: jkh
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description heas 2000-11-13 02:20:01 UTC
partitions (in install process via mfs root) marked to be mounted
but 'UFS N' are newfs'd.
Comment 1 John Polstra freebsd_committer freebsd_triage 2000-11-18 17:52:59 UTC
Responsible Changed
From-To: freebsd-bugs->jkh

Jordan is Mr. Sysinstall.  This sounds like a very nasty bug, and it 
definitely merits a look before the release is tagged.
Comment 2 heas 2000-11-18 18:22:34 UTC
jdp> did you tell it to do an upgrade install?

no, this was not an upgrade.  my initial intention was to update
the mbr so that wd0s1 was recognized and bootable as a fbsd slice
(since i couldnt figure out how to fix it with disklabel, etc ).
then build 4.2 from source and install it.

i booted off the 4.2 kern and miniroot floppies (from usb floppy).

i had a second partition (slice) on a sony vaio x505rx 8g eide (?)
drive.  the first was wd0s1 (w/ fbsd 3.4 driver, it appears to now
prefer ad in 4.2 ?) w/ some microsoft crap and wd0s2 w/ fbsd 3.4.

jdp> What were the actual names of the partitions and mount points?

there are 2 slices, each with 2 partitions.  1 for root and 1 for swap
for the 2 versions.  well, wd0s2a and wd0s2b existed.  wd0s1 was
initially some MS format.

roome [6] df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/ad0s1a   3558590  1426994  1846909    44%    /
/dev/ad0s2a   3558590        1  3273902     0%    /mnt
procfs              4        4        0   100%    /proc
roome [7] disklabel -r ad0s1
# /dev/ad0s1c:
type: ESDI
disk: ad0s1
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 240
sectors/cylinder: 15120
cylinders: 554
sectors/unit: 8391537
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:  7343216   262144    4.2BSD     1024  8192    16   # (Cyl.   17*- 502*)
  b:   262144        0      swap                        # (Cyl.    0 - 17*)
  c:  8391537        0    unused        0     0         # (Cyl.    0 - 554*)
roome [8] disklabel -r ad0s2
# /dev/ad0s2c:
type: ESDI
disk: ad0s2
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 240
sectors/cylinder: 15120
cylinders: 503
sectors/unit: 7605360
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:  7343216   262144    4.2BSD     1024  8192    16   # (Cyl.   17*- 502*)
  b:   262144        0      swap                        # (Cyl.    0 - 17*)
  c:  7605360        0    unused        0     0         # (Cyl.    0 - 502)
roome [9] uname -a
FreeBSD roome.shrubbery.net 4.2-RC1 FreeBSD 4.2-RC1 #2: Mon Nov 13 09:20:26 GMT 2000     root@roome.shrubbery.net:/usr/src/sys/compile/roome  i386

dmesg ...
Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 4.2-RC1 #2: Mon Nov 13 09:20:26 GMT 2000
    root@roome.shrubbery.net:/usr/src/sys/compile/roome
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (397.90-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x66d  Stepping = 13
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
real memory  = 134152192 (131008K bytes)
avail memory = 127627264 (124636K bytes)
Preloaded elf kernel "kernel" at 0xc02ea000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc02ea09c.
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX host to PCI bridge (AGP disabled)> on motherboard
pci0: <PCI bus> on pcib0
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xfcc0-0xfcff mem 0xfed00000-0xfedfffff,0xfecff000-0xfecfffff irq 9 at device 6.0 on pci0
fxp0: Ethernet address 08:00:46:08:c6:f8
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xfcb0-0xfcbf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xfc60-0xfc7f irq 9 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
chip1: <Intel 82371AB Power management controller> port 0x2180-0x218f at device 7.3 on pci0
pci0: <NeoMagic MagicMedia 256AV SVGA controller> at 8.0 irq 9
chip2: <NeoMagic MagicMedia 256AX Audio controller> mem 0xfea00000-0xfeafffff,0xfe000000-0xfe3fffff irq 9 at device 8.1 on pci0
chip3: <Sony CXD1847A FireWire Host Controller> at device 9.0 on pci0
pcic-pci0: <Ricoh RL5C475 PCI-CardBus Bridge> at device 10.0 on pci0
pci0: <unknown card> (vendor=0x127a, dev=0x2005) at 11.0
fdc0: direction bit not set
fdc0: cmd 3 failed at out byte 1 of 3
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
pcic0: <Intel i82365> at port 0x3e0 iomem 0xd0000 irq 10 on isa0
pcic0: management irq 10
pccard0: <PC Card bus -- kludge version> on pcic0
ata1-slave: ata_command: timeout waiting for intr
ata1-slave: identify failed
ad0: 7815MB <TOSHIBA MK8113MAT> [16938/15/63] at ata0-master UDMA33
ad2: 3MB <MEMORYSTICK 4M 8K> [247/2/16] at ata1-master PIO1
Mounting root from ufs:/dev/ad0s1a

i marked both swap partitions as swap, wd0s1a as / (UFS Y), and wd0s2a
as /mnt (UFS N).  then filled in the 'development but no games' selection
and let it have at it.

jdp>  Were there any warning messages or unusual "are you SURE?" dialogs

no, i do not recall seeing any such dialogs.  i hit install then went
back to the code i was writing on my desktop.

i did not mention that i was able to reproduce this.  i dont know what
other info to add (i dont think i have any), but let me know if you have
questions and i could easily reproduce.
Comment 3 jkh freebsd_committer freebsd_triage 2000-12-04 21:50:30 UTC
State Changed
From-To: open->closed

I cannot reproduce this.  Every time I follow the steps listed, sysinstall 
correctly fscks rather than newfs the partitions.  It's not my intention 
to insult the submitter by suggesting that some sort of operator error must 
be the cause, but that's the only conclusion I can reach right now given 
that I cannot reproduce the failure mode.