From ijliao@Terry.Dorm10.NCTU.edu.tw Sat May  1 21:12:36 1999
Return-Path: <ijliao@Terry.Dorm10.NCTU.edu.tw>
Received: from Terry.Dorm10.NCTU.edu.tw (Terry.Dorm10.NCTU.edu.tw [140.113.122.99])
	by hub.freebsd.org (Postfix) with ESMTP id CEC7314C8B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  1 May 1999 21:12:35 -0700 (PDT)
	(envelope-from ijliao@Terry.Dorm10.NCTU.edu.tw)
Received: (from ijliao@localhost)
	by Terry.Dorm10.NCTU.edu.tw (8.9.3/8.9.3) id MAA03388;
	Sun, 2 May 1999 12:12:34 +0800 (CST)
	(envelope-from ijliao)
Message-Id: <199905020412.MAA03388@Terry.Dorm10.NCTU.edu.tw>
Date: Sun, 2 May 1999 12:12:34 +0800 (CST)
From: Ying-Chieh Liao <ijliao@Terry.Dorm10.NCTU.edu.tw>
Reply-To: ijliao@Terry.Dorm10.NCTU.edu.tw
To: FreeBSD-gnats-submit@freebsd.org
Subject: can't boot from wd0s2a
X-Send-Pr-Version: 3.2

>Number:         11434
>Category:       kern
>Synopsis:       can't boot from wd0s2a
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May  1 21:20:01 PDT 1999
>Closed-Date:    Tue Jun 13 14:40:09 PDT 2000
>Last-Modified:  Tue Jun 13 14:42:12 PDT 2000
>Originator:     Ying-Chieh Liao
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
NCTU CSIE
>Environment:

FreeBSD Terry.Dorm10.NCTU.edu.tw 4.0-CURRENT FreeBSD 4.0-CURRENT #16: Sun Mar 21
 12:54:31 CST 1999     root@Terry.Dorm10.NCTU.edu.tw:/usr/src/sys/compile/TERRY
 i386

>Description:

I have 2 IDE hds, wd0 and wd1, and I don't have any SCSI devices
Primary Master : wd0s1e, wd0s2a, wd0s2e, wd0s2f, wd0s2g -> FreeBSD partition
                 wd0s2b -> FreeBSD Swap
Primary Slave : wd1s1e -> FreeBSD partition

My boot device is wd0s2a, and I've written

config          kernel  root on wd0s2a

in my kernel config file
But I still can't boot from wd0s2a :<

When I boot up, after devices probed, it said that it can't mount root on wd0a
It's strange, because I've written this in /boot/loader.conf.local
rootdev="disk1s2a"

How can I solve this problem ?

ps. Now I can boot from 3/31 kernel

-r-xr-xr-x   1 root  wheel  -    1231985 @3/31 16:32 kernel.bak*

but I can't boot from 5/1 kernel

-r-xr-xr-x   1 root  wheel  schg 1222714   5/ 2 00:23 kernel*

Their kernel config file is the same !!

My /boot/loader.conf.local :

userconfig_script_load="YES"
userconfig_script_type="userconfig_script"
autoboot_delay="0"
root_disk_unit="0"
rootdev="disk1s2a"
coda_load="YES"
mfs_load="YES"
nfs_load="YES"
procfs_load="YES"

My kernel config :

machine		"i386"
cpu		"I686_CPU"
ident		GENERIC
maxusers	64	

options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		FFS_ROOT		#FFS usable as root device [keep this!]
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options		UCONSOLE		#Allow users to grab the console
options		MAXMEM="(128*1024)"

options		SOFTUPDATES

options		MSGBUF_SIZE=40960

options		CODA			#CODA filesystem.
pseudo-device	vcoda	4		#coda minicache <-> venus comm.

config		kernel	root on wd0s2a

controller	isa0
controller	pnp0			# PnP support for ISA
controller	pci0

controller	fdc0	at isa? port "IO_FD1" irq 6 drq 2
disk		fd0	at fdc0 drive 0

controller      ata0
device          atadisk0        # ATA disk drives
device          atapicd0        # ATAPI CDROM drives

controller	atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1

device		vga0	at isa? port ? conflicts

pseudo-device	splash

device		sc0	at isa?

