Again thanks for the ideas, I had some time to kill and tried .. something (see below), but it still doesn't work. There is a OpenBSD disklabel and a even a rather small ffs partition. Mount (mount_msdos i guess) works on a FAT32 partition but mount_ntfs does not, on the NTFS one.
I reckon i will bark up the ntfs_3g tree next, if nothing else I'm sure I'm not the only one in the world stumped by this and it could be useful for the solution (or a conclusion of an impossibility thereof) to be googlable.
Code:
hostname [~] # dmesg | tail -n 7
umass0 at uhub0 port 5 configuration 1 interface 0 "Western Digital My Book 1230" rev 2.10/10.50 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: <WD, My Book 1230, 1050> SCSI4 0/direct fixed
sd0: 3815415MB, 4096 bytes/sector, 976746240 sectors
ses0 at scsibus2 targ 1 lun 1: <WD, SES Device, 1050> SCSI4 13/enclosure services fixed
ses0: unable to read enclosure configuration
hostname [~] # disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: My Book 1230
duid: 0000000000000000
flags:
bytes/sector: 4096
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 60799
total sectors: 976746240
boundstart: 0
boundend: 976746240
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 976746240 0 unused
i: 960351872 63 NTFS
j: 16370235 960365700 MSDOS
hostname [~] # fdisk -e sd0
Enter 'help' for information
fdisk: 1> print
Disk: sd0 geometry: 60799/255/63 [976746240 4096-byte Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
-------------------------------------------------------------------------------
0: 07 0 1 1 - 59779 36 32 [ 63: 960351872 ] NTFS
1: 0B 59780 0 1 - 60798 254 63 [ 960365700: 16370235 ] Win95 FAT-32
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
fdisk: 1> swap 2 1
fdisk:*1> swap 1 0
fdisk:*1> edit 0
partition id ('0' to disable) [0 - FF]: [0] (? for help) A6
Do you wish to edit in CHS mode? [n]
Partition offset: [0] 15
Partition size: [0] 48
fdisk:*1> print
Disk: sd0 geometry: 60799/255/63 [976746240 4096-byte Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
-------------------------------------------------------------------------------
0: A6 0 0 16 - 0 0 63 [ 15: 48 ] OpenBSD
1: 07 0 1 1 - 59779 36 32 [ 63: 960351872 ] NTFS
2: 0B 59780 0 1 - 60798 254 63 [ 960365700: 16370235 ] Win95 FAT-32
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
fdisk:*1> write
Writing MBR at offset 0.
fdisk: 1> exit
hostname [~] # disklabel -E sd0
Label editor (enter '?' for help at any prompt)
> p
OpenBSD area: 15-63; size: 48; free: 48
# size offset fstype [fsize bsize cpg]
c: 976746240 0 unused
i: 960351872 63 NTFS
j: 16370235 960365700 MSDOS
> a a
offset: [15]
size: [48]
FS type: [4.2BSD]
Rounding size to bsize (8 sectors): 41
> p
OpenBSD area: 15-63; size: 48; free: 7
# size offset fstype [fsize bsize cpg]
a: 41 15 4.2BSD 4096 32768 1
c: 976746240 0 unused
i: 960351872 63 NTFS
j: 16370235 960365700 MSDOS
>
> w
> q
No label changes.
hostname [~] # newfs -b 4096 /dev/rsd0a
/dev/rsd0a: 0.2MB in 328 sectors of 4096 bytes
1 cylinder groups of 0.16MB, 41 blocks, 32 inodes each
super-block backups (for fsck -b #) at:
32,
hostname [~] # mount /dev/sd0a /mnt/bsd2
hostname [~] # cd /mnt/bsd2
hostname [/mnt/bsd2] # df -h .
Filesystem Size Used Avail Capacity Mounted on
/dev/sd0a 128K 4.0K 120K 3% /mnt/bsd2
hostname [/mnt/bsd2] # echo "hi" > test.txt
hostname [/mnt/bsd2] # cat test.txt
hi
hostname [/mnt/bsd2] # cd
hostname [~] # umount /mnt/bsd2
hostname [~] # disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: My Book 1230
duid: 9d972eeaa21fbcee
flags:
bytes/sector: 4096
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 60799
total sectors: 976746240
boundstart: 15
boundend: 63
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 41 15 4.2BSD 4096 4096 1
c: 976746240 0 unused
i: 960351872 63 NTFS
j: 16370235 960365700 MSDOS
hostname [~] # mount /dev/sd0i /mnt/ntfs
mount_ntfs: /dev/sd0i on /mnt/ntfs: Invalid argument
hostname [~] # mount /dev/sd0j /mnt/msdos
hostname [~] # ls /mnt/msdos
System Volume Information
hostname [~] # umount /dev/sd0j
hostname [~] #