| Summary: | vinum attempts to read DOS volumes and whines about it | ||
|---|---|---|---|
| Product: | Base System | Reporter: | ahd <ahd> |
| Component: | bin | Assignee: | Greg Lehey <grog> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.3-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-bugs->grog Over to maintainer. State Changed From-To: open->closed Problem solved. |
Issue vinum dumpconfig on a machine with a DOS partition, vinum whines that it can't read the FreeBSD disklabel. fdisk output: ******* Working on device /dev/da1 ******* parameters extracted from in-core disklabel are: cylinders=2231 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=2231 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 6,(Primary 'big' DOS (> 32MB)) start 63, size 771057 (376 Meg), flag 0 beg: cyl 0/ sector 1/ head 1; end: cyl 47/ sector 63/ head 254 The data for partition 2 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 771120, size 35069895 (17123 Meg), flag 80 (active) beg: cyl 48/ sector 1/ head 0; end: cyl 1023/ sector 63/ head 254 The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> minerva,/home/ahd,84# vinum dumpconfig Can't get label from /dev/da1s1c: Invalid argument (22) Fix: Check type of disk before blindly reading the disk. How-To-Repeat: See example above.