From owner-freebsd-questions Fri Sep 15 6:29:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from lcmail2.lc.ca.gov (lcmail2.lc.ca.gov [165.107.12.11]) by hub.freebsd.org (Postfix) with ESMTP id E544737B423 for ; Fri, 15 Sep 2000 06:29:40 -0700 (PDT) Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0G0X00501K4JZJ@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Fri, 15 Sep 2000 06:29:07 -0700 (PDT) Received: from ldcmsx01.lc.ca.gov ([165.107.11.191]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with ESMTP id <0G0X0025RK4I86@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.org; Fri, 15 Sep 2000 06:29:06 -0700 (PDT) Received: by ldcmsx01.lc.ca.gov with Internet Mail Service (5.5.2650.21) id ; Fri, 15 Sep 2000 06:29:38 -0700 Content-return: allowed Date: Fri, 15 Sep 2000 06:29:37 -0700 From: "Tomlinson, Drew" Subject: Part #1 - Newbie Help Determining Lost Root After Upgrade From 4. 0 to 4.1 To: "'FreeBSD Questions (E-mail)'" Message-id: <8C224DC088D8D111B67D0000F67AC17E029C4C4A@ldcmsx01.lc.ca.gov> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-type: MULTIPART/ALTERNATIVE; BOUNDARY="Boundary_(ID_j//Nx84VouMVJPmj72rgdA)" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --Boundary_(ID_j//Nx84VouMVJPmj72rgdA) Content-type: text/plain; charset="iso-8859-1" I've sent this message twice but never saw it post to the group. I haven't received any errors but shorter messages go through fine. Thus, I assume it's too long and have broken it into parts. I have attempted to upgrade from 4.0-S to 4.1-S using CVSup and compile instructions from the Handbook. I have to admit that I don't exactly understand what I'm doing at each step but I following the directions explicitly. In summary I: 1. Used CVSup to update my source. 2. Ran "make buildworld" (took about 36 hours on my 486DX4 120mhz -- Is this normal?) 3. Ran "make installworld" 4. Ran "make buildkernel" 5. Ran "make installkernel" 6. Ran "mergemaster" but took the "leave it alone" default on everything as I didn't understand what it was really doing. 7. Ran "sh MAKEDEV all" to update /dev. 8. Ran "make all install" to update /stand. 9. Rebooted. When I reboot, the system is unable to mount the root device. I am able to unload the new kernel, load the old one and boot without error. I'm sure I've done something wrong and would like to know what it is. I could take the easy way out and just install 4.1 from scratch but I wouldn't learn anything that way. Thank you in advance for your help. I really want to learn this operating system! Drew All (I hope) relevant output follows. My machine is a 486DX4 running at 120 mhz with 40 MB of RAM. It has a VESA local bus that hosts a multifunction I/O card (IDE, FD, parallel, 2 serial, game). I have 3 hard drives and 1 CDROM, two 850 MB hard (ad0 and ad1) on the primary and a 6 GB hard (master, ad2) and CDROM (slave) on the secondary. (Note: the drive config is the only one I could come up with where the BIOS recognized everything. - I don't get it either.) There are VGA, modem, and sound cards in the system but none are used. I use com port 1 for the console. The network card is a LinkSys 16 that is NE2000 compatible. Thus I attempted to edit my /usr/src/sys/i386/conf/KERNEL file appropriately. My file system under 4.0 kernel: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 49583 33388 12229 73% / /dev/ad0s1e 19815 5439 12791 30% /var /dev/ad2s1e 2032623 749321 1120693 40% /usr procfs 4 4 0 100% /proc Here is my bootup output: Booting [kernel]... 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.1-STABLE #0: Thu Sep 14 18:04:27 PDT 2000 tomlinson_dr@blacksheep.kitchentable.dynip.com:/usr/obj/usr/src/sys/BLACKSHE EP Timecounter "i8254" frequency 1193182 Hz CPU: AMD Enhanced Am486DX4 Write-Through (486-class CPU) Origin = "AuthenticAMD" Id = 0x484 Stepping = 4 Features=0x1 real memory = 50331648 (49152K bytes) config> di pcic0 No such device: pcic0 Invalid command or syntax. Type `?' for help. config> di sn0 config> di lnc0 config> di le0 config> di ie0 config> di fe0 config> di cs0 config> di bt0 No such device: bt0 Invalid command or syntax. Type `?' for help. config> di aic0 No such device: aic0 Invalid command or syntax. Type `?' for help. config> di aha0 No such device: aha0 Invalid command or syntax. Type `?' for help. config> di adv0 No such device: adv0 Invalid command or syntax. Type `?' for help. config> en ed0 config> po ed0 0x240 config> ir ed0 9 config> iom ed0 0xd8000 config> f ed0 0 config> q avail memory = 46243840 (45160K bytes) Preloaded elf kernel "kernel" at 0xc02d9000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc02d909c. md0: Malloc disk npx0: on motherboard npx0: INT 16 interface isa0: on motherboard isa0: too many dependant configs (8) fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 fd1: <1200-KB 5.25" drive> on fdc0 drive 1 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata1 at port 0x170-0x177,0x376 irq 15 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: on isa0 sc0: VGA <16 virtual consoles, flags=0x0> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A, console sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold lpt0: on ppbus0 lpt0: Interrupt-driven port plip0: on ppbus0 ppi0: on ppbus0 ed0 at port 0x240-0x25f iomem 0xd8000 irq 9 drq 0 on isa0 ed0: address 00:40:05:66:b2:55, type NE2000 (16 bit) unknown0: at port 0x3e8-0x3ef irq 5 on isa0 unknown1: at port 0x534-0x537,0-0x3,0x10-0x1f irq 11 drq 0,1 o n isa0 unknown2: at port 0x200-0x207 on isa0 unknown3: <4232> at port 0x8-0xf on isa0 unknown4: at port 0x330-0x331 irq 12 on isa0 unknown5: at port 0x4-0x7 on isa0 no devsw (majdev=0 bootdev=0xa0200000) Mounting root from ufs:/dev/ad0s1a no such device 'ad' setrootbyname failed ffs_mountroot: can't find rootvp Root mount failed: 6 Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0s1a ? List valid disk boot devices Abort manual input mountroot> ? panic: Root mount failed, startup aborted. /etc/make.conf # $FreeBSD: src/etc/defaults/make.conf,v 1.97 2000/03/05 10:53:24 kris Exp $ ... Everything is commented out except these two lines ... CFLAGS= -O -pipe NOPROFILE= true My CVSup file is as follows: # $FreeBSD: src/share/examples/cvsup/4.x-stable-supfile,v 1.1.4.1 2000/03/13 19: 26:08 dcs Exp $ # *default host=cvsup2.freebsd.org *default base=/usr *default prefix=/usr # The following line is for 4-stable. If you want 3.x-stable, change # "RELENG_4" to "RELENG_3". *default release=cvs tag=RELENG_4 *default delete use-rel-suffix # If your network link is a T1 or faster, comment out the following line. *default compress ## Main Source Tree. # # The easiest way to get the main source tree is to use the "src-all" # mega-collection. It includes all of the individual "src-*" collections, # except the export-restricted collections. src-all # These are the individual collections that make up "src-all". If you # use these, be sure to comment out "src-all" above. ... All commented out ... # The easiest way to get the ports tree is to use the "ports-all" # mega-collection. It includes all of the individual "ports-*" # collections, ports-all tag=. # These are the individual collections that make up "ports-all". If you # use these, be sure to comment out "ports-all" above. ... All commented out ... ## Export-restricted collections. # # Only people in the USA and Canada may fetch these collections. If # you are not in the USA or Canada, please use the collections in the # "secure-stable-supfile" instead. # # The easiest way to get the export-restricted code is to use the # "cvs-crypto" mega-collection. #cvs-crypto -- This is commented as I got errors when trying to fetch # # These are the individual collections that make up "cvs-crypto". If # you use these, be sure to comment out "cvs-crypto" above. -- I didn't get errors. src-crypto src-secure src-sys-crypto Continued in Part #2 ... --Boundary_(ID_j//Nx84VouMVJPmj72rgdA) Content-type: text/html; charset="iso-8859-1" Content-transfer-encoding: quoted-printable Part #1 - Newbie Help Determining Lost Root After Upgrade From = 4.0 to 4.1

I've sent this message twice but never saw it post to = the group.  I haven't received any errors but shorter messages go = through fine.  Thus, I assume it's too long and have broken it = into parts.

I have attempted to upgrade from 4.0-S to 4.1-S using = CVSup and compile instructions from the Handbook.  I have to admit = that I don't exactly understand what I'm doing at each step but I = following the directions explicitly. 

In summary I:
1. Used CVSup to update my source.

2. Ran "make buildworld" (took about 36 = hours on my 486DX4 120mhz -- Is this normal?)

3. Ran "make installworld"

4. Ran "make buildkernel"

5. Ran "make installkernel"

6. Ran "mergemaster" but took the = "leave it alone" default on everything as I didn't understand = what it was really doing.

7. Ran "sh MAKEDEV all" to update = /dev.

8. Ran "make all install" to update = /stand.

9. Rebooted.

When I reboot, the system is unable to mount the root = device.  I am able to unload the new kernel, load the old one and = boot without error.  I'm sure I've done something wrong and would = like to know what it is.  I could take the easy way out and just = install 4.1 from scratch but I wouldn't learn anything that way.  =

Thank you in advance for your help.  I really = want to learn this operating system!

Drew

All (I hope) relevant output follows.

My machine is a 486DX4 running at 120 mhz with 40 MB = of RAM.  It has a VESA local bus that hosts a multifunction I/O = card (IDE, FD, parallel, 2 serial, game).  I have 3 hard drives = and 1 CDROM, two 850 MB hard (ad0 and ad1) on the primary and a 6 GB = hard (master, ad2) and CDROM (slave) on the secondary.  (Note: the = drive config is the only one I could come up with where the BIOS = recognized everything. - I don't get it either.)  There are VGA, = modem, and sound cards in the system but none are used.  I use com = port 1 for the console.  The network card is a LinkSys 16 that is = NE2000 compatible.  Thus I attempted to edit my = /usr/src/sys/i386/conf/KERNEL file appropriately.

My file system under 4.0 kernel:
Filesystem  1K-blocks     = Used    Avail Capacity  Mounted on
/dev/ad0s1a     = 49583    33388    12229    = 73%    /
/dev/ad0s1e     = 19815     5439    = 12791    30%    /var
/dev/ad2s1e   2032623   = 749321  1120693    40%    = /usr
procfs         &nb= sp;    4        = 4        0   100% &nbs= p;  /proc

Here is my bootup output:
Booting [kernel]...
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.1-STABLE #0: Thu Sep 14 18:04:27 PDT = 2000
    = tomlinson_dr@blacksheep.kitchentable.dynip.com:/usr/obj/usr/src/sys/BLAC= KSHE
EP
Timecounter "i8254"  frequency = 1193182 Hz
CPU: AMD Enhanced Am486DX4 Write-Through (486-class = CPU)
  Origin =3D "AuthenticAMD"  Id = =3D 0x484  Stepping =3D 4
  Features=3D0x1<FPU>
real memory  =3D 50331648 (49152K bytes)
config> di pcic0
No such device: pcic0
Invalid command or syntax.  Type `?' for = help.
config> di sn0
config> di lnc0
config> di le0
config> di ie0
config> di fe0
config> di cs0
config> di bt0
No such device: bt0
Invalid command or syntax.  Type `?' for = help.
config> di aic0
No such device: aic0
Invalid command or syntax.  Type `?' for = help.
config> di aha0
No such device: aha0
Invalid command or syntax.  Type `?' for = help.
config> di adv0
No such device: adv0
Invalid command or syntax.  Type `?' for = help.
config> en ed0
config> po ed0 0x240
config> ir ed0 9
config> iom ed0 0xd8000
config> f ed0 0
config> q
avail memory =3D 46243840 (45160K bytes)
Preloaded elf kernel "kernel" at = 0xc02d9000.
Preloaded userconfig_script = "/boot/kernel.conf" at 0xc02d909c.
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
isa0: <ISA bus> on motherboard
isa0: too many dependant configs (8)
fdc0: <NEC 765 or clone> at port = 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fd0: <1440-KB 3.5" drive> on fdc0 drive = 0
fd1: <1200-KB 5.25" drive> on fdc0 drive = 1
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
atkbdc0: <Keyboard controller (i8042)> at port = 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df = iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, = flags=3D0x0>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on = isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq = 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in = COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
plip0: <PLIP network interface> on = ppbus0
ppi0: <Parallel I/O> on ppbus0
ed0 at port 0x240-0x25f iomem 0xd8000 irq 9 drq 0 on = isa0
ed0: address 00:40:05:66:b2:55, type NE2000 (16 = bit)
unknown0: <SupraExpress 56i Voice> at port = 0x3e8-0x3ef irq 5 on isa0
unknown1: <WSS/OPL3/SB Pro> at port = 0x534-0x537,0-0x3,0x10-0x1f irq 11 drq 0,1 o
n isa0
unknown2: <GAME PORT> at port 0x200-0x207 on = isa0
unknown3: <4232> at port 0x8-0xf on = isa0
unknown4: <MPU-401> at port 0x330-0x331 irq 12 = on isa0
unknown5: <CD-ROM> at port 0x4-0x7 on = isa0
no devsw (majdev=3D0 bootdev=3D0xa0200000)
Mounting root from ufs:/dev/ad0s1a
no such device 'ad'
setrootbyname failed
ffs_mountroot: can't find rootvp
Root mount failed: 6

Manual root filesystem specification:
  <fstype>:<device>  Mount = <device> using filesystem <fstype>
          &nb= sp;            = eg. ufs:/dev/da0s1a
  = ?            = ;      List valid disk boot devices
  <empty = line>       Abort manual input

mountroot> ?
panic: Root mount failed, startup aborted.

/etc/make.conf
# $FreeBSD: src/etc/defaults/make.conf,v 1.97 = 2000/03/05 10:53:24 kris Exp $
... Everything is commented out except these two = lines ...
CFLAGS=3D -O -pipe
NOPROFILE=3D      = true

My CVSup file is as follows:

# $FreeBSD: = src/share/examples/cvsup/4.x-stable-supfile,v 1.1.4.1 2000/03/13 = 19:
26:08 dcs Exp $
#
*default host=3Dcvsup2.freebsd.org
*default base=3D/usr
*default prefix=3D/usr
# The following line is for 4-stable.  If you = want 3.x-stable, change
# "RELENG_4" to = "RELENG_3".
*default release=3Dcvs tag=3DRELENG_4
*default delete use-rel-suffix

# If your network link is a T1 or faster, comment out = the following line.
*default compress

## Main Source Tree.
#
# The easiest way to get the main source tree is to = use the "src-all"
# mega-collection.  It includes all of the = individual "src-*" collections,
# except the export-restricted collections.
src-all

# These are the individual collections that make up = "src-all".  If you
# use these, be sure to comment out = "src-all" above.
... All commented out ...

# The easiest way to get the ports tree is to use the = "ports-all"
# mega-collection.  It includes all of the = individual "ports-*"
# collections,
ports-all tag=3D.

# These are the individual collections that make up = "ports-all".  If you
# use these, be sure to comment out = "ports-all" above.
... All commented out ...

## Export-restricted collections.
#
# Only people in the USA and Canada may fetch these = collections.  If
# you are not in the USA or Canada, please use the = collections in the
# "secure-stable-supfile" instead.
#
# The easiest way to get the export-restricted code = is to use the
# "cvs-crypto" mega-collection.
#cvs-crypto -- This is commented as I got errors = when trying to fetch
#
# These are the individual collections that make up = "cvs-crypto".  If
# you use these, be sure to comment out = "cvs-crypto" above. -- I didn't get errors.
src-crypto
src-secure
src-sys-crypto

Continued in Part #2 ...

--Boundary_(ID_j//Nx84VouMVJPmj72rgdA)-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message