disklabel and fdisk can't write to disk. Interactive versions?

From: Dr. Richard E. Hawkins (hawk_at_slytherin.ds.psu.edu)
Date: 01/20/05


Date: Thu, 20 Jan 2005 18:21:34 +0000 (UTC)

I'm now seeing this on a couple of systems. One has source from January
10, the other from mid december. Both are 5.x.

When I run fdisk and dislabel from /stand/sysinstall, I get a message
"ERROR: Unable to write data to disk dao!"
                                   (100%)

This happens on all four scsi drives on this system, and on the two ide
drives I tried on the home system. I get the same error from the
disklabel within /stand/sysinstall.

On my home system, with nothing important to lose, I held my breath and
manually edited (with disklabel, I think). That wrote successfully.

Am I missing something here? If it was one or two drives, I'd blaim
hardware. However, this system has high-end drives (15krpm), and one of
the drives on the home system is brand new.

Oh, dear, now it's worse. I just ran the interactive version with
"fdisk -i /dev/da0". /dev/da0s1f is still mounted, and still working,
but the interactive version of fdisk from systinstall and the
command line version are reporting different things.

The command line yields:

slytherin# fdisk /dev/da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=2213 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=2213 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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 35551782 (17359 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 164/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

while the interac tive shows:

Offset Size(ST) End Name PType Desc Subtype
Flags

         0 16000740 16000739 da0s3 4 unknown 0
  16000740 19565738 35566477 - 12 unused 0

What is going on here? The command line is correct, and is what *used*
to be the configuration, and still *should* be. The interactive only
lists slice 3, which shouldn't exist, as slice 1 is the entire disk.

hawk, baffled

hawk

-- 
Richard E. Hawkins, Asst. Prof. of Economics    /"\   ASCII ribbon campaign
dochawk@psu.edu  111 Hiller (814) 375-4846      \ /   against HTML mail
   Find commentary on law, economics, and        X    and postings. 
   other issues of the day at dochawk.org!      / \   


Relevant Pages

  • vinum limits disk size to 255MB
    ... I'm trying to set up vinum on a freshly installed FreeBSD 5.3-BETA7 ... drives to create a vinum volume. ... BIOS sector numbering starts with sector 1 ... The data for partition 1 is: ...
    (freebsd-questions)
  • fdisk problem
    ... the slice with fdisk but not write the settings. ... Figures below won't work with BIOS for partitions not in cyl 1 ... BIOS sector numbering starts with sector 1 ... The data for partition 1 is: ...
    (freebsd-questions)
  • Re: Partition Planning
    ... It's been awhile since I've used fdisk. ... then of course you can set a Primary as "Active" to be the Boot partition. ... your other drives regardless of which HD their on down the alphabet. ... maybe you can go back to Disk Manager and steel the drive letter ...
    (microsoft.public.windowsxp.hardware)
  • Re: messed up partition table reinstalling windows 98
    ... I booted up her system using the 98 floppy, ran fdisk and deleted the ... Partition 1 as an Extended DOS partition 353 MB ... The Extended DOS Partition contains Logical DOS Drives ...
    (Ubuntu)
  • Problem with fdisk -i
    ... I have a problem with fdisk -i on one of my FreeBSD server: ... Figures below won't work with BIOS for partitions not in cyl 1 ... BIOS sector numbering starts with sector 1 ... The data for partition 1 is: ...
    (freebsd-questions)