Subject: Pbs with SCSI drives
To: None <port-mac68k@netbsd.org>
From: Pascal Cabaud <Pascal.Cabaud@wanadoo.fr>
List: port-mac68k
Date: 12/06/2000 12:17:39
Hello everybody !

Well, I'm new on this list and you will fast see that I'm french so my 
english is not so good ;-)

Hmm, I've a big problem with my SCSI disks on Quadra 650 and Quadra 700. 
See yourself thoses sessions and note the sizes in KB.

Hint : there is almost nothing on 'zeus', only base packages : base.tgz, 
comp.tgz, etc.tgz, kern.tgz, man.tgz, misc.tgz, text.tgz et secr.tgz. 
Other stuff makes 10 MB on
/usr/local/home (about 150 MB...).

On 'diablotin', it works fine (listed here).
Internal disk refuses to work. Idem with OpenBSD (it would be too long).

Obviously, I tried the 2 kernels. Same results.

At this time it's "working" but I can't install perl for example (No 
space on device...)

Quadra 650 - internal disk
Partition scheme : 
/                ~  70 MB
/usr             ~ 150 MB
/usr/local/home  ~ 161 MB
/var             ~  50 MB
boot-macos (HFS) ~  10 MB
swap             ~  60 MB
-------------------------------------------------------------------
<pc @ zeus 9:54:52 /usr/local/home/pc/tmp> cd /
<pc @ zeus 9:56:14 /> df -k
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/sd0a      128374    71323    44213    61%    /
/dev/sd0g      148263    75501    57935    56%    /usr
/dev/sd0h      484646   436363     -182   100%    /var
/dev/sd0f      435708   344074    48063    87%    /usr/local/home
kernfs              1        1        0   100%    /kern
procfs              4        4        0   100%    /proc
<pc @ zeus 9:56:14 ~> df -ik
Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused 
Mounted on
/dev/sd0a      128374    71325    44211    61%     520   17974     2%   /
/dev/sd0g      148263    75501    57935    56%    5898   32180    15%   
/usr
/dev/sd0h      484646   436379     -198   100%      96   12958     0%   
/var
/dev/sd0f      435708   378245    13892    96%    5234   36108    12%   
/usr/local/home
kernfs              1        1        0   100%       0       0   100%   
/kern
procfs              4        4        0   100%      13     263     4%   
/proc
<pc @ zeus 9:56:17 /> cd usr/ ; du -sk .
142937  .
<pc @ zeus 9:57:19 /usr> cd /var ; du -sk .
655     .
<pc @ zeus 9:57:33 /var> cd /usr/local/home/ ; du -sk .
67437   .
<pc @ zeus 9:57:52 /usr/local/home> dmesg | more

[...snip...]

NetBSD 1.4.2 (GENERIC) #4: Sat Mar 18 01:16:20 CST 2000
    fredb@corwin.home:/s/src/sys/arch/mac68k/compile/GENERIC
Apple Macintosh Quadra 650  (68040)

[...snip...]

scsibus0 at esp0: 8 targets, 8 luns per target
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST3600N, 9422> SCSI2 0/direct 
fixed
sd0: 500MB, 1872 cyl, 7 head, 78 sec, 512 bytes/sect x 1025920 sectors

[...snip...]

boot device: sd0
root on sd0a dumps on sd0b
PRAM: 0x3a2ca476, macos_boottime: 0x3a2ca45c.
root file system type: ffs
uid 1000 on /var: file system full
uid 1000 on /var: file system full
uid 1000 on /var: file system full
uid 1000 on /var: file system full
uid 1000 on /var: file system full
uid 1000 on /var: file system full
uid 1000 on /var: file system full
uid 1000 on /var: file system full
uid 1000 on /var: file system full
uid 1000 on /var: file system full
<pc @ zeus 10:06:01 ~> 
-------------------------------------------------------------------

Quadra 700 - external disk
Partition scheme : 
/                ~  70 MB
/usr             ~ 150 MB
/home            ~ 210 MB
/var             ~  50 MB
boot-macos (HFS) ~  10 MB
swap             ~  35 MB
-------------------------------------------------------------------

<pc @ diablotin 23:54:51 /home/pc> cd /
<pc @ diablotin 23:54:53 /> df -k
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/sd1a      108446    53115    44486    54%    /
/dev/sd1g      305659   240284    34809    87%    /usr
/dev/sd1e      157741   109547    32419    77%    /var
/dev/sd1f      512701   360807   100623    78%    /home
kernfs              1        1        0   100%    /kern
procfs              4        4        0   100%    /proc
<pc @ diablotin 23:54:53 /> df -ik
Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused 
Mounted on
/dev/sd1a      108446    53115    44486    54%     550   16344     3%   /
/dev/sd1g      305659   240284    34809    87%    6835   28491    19%   
/usr
/dev/sd1e      157741   109547    32419    77%     253   11521     2%   
/var
/dev/sd1f      512701   360872   100558    78%    3924   45738     7%   
/home
kernfs              1        1        0   100%       0       0   100%   
/kern
procfs              4        4        0   100%      18     258     6%   
/proc
<pc @ diablotin 23:55:02 /###  cd usr/ ; du -sk .
82543   .
<pc @ diablotin 23:56:23 /usr> cd /var ; du -sk .
1101    .
<pc @ diablotin 23:58:43 /var> cd /home/ ; du -sk .
55195   .
<pc @ diablotin 23:59:56 /home> dmesg

[...snip...]

NetBSD 1.4.1 (GENERIC) #0: Wed Aug 11 04:56:57 CDT 1999
    fredb@corwin.home:/usr/src/sys/arch/mac68k/compile/GENERIC
Apple Macintosh Quadra 700  (68040)

[...snip...]

scsibus0 at esp0: 8 targets, 8 luns per target
probe(esp0:0:0): async mode

[...snip...]

sd1 at scsibus0 targ 1 lun 0: <QUANTUM, FIREBALL540S, 1Q08> SCSI2
0/direct fixed
sd1: 520MB, 3835 cyl, 2 head, 138 sec, 512 bytes/sect x 1065235 sectors

[...snip...]
<pc @ diablotin DING! /home> 
-------------------------------------------------------------------

On the Quadra 700, working on internal disk is always synonym to crash...

Hint : when I mount internal disk (Q700) on the external, there is no 
problem (apperently...).

Is there someone to help me ?

Many thanks to read me as far as this.

pc :'(

PS : In crash case, the kernel function which works bad is dmaintr(). I 
can post results here if you need/want...