options		SC_HISTORY_SIZE=200	# number of history buffer lines

device		npx0	at nexus? port IO_NPX irq 13

device		sio0	at isa? port "IO_COM1" flags 0x10 irq 4

device de0		# DEC/Intel DC21x4x (``Tulip'')

pseudo-device	loop
pseudo-device	ether
pseudo-device	pty	256

options         SYSVSHM
options         SYSVMSG
options         SYSVSEM

pseudo-device	bpfilter 4	#Berkeley packet filter

>How-To-Repeat:

>Fix:



>Release-Note:
>Audit-Trail:

From: "Daniel C. Sobral" <dcs@newsguy.com>
To: ijliao@Terry.Dorm10.NCTU.edu.tw
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/11434: can't boot from wd0s2a
Date: Sun, 02 May 1999 13:30:40 +0900

 > ps. Now I can boot from 3/31 kernel
 > =
 
 > -r-xr-xr-x   1 root  wheel  -    1231985 =A1@3/31 16:32 kernel.bak*
 > =
 
 > but I can't boot from 5/1 kernel
 > =
 
 > -r-xr-xr-x   1 root  wheel  schg 1222714   5/ 2 00:23 kernel*
 > =
 
 > Their kernel config file is the same !!
 
 What are the dates of the *source* code? And, very important, do you
 have world synchronized with kernel? In this particular case, newer
 kernels *cannot* be booted by older loader. So, if you compiled just
 the kernel, I suggest making world and trying again.
 
 --
 Daniel C. Sobral			(8-DCS)
 dcs@newsguy.com
 dcs@freebsd.org
 
 	"Proof of Trotsky's farsightedness if that _none_ of his
 predictions have come true yet."
 
 
 

From: Ying-Chieh Liao <ijliao@dragon2.net>
To: "Daniel C. Sobral" <dcs@newsguy.com>
Cc: ijliao@Terry.Dorm10.NCTU.edu.tw, FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/11434: can't boot from wd0s2a
Date: Sun, 2 May 1999 12:46:20 +0800

 On  ,   5 02, 1999 at 13:30:40 +0900, Daniel C. Sobral wrote:
 > What are the dates of the *source* code? And, very important, do you
 > have world synchronized with kernel? In this particular case, newer
 > kernels *cannot* be booted by older loader. So, if you compiled just
 > the kernel, I suggest making world and trying again.
 
 Of course, I make world first, and then make kernel
 

From: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
To: FreeBSD-gnats-submit@FreeBSD.ORG
Cc: Ying-Chieh Liao <ijliao@dragon2.net>
Subject: Re: kern/11434: can't boot from wd0s2a
Date: Sat, 8 May 1999 11:39:13 +0800

 On  ,   5 02, 1999 at 13:30:40 +0900, Daniel C. Sobral wrote:
 > What are the dates of the *source* code? And, very important, do you
 > have world synchronized with kernel? In this particular case, newer
 > kernels *cannot* be booted by older loader. So, if you compiled just
 > the kernel, I suggest making world and trying again.
 
 Now I think I know what's wrong...
 
 I can boot from wd0s2a using *OLD* wdc0 code, but can't boot using ATA code
 Maybe there's something wrong with new ATA code ?
 

From: Wilko Bulte <wkb@chello.nl>
To: freebsd-gnats-submit@FreeBSD.org, ijliao@Terry.Dorm10.NCTU.edu.tw
Cc:  
Subject: Re: kern/11434: can't boot from wd0s2a
Date: Tue, 13 Jun 2000 23:17:48 +0200

 As there have been substantial changes to the ata code, can you please
 verify if FreeBSD 4.0-release (or -stable) still has the problem you 
 describe? 
 
 If it does not we can close this PR.
 
 regards,
 
 -- 
 Wilko Bulte  	 	http://www.freebsd.org  "Do, or do not. There is no try"
 wilko@freebsd.org	http://www.nlfug.nl	- Yoda - The Empire Strikes Back
 
State-Changed-From-To: open->closed 
State-Changed-By: wilko 
State-Changed-When: Tue Jun 13 14:40:09 PDT 2000 
State-Changed-Why:  
Email address of originator bounces. Going nowhere without 
communication.. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=11434 
>Unformatted:
