Hi all.
I wonder if anyone has any idea what could be hosing my msdos file
system. The file system itself is "necessary" since I occasionally need
to dual-boot with windows. However, in this case, I do not believe that
windows is causing my problems.
The problem that arises is that some directories that formerly contained
images, now contains files named `` "(/$/&#"%"/&%# '' or so, and on
one occation, every directory entry was all of a sudden considered a
file and not a directory at all.
The file system is mounted locally and shared by nfs and samba. I copy
images from my laptop to the disk using one way or the other using
either windows (samba) or OBSD (nfs or sharity-light).
I think that bad stuff happens when I move directories around. Windows
checkdisk (at boot time) once complained about a lot of "." and ".."
directory entried that were invalid. I cannot recall if this was done
remotely using shlight or nfs, or local.
The file system resides on a disk that does not contain an OBSD
partition (wd0). I boot OBSD from wd1. Thus, the disklabel is the
default one.
---
So, basically, what I wanted to know is if anyone recognizes these
issues/symptoms or has any idea what could be corrupting the file
system. I suspect one or more (or a combination thereof) of the
following "components": fdisk (MBR partitions), disklabel, mount_msdos,
sharity-light, samba and nfs.
fdisk, disklabel, dmesg, /etc/exports and relevant smb.conf follows.
Read what you feel is relevant.
/Alexander
*** fdisk wd0 ***
Disk: wd0 geometry: 14593/255/63 [234436545 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
*0: 07 0 1 1 - 2549 254 63 [ 63: 40965687 ] HPFS/QNX/AUX
1: 0F 2550 0 1 - 14591 254 63 [ 40965750: 193454730 ] Extended LBA
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
Offset: 40965750 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
0: 07 2550 1 1 - 6373 254 63 [ 40965813: 61432497 ] HPFS/QNX/AUX
1: 05 6374 0 1 - 10197 254 63 [ 102398310: 61432560 ] Extended DOS
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
Offset: 102398310 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
0: 0B 6374 1 1 - 10197 254 63 [ 102398373: 61432497 ] Win95 FAT-32
1: 05 10198 0 1 - 14591 254 63 [ 163830870: 70589610 ]
Extended DOS
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
Offset: 163830870 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
0: 07 10198 1 1 - 14591 254 63 [ 163830933: 70589547 ]
HPFS/QNX/AUX
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
*** disklabel wd0 ***
disklabel: warning, DOS partition table with no valid OpenBSD partition
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: ST3120026A
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 234441648
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 234441648 0 unused 0 0 # Cyl 0
-232580
i: 40965687 63 unknown # Cyl
0*- 40640*
j: 61432497 40965813 unknown # Cyl
40640*-101585*
k: 61432497 102398373 MSDOS # Cyl
101585*-162530*
l: 70589547 163830933 unknown # Cyl
162530*-232559
*** dmesg ***
OpenBSD 3.7 (GENERIC) #50: Sun Mar 20 00:01:57 MST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) processor ("AuthenticAMD" 686-class) 1.01 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem = 536387584 (523816K)
avail mem = 482521088 (471212K)
using 4278 buffers containing 26923008 bytes (26292K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(55) BIOS, date 07/29/02, BIOS32 rev. 0 @ 0xfb470
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xb8f8
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde40/176 (9 entries)
pcibios0: PCI Exclusive IRQs: 9 10 11
pcibios0: PCI Interrupt Router at 000:07:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xac00 0xcc000/0x2200 0xcf000/0x3e00
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8363 Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "VIA VT8363 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Nvidia GeForce2 GTS" rev 0xa3
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "VIA VT82C686 ISA" rev 0x40
pciide0 at pci0 dev 7 function 1 "VIA VT82C571 IDE" rev 0x06: ATA100,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <ST3120026A>
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd1 at pciide0 channel 0 drive 1: <ST3120026A>
wd1: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <AOPEN, DUW1608/ARR, A03e> SCSI0 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
uhci0 at pci0 dev 7 function 2 "VIA VT83C572 USB" rev 0x16: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 7 function 3 "VIA VT83C572 USB" rev 0x16: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
viaenv0 at pci0 dev 7 function 4 "VIA VT82C686 SMBus" rev 0x40
xl0 at pci0 dev 9 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 10,
address 00:04:75:df:2d:8e
exphy0 at xl0 phy 24: 3Com internal media interface
eap0 at pci0 dev 10 function 0 "Ensoniq AudioPCI" rev 0x01: irq 11
audio0 at eap0
midi0 at eap0: <AudioPCI MIDI UART>
ami0 at pci0 dev 12 function 0 "Symbios Logic MegaRAID" rev 0x01: irq 11
LSI 523/64b/lhc
ami0: FW 713N, BIOS vG119, 64MB RAM
ami0: 1 channels, 0 FC loops, 1 logical drives
scsibus1 at ami0: 40 targets
sd0 at scsibus1 targ 0 lun 0: <AMI, Host drive #00, > SCSI2 0/direct fixed
sd0: 190777MB, 24320 cyl, 255 head, 63 sec, 512 bytes/sec, 390711296 sec
total
pciide1 at pci0 dev 14 function 0 "HighPoint HPT36x/37x IDE" rev 0x03: DMA
pciide1: using irq 10 for native-PCI interrupt
wd2 at pciide1 channel 0 drive 0: <WDC WD1200JB-00DUA1>
wd2: 16-sector PIO, LBA48, 114440MB, 234375000 sectors
wd2(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd3 at pciide1 channel 1 drive 0: <Maxtor 6Y120P0>
wd3: 16-sector PIO, LBA, 117246MB, 240121728 sectors
wd3(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using
wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ef65 netmask ef65 ttymask ffe7
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
wd0: no disk label
dkcsum: wd0 matched BIOS disk 81
dkcsum: wd1 matched BIOS disk 80
dkcsum: sd0 matched BIOS disk 82
wd2: no disk label
dkcsum: wd2 matched BIOS disk 83
wd3: no disk label
dkcsum: wd3 matched BIOS disk 84
root on wd1a
rootdev=0x10 rrootdev=0x310 rawdev=0x312
*** /etc/exports ***
# $OpenBSD: exports,v 1.2 2002/05/31 08:15:44 pjanzen Exp $
#
# NFS exports Database
# See exports(5) for more information. Be very careful: misconfiguration
# of this file can result in your filesystems being readable by the world.
/mnt/images -network 192.168.2.0 -mask 255.255.255.0
*** smb.conf ***
[global]
workgroup = BEARD
server string = Samba Server
hosts allow = 192.168.0.0/16 127.0.0.1
log file = /var/log/smbd.%m
max log size = 50
security = user
client code page = 850
character set = ISO8859-15
dns proxy = no
encrypt passwords = yes
load printers = yes
...
[images]
comment = Image gallery
path = /mnt/images
public = no
writable = yes
printable = no
write list = alexander