Date: Thu, 6 Aug 1998 10:15:05 +0100 (BST) From: "m.ivens" <mark@ee.ucl.ac.uk> To: freebsd-questions@FreeBSD.ORG Subject: bad bios parameter block? Message-ID: <Pine.BSF.3.96.980806095323.862A-100000@localhost>
next in thread | raw e-mail | index | archive | help
Hi,
I'm having problems mounting a FAT partition under 2.2.7-STABLE. I'm
sure it's because my brain has had a hardware failure and I've done
something stupid so I thought I'd ask you guys.
The FAT partition is 3rd slice on master on 2nd IDE interface:
wdc1: unit 0 (wd2): <ST31012A>, 32-bit, multi-block-16, sleep-hack
wd2: 1032MB (2114784 sectors), 2098 cyls, 16 heads, 63 S/T, 512 B/S
It's partitoned like this:
Disk name: wd2 FDISK
Partition Editor
DISK Geometry: 524 cyls/64 heads/63 sectors = 2112768 sectors
Offset Size End Name PType Desc Subtype
Flags
0 63 62 - 6 unused 0
63 507969 508031 wd2s1 3 freebsd 165 C
508032 548352 1056383 wd2s3 4 extended 5
1056384 1056384 2112767 wd2s2 3 freebsd 165
2112768 2016 2114783 - 6 unused 0
and the 2 UFS slices on wd2 are mounting fine:
%df
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/wd0s3a 63550 40376 18090 69% /
/dev/wd0s3f 1238862 983432 156322 86% /usr
/dev/wd0s3e 59454 7636 47062 14% /var
procfs 8 8 0 100% /proc
/dev/wd0s1 1031584 789632 241952 77% /c
/dev/wd2s1e 492318 346908 106026 77% /a
/dev/wd2s2e 1023166 884606 56708 94% /usr/home/removeable
but trying to mount wd2s3 yields:
%mount -t msdos /dev/wd2s3 /mnt
msdos: /dev/wd2s3: Invalid argument
and the message
mountmsdosfs(): bad bpb
on the console. I take it that it is complaining abut a bad BIOS parameter
block?
Trying to use mtools with the line
drive d: file="/dev/rwd2s3"
in mtools.conf gives
%mdir d:
init D: sector size (0) not a small power of two
Cannot initialize 'D:'
The drive is set as an LBA device in the BIOS and as you can see from the
dmesg output above, I have also tried including (and also not including)
the LBA mode flag to wdc1 in the -c options (although as it's only a
1032Mb drive I thought LBA wasn't neccessary...).
I suppose that I am having these problems cos I've put the FAT slice
somewhere on the disk I shouldn't have. I'm sure one of you great FreeBSD
gurus out there can tell me the stupid thing I have done.
I would be really grateful for any help you may be able to give.
Regards
Mark Ivens
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980806095323.862A-100000>
