Subject: Re: cron task hangs RaQ1 - NetBSD 1.6.1
To: None <port-cobalt@netbsd.org>
From: cape canaveral <somniosus@gmail.com>
List: port-cobalt
Date: 06/29/2004 07:14:16
On Tue, 29 Jun 2004 01:56:59 -0700, cape canaveral <somniosus@gmail.com> wrote:
> 
> 
> 
> I've tracked down the cause; it's something in /etc/security which is
> called from /etc/daily
> 
> When run by itself, it gives the following output, then the machine
> simply appears to hang:
> 
> bash-2.05b# /bin/sh /etc/security
> ci: /var/backups/work/device.current,v:991: unexpected end of file
> ci aborted
> co: /var/backups/work/device.current,v:991: unexpected end of file
> co aborted
> ci: /var/backups/work/device.current,v:991: unexpected end of file
> ci aborted
> co: /var/backups/work/device.current,v:991: unexpected end of file
> co aborted
> 
> I'm still stumped, but at least I have some clues now... =]
> 

Actually, those errors weren't related to the problem at all.  It's
due to fdisk being run in this block of code in /etc/security:

# if fdisk is available, generate fdisks for:	ed ld sd wd"
	if [ -x /sbin/fdisk ]; then
		disks=`iostat -x| awk 'NR > 1 && $1 ~ /^[elsw]d/ { print $1; }'`
		for i in $disks; do
			/sbin/fdisk $i > "$work_dir/fdisk.$i" 2>/dev/null
		done
	fi

If I try to run fdisk, it crashes the system.  Apparently this is a
known/documented issue due to dma being disabled in the raq1 netbsd
kernel.

-Aaron