[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: MSDOS vs diskabel regression in -4, -5 and -current
On Tue, 10 Feb 2009, David Laight wrote:
On Fri, Feb 06, 2009 at 03:49:46PM +0000, Stephen Borrill wrote:
I've been asked to try to get an Olympus camera working again after an
upgrade to NetBSD 4.0_STABLE. On NetBSD 3.1, the fictitious disklabel
correctly has an MSDOS partition as partition e (and thus can be easily
mounted with mount_msdos /dev/sd0e /mnt). On NetBSD 4.0 and later, the
fdisk partition table appears subtly different and no MSDOS partition is
seen in disklabel; rather there is a 4.2BSD partition as partition a.
sd0: fabricating a geometry
sd0: mbr partition exceeds disk size
I suspect this is the cause of the problem.
The code is validating the mbr data against the reported media size,
detecting that it is invalid so ignoring the mbr.
Ah, yes. Disk size is 14175 sectors, but mbr says it has a partition of
14175 starting at sector 1, not 0. The camera appears to do this itself (I
asked for them to reformat it from itself).
I'll try dd'ing out the mbr on the camera and then reformatting it from
itself to see whether it persists (or invalidates the warranty ;-P).
Main Index |
Thread Index |