Date: Thu, 26 Feb 1998 00:45:18 +1030 From: Matthew Thyer <thyerm@camtech.net.au> To: Mike Smith <mike@smith.net.au> Cc: "Jordan K. Hubbard" <jkh@time.cdrom.com>, Ollivier Robert <roberto@keltia.freenix.fr>, current@FreeBSD.ORG Subject: Re: VFAT/FAT32 Message-ID: <34F42776.71159A15@camtech.net.au> References: <199802242325.PAA17023@dingo.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This crash happens every time I try to read /dos (my FAT16 mount
point). Note that I usually have /dos umounted due to:
matte: {34} grep dos /etc/fstab
/dev/wd0s1 /dos msdos rw,noauto 0 0
matte: {35}
So I am manually typing "mount /dos" as root before I run swriter3
to try and access the filesystem.
Also note that it doesn't matter if its mounted "ro" or "rw".
The system freezes solid every time.
It is a total lock up requiring the reset button.
I do have a dumb terminal and serial cable but have never tried
remote dubugging as I am an X user with a modem and only two
serial ports and a life! (read: Wife, kids, pet and hence not
much time to look into these things).
I suppose I could detach the modem and try this. A quick run
down on what to do and what to look for would be good. (I have
not used debuggers much....)
Anyway, gobs of information follows: (dmesg output, kernel conf
file and rc.conf)
A few things to note:
- I have most stuff statically compiled but do load linux LKM on
startup.
- My sound card is plug and pray (but properly configured I think...
boot -c then "pnp 1 0 os enable irq0 5 drq0 1 drq1 5 port0 0x220
port1 0x330" followed by "quit")
- Dont worry about the "Invalid field in CDB" on the old clunker
IBM 305MB SCSI disks 'borrowed' from a RS6000 as I dont ever
try/need to boot from them.
- I do worry about "options CPU_DISABLE_5X86_LSSER". Should I ?
- Dont worry about ccd0-3 (which aren't used) as I dont run softupdates
- Dont laugh at my 50MB QUANTUM LP52S. Its from my Amiga 500!!
- I do tend to have as many optimisations on as possible such as
flags 0xa0ffa0ff on my IDE controllers so look at my kernel
conf file carefully!
=====================================================================
dmesg output
=====================================================================
Copyright (c) 1992-1998 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
FreeBSD 3.0-CURRENT #0: Tue Feb 24 22:38:33 CST 1998
matt@matte:/usr/src/sys/compile/MATTE
Timecounter "i8254" frequency 1193182 Hz cost 2520 ns
Timecounter "TSC" frequency 167046081 Hz cost 212 ns
CPU: Pentium (167.05-MHz 586-class CPU)
Origin = "GenuineIntel" Id = 0x52c Stepping=12
Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory = 50331648 (49152K bytes)
avail memory = 46538752 (45448K bytes)
Probing for devices on PCI bus 0:
chip0: <Intel 82437FX PCI cache memory controller> rev 0x02 on pci0.0.0
chip1: <Intel 82371FB PCI to ISA bridge> rev 0x02 on pci0.7.0
ide_pci0: <Intel PIIX Bus-master IDE controller> rev 0x02 on pci0.7.1
ncr0: <ncr 53c810 fast10 scsi> rev 0x02 int a irq 10 on pci0.8.0
scbus0 at ncr0 bus 0
sd0 at scbus0 target 0 lun 0
sd0: <IMPRIMIS 94241-7 0832> type 0 fixed SCSI 1
sd0: Direct-Access 415MB (850451 512 byte sectors)
scbus0 target 1 lun 0: 5.0 MB/s (200 ns, offset 8)
sd1 at scbus0 target 1 lun 0
sd1: <IBM 0661371 B L> type 0 fixed SCSI 2
sd1: Direct-Access
sd1: ILLEGAL REQUEST asc:24,0 Invalid field in CDB
sd1 could not mode sense (4). Using ficticious geometry
305MB (625356 512 byte sectors)
scbus0 target 2 lun 0: 5.0 MB/s (200 ns, offset 8)
sd2 at scbus0 target 2 lun 0
sd2: <IBM 0661371 B O> type 0 fixed SCSI 2
sd2: Direct-Access
sd2: ILLEGAL REQUEST asc:24,0 Invalid field in CDB
sd2 could not mode sense (4). Using ficticious geometry
305MB (625356 512 byte sectors)
sd4 at scbus0 target 4 lun 0
sd4: <QUANTUM LP52S 950509405 2.8> type 0 fixed SCSI 2
sd4: Direct-Access
sd4: 4.0 MB/s (250 ns, offset 8)
49MB (102171 512 byte sectors)
vga0: <Tseng Labs ET6000 graphics accelerator> rev 0x30 int a irq 12 on pci0.9.0
Probing for PnP devices:
CSN 1 Vendor ID: CTL0024 [0x24008c0e] Serial 0x100a1ec0
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <12 virtual consoles, flags=0x0>
ed0 at 0x300-0x31f irq 9 on isa
ed0: address 00:00:e8:20:33:e8, type NE2000 (16 bit)
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
wdc0: unit 0 (wd0): <Maxtor 71260 AT>, 32-bit, multi-block-16
wd0: 1204MB (2467584 sectors), 2448 cyls, 16 heads, 63 S/T, 512 B/S
wdc1 at 0x170-0x177 irq 15 flags 0xa0ffa0ff on isa
wdc1: unit 0 (atapi): <TOSHIBA CD-ROM XM-5302TA/0305>, removable, intr, iordy
wcd0: 689Kb/sec, 128Kb cache, audio play, 255 volume levels, ejectable tray
wcd0: no disc inside, unlocked
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fd0: 1.44MB 3.5in
npx0 on motherboard
npx0: INT 16 interface
sb0 at 0x220 irq 5 drq 1 on isa
snd0: <SoundBlaster 16 4.13>
sbxvi0 at ? drq 5 on isa
snd0: <SoundBlaster 16 4.13>
sbmidi0 at 0x330 on isa
snd0: <SoundBlaster MPU-401>
joy0 at 0x201 on isa
joy0: joystick
Intel Pentium F00F detected, installing workaround
ccd0-3: Concatenated disk drivers
WARNING: / was not properly dismounted.
=====================================================================
kernel config file
=====================================================================
# Machine with 32 Bit WD disks, ATAPI CD-ROM, SB16, NE2000 NIC
# and ncr PCI SCSI.
# NOTE: kernel at CTM 2722 is the last kernel before the Lite 2 merge!
# $Id: MATTE,v 5.6 1998/02/24 00:46:00 CDT matt Exp $
# based on $Id: LINT,v 1.411 1998/02/21 10:11:41 eivind Exp $
#
machine "i386"
ident "MATTE.3261"
maxusers 20
options INCLUDE_CONFIG_FILE # Include this file in kernel
config kernel root on wd0
cpu "I586_CPU"
options "CPU_DISABLE_5X86_LSSER" # should not be used if you use memory mapped I/O device(s).
options "CPU_FASTER_5X86_FPU"
#options "NO_F00F_HACK"
# COMPATIBILITY OPTIONS
options "COMPAT_43" # Compatible with BSD 4.3 [KEEP THIS!]
options USER_LDT # Let processes manipulate their local descriptor table (needed for WINE)
options SYSVSHM # Enable SYSV style shared memory
options SYSVSEM # Enable SYSV style semaphores
options SYSVMSG # Enable SYSV style message queues
options "MD5" # Include a MD5 routine in the kernel
options "VM86" # Allow processes to switch to vm86 mode (needed for doscmd)
# DEBUGGING OPTIONS
options DDB # Enable the kernel debugger
options UCONSOLE # Allow users to grab the console
options USERCONFIG # boot -c editor
options VISUAL_USERCONFIG # visual boot -c editor
# NETWORKING OPTIONS
options INET # Internet communications protocols
# Network interfaces:
pseudo-device ether # Generic Ethernet
pseudo-device loop # Network loopback device
pseudo-device tun 1 # Tunnel driver(user process ppp)
# FILESYSTEM OPTIONS # The ones I have commented out will autoload when required
options FFS # Berkeley Fast Filesystem
options NFS # Network Filesystem
options "CD9660" # ISO 9660 Filesystem
options MFS # Memory Filesystem
options MSDOSFS # MSDOS Filesystem
options PROCFS # Process Filesystem
options NSWAPDEV=4 # Allow this many swap-devices
controller pci0
controller ncr0 # My card set for termination and using IRQ 11
# SCSI DEVICE CONFIGURATION
controller scbus0 at ncr0 # Base SCSI code
disk sd0 at scbus0 target 0
disk sd1 at scbus0 target 1
disk sd2 at scbus0 target 2
disk sd3 at scbus0 target 3
disk sd4 at scbus0 target 4
disk sd5 at scbus0 target 5
disk sd6 at scbus0 target 6
# MISCELLANEOUS DEVICES AND OPTIONS
pseudo-device pty 32 # Pseudo ttys - can go as high as 256
pseudo-device gzip # Exec gzipped a.out's
pseudo-device vn # Vnode driver (turns a file into a device)
pseudo-device ccd 4 # Concatenated disk driver
# HARDWARE DEVICE CONFIGURATION
controller isa0
# Options for `isa':
options "AUTO_EOI_1" # Save 0.7-1.25 usec for each interrupt
#options "AUTO_EOI_2" # ditto for slave 8259A
controller pnp0 # Enable PnP support in the kernel
options XSERVER # Include code for XFree86
device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr
options MAXCONS=12 # number of virtual consoles
options SC_HISTORY_SIZE=200 # number of history buffer lines
device npx0 at isa? port "IO_NPX" iosiz 0x0 flags 0x0 irq 13 vector npxintr
options "CMD640" # Enable work around for CMD640 h/w bug
controller wdc0 at isa? port "IO_WD1" bio irq 14 flags 0xa0ffa0ff vector wdintr
disk wd0 at wdc0 drive 0
disk wd1 at wdc0 drive 1
controller wdc1 at isa? port "IO_WD2" bio irq 15 flags 0xa0ffa0ff vector wdintr
disk wd2 at wdc1 drive 0
disk wd3 at wdc1 drive 1
options ATAPI # Enable ATAPI support for IDE bus
options ATAPI_STATIC # Don't do it as an LKM
device wcd0 # IDE CD-ROM driver
controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk fd0 at fdc0 drive 0
disk fd1 at fdc0 drive 1
tape ft0 at fdc0 drive 2
device lpt0 at isa? port? tty irq 7 vector lptintr
#device lpt0 at isa? port? tty # polled mode BUT errors: /kernel: stray irq 7 ?, and is it TCP/IP capable in polled ?
device sio0 at isa? port "IO_COM1" tty flags 0x10 irq 4 vector siointr
device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr
device ed0 at isa? port 0x300 net irq 9 iomem 0xd8000 vector edintr
controller snd0
device sb0 at isa? port 0x220 irq 5 drq 1 vector sbintr
device sbxvi0 at isa? drq 5
device sbmidi0 at isa? port 0x330
device joy0 at isa? port "IO_GAME"
=====================================================================
/etc/rc.conf
=====================================================================
#!/bin/sh
#
# This is rc.conf - a file full of useful variables that you can set
# to change the default startup behavior of your system.
#
# All arguments must be in double or single quotes.
#
# $Id: rc.conf,v 1.39 1998/02/17 03:05:32 jseger Exp $
##############################################################
### Important initial Boot-time options #####################
##############################################################
swapfile="NO" # Set to name of swapfile if aux swapfile desired.
apm_enable="NO" # Set to YES if you want APM enabled.
pccard_enable="NO" # Set to YES if you want to configure PCCARD devices.
pccard_mem="DEFAULT" # If pccard_enable=YES, this is card memory address.
pccard_ifconfig="NO" # Specialized pccard ethernet configuration (or NO).
local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs.
local_periodic="/usr/local/etc/periodic /usr/X11R6/etc/periodic" # periodic script dirs
##############################################################
### Network configuration sub-section ######################
##############################################################
### Basic network options: ###
hostname="matte" # Set this!
nisdomainname="NO" # Set to NIS domain if using NIS (or NO).
firewall_enable="NO" # Set to YES to enable firewall functionality
firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall)
firewall_quiet="NO" # Set to YES to suppress rule display
tcp_extensions="YES" # Allow RFC1323 & RFC1644 extensions (or NO).
network_interfaces="lo0" # List of network interfaces (lo0 is loopback).
ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
### Network daemon (miscellaneous) & NFS options: ###
syslogd_enable="YES" # Run syslog daemon (or NO).
syslogd_flags="" # Flags to syslogd (if enabled).
inetd_enable="YES" # Run the network daemon dispatcher (or NO).
inetd_flags="" # Optional flags to inetd.
named_enable="NO" # Run named, the DNS server (or NO).
named_program="/usr/sbin/named" # named program, in case we want bind8 instead.
named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled).
kerberos_server_enable="NO" # Run a kerberos master server (or NO).
kadmind_server_enable="NO" # Run kadmind (or NO) -- do not run on
# a slave kerberos server
kerberos_stash="" # Is the kerberos master key stashed?
rwhod_enable="NO" # Run the rwho daemon (or NO).
amd_enable="NO" # Run amd service with $amd_flags (or NO).
amd_flags="-a /net -c 1800 -k i386 -d my.domain -l syslog /host /etc/amd.map"
nfs_client_enable="NO" # This host is an NFS client (or NO).
nfs_client_flags="-n 4" # Flags to nfsiod (if enabled).
nfs_server_enable="NO" # This host is an NFS server (or NO).
nfs_server_flags="-u -t 4" # Flags to nfsd (if enabled).
mountd_flags="-r" # Flags to mountd (if NFS server enabled).
nfs_reserved_port_only="NO" # Provide NFS only on secure port (or NO).
rpc_lockd_enable="NO" # Run NFS rpc.lockd (*broken!*) if nfs_server.
rpc_statd_enable="YES" # Run NFS rpc.statd if nfs_server (or NO).
portmap_enable="YES" # Run the portmapper service (or NO).
portmap_flags="" # Flags to portmap (if enabled).
xtend_enable="NO" # Run the X-10 power controller daemon.
xtend_flags="" # Flags to xtend (if enabled).
### Network Time Services options: ###
timed_enable="NO" # Run the time daemon (or NO).
timed_flags="" # Flags to timed (if enabled).
ntpdate_enable="NO" # Run the ntpdate to sync time (or NO).
ntpdate_flags="" # Flags to ntpdate (if enabled).
xntpd_enable="NO" # Run xntpd Network Time Protocol (or NO).
xntpd_flags="" # Flags to xntpd (if enabled).
tickadj_enable="NO" # Run tickadj (or NO).
tickadj_flags="-Aq" # Flags to tickadj (if enabled).
# Network Information Services (NIS) options: ###
nis_client_enable="NO" # We're an NIS client (or NO).
nis_client_flags="" # Flags to ypbind (if enabled).
nis_ypset_enable="NO" # Run ypset at boot time (or NO).
nis_ypset_flags="" # Flags to ypset (if enabled).
nis_server_enable="NO" # We're an NIS server (or NO).
nis_server_flags="" # Flags to ypserv (if enabled).
nis_ypxfrd_enable="NO" # Run rpc.ypxfrd at boot time (or NO).
nis_ypxfrd_flags="" # Flags to rpc.ypxfrd (if enabled).
nis_yppasswdd_enable="NO" # Run rpc.yppasswdd at boot time (or NO).
nis_yppasswdd_flags="" # Flags to rpc.yppasswdd (if enabled).
### Network routing options: ###
defaultrouter="NO" # Set to default gateway (or NO).
static_routes="" # Set to static route list (or leave empty).
gateway_enable="NO" # Set to YES if this host will be a gateway.
router_enable="NO" # Set to YES to enable a routing daemon.
router="routed" # Name of routing daemon to use if enabled.
router_flags="-q" # Flags for routing daemon.
mrouted_enable="NO" # Do multicast routing (see /etc/mrouted.conf).
mrouted_flags="" # Flags for multicast routing daemon.
ipxgateway_enable="NO" # Set to YES to enable IPX routing.
ipxrouted_enable="NO" # Set to YES to run the IPX routing daemon.
ipxrouted_flags="" # Flags for IPX routing daemon.
arpproxy_all="" # replaces obsolete kernel option ARP_PROXYALL.
forward_sourceroute="NO" # do source routing (only if gateway_enable is set to "YES"
accept_sourceroute="NO" # accept source routed packets to us
##############################################################
### System console options #################################
##############################################################
keymap="NO" # keymap in /usr/share/syscons/keymaps/* (or NO).
keyrate="NO" # keyboard rate to: slow, normal, fast (or NO).
keybell="NO" # bell to duration.pitch or normal or visual (or NO).
keychange="NO" # function keys default values (or NO).
cursor="NO" # cursor type {normal|blink|destructive} (or NO).
scrnmap="NO" # screen map in /usr/share/syscons/scrnmaps/* (or NO).
font8x16="NO" # font 8x16 from /usr/share/syscons/fonts/* (or NO).
font8x14="NO" # font 8x14 from /usr/share/syscons/fonts/* (or NO).
font8x8="NO" # font 8x8 from /usr/share/syscons/fonts/* (or NO).
blanktime="NO" # blank time (in seconds) or "NO" to turn it off.
saver="NO" # screen saver: blank/daemon/green/snake/star/NO.
moused_type="NO" # See man page for rc.conf(5) for available settings.
moused_port="/dev/cuaa0" # Set to your mouse port (required if mousetype set).
moused_flags="" # Any additional flags to moused.
##############################################################
### Miscellaneous administrative options ###################
##############################################################
cron_enable="YES" # Run the periodic job daemon.
lpd_enable="NO" # Run the line printer daemon.
lpd_flags="" # Flags to lpd (if enabled).
sendmail_enable="NO" # Run the sendmail daemon (or NO).
sendmail_flags="-bd -q30m" # -bd is pretty mandatory.
dumpdev="NO" # Device name to crashdump to (if enabled).
check_quotas="NO" # Check quotas (or NO).
accounting_enable="NO" # Turn on process accounting (or NO).
ibcs2_enable="NO" # Ibcs2 (SCO) emulation loaded at startup (or NO).
linux_enable="YES" # Linux emulation loaded at startup (or NO).
rand_irqs="NO" # Stir the entropy pool (like "5 11" or NO).
clear_tmp_enable="NO" # Clear /tmp at startup.
ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib" # shared library search paths
##############################################################
### Allow local configuration override at the very end here ##
##############################################################
if [ -f /etc/rc.conf.local ]; then
. /etc/rc.conf.local
fi
I hope this all helps!
Thanks.
Mike Smith wrote:
>
> Hi Matt; thanks for taking the time to play with this.
>
> > On a newly "made world" machine at CTM src-cur.3261 I was able to
> > mount_msdos my C: drive which is a Win95 B release installation
> > on a newly formatted C: partition without FAT32 (without support
> > for large drives as Micky soft calls it).
>
> OK.
>
> > It looked good through Xfm with long filenames in mixed case and
> > filenames with spaces in them.
>
> There appears to be an odd quirk where a ' character will truncate a
> name when it is being retrieved.
>
> > So then I though I'd load StarOffice and try to read a Word 6
> > document.
> >
> > However when I clicked on the /dos directory (my C: drive mount
> > point) using the "File Open" dialog box, the machine locked solid.
>
> Ouch. Can you reproduce this reliably? Do you have a serial port you
> can put a serial console on and perhaps poke the system a bit there?
>
> --
> \\ Sometimes you're ahead, \\ Mike Smith
> \\ sometimes you're behind. \\ mike@smith.net.au
> \\ The race is long, and in the \\ msmith@freebsd.org
> \\ end it's only with yourself. \\ msmith@cdrom.com
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
--
/=====================================================================\
|Work: Matthew.Thyer@dsto.defence.gov.au | Home: thyerm@camtech.net.au|
\=====================================================================/
"If it is true that our Universe has a zero net value for all conserved
quantities, then it may simply be a fluctuation of the vacuum of some
larger space in which our Universe is imbedded. In answer to the
question of why it happened, I offer the modest proposal that our
Universe is simply one of those things which happen from time to time."
E. P. Tryon from "Nature" Vol.246 Dec.14, 1973
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34F42776.71159A15>
