Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 2014 13:30:38 GMT
From:      Bertram Scharpf <software@bertram-scharpf.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/189513: bsdlabel fails
Message-ID:  <201405091330.s49DUcUF028297@cgiserv.freebsd.org>
Resent-Message-ID: <201405091340.s49De0dR043042@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         189513
>Category:       bin
>Synopsis:       bsdlabel fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 09 13:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Bertram Scharpf
>Release:        10.0 stable
>Organization:
>Environment:
FreeBSD hostname 10.0-STABLE FreeBSD 10.0-STABLE #0 r265337: Mon May  5 00:55:49 CEST 2014     root@buildhost:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
On a ~5 year old netbook, "bsdlabel" writes this to dmesg:

ahcich0: Timeout on slot 0 port 0
ahcich0: is 00000000 cs 00000001 ss 00000001 rs 00000001 tfd 50 serr 00000000 cmd 0000e017
(ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 10 3f 00 00 40 00 00 00 00 00 00
(ada0:ahcich0:0:0:0): CAM status: Command timeout
(ada0:ahcich0:0:0:0): Retrying command
ahcich0: Timeout on slot 0 port 0
ahcich0: is 00000000 cs 00000001 ss 00000000 rs 00000001 tfd 50 serr 00000000 cmd 0000e017
(ada0:ahcich0:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 00
(ada0:ahcich0:0:0:0): CAM status: Command timeout
(ada0:ahcich0:0:0:0): Retrying command


After restarting the machine, the boot code will not be executed.

This is really annoying because when I used the old 8.4 everything was fine.

>How-To-Repeat:
This is what I did:

I built me a USB stick with 10.0 stable. Then I booted it
on my Acer Aspire one. There I wrote:

fdisk -BI ada0
boot0cfg -B ada0
bsdlabel -B -w ada0s1
# -> dmesg contains now the above error messages

newfs -U /dev/ada0s1a
mount /dev/ada0s1a /mnt/install

mount -t nfs server:/usr/src /usr/src
mount -t nfs server:/usr/obj /usr/obj
cd /usr/usrc
make DESTDIR=/mnt/install installkernel installworld
cp /root/etc.new/{fstab,rc.conf,resolve.conf} /mnt/install/etc
shutdown -r now

>Fix:
I downloaded an old 8.4 memstick image, booted from that and
executed the steps until "bsdlabel". Then I booted my own 10.0 stable
and did the rest there.



>Release-Note:
>Audit-Trail:
>Unformatted:



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