On Tue, 1 Jul 2008, Udo Huth wrote:
> am 01.07.2008 16:41 Uhr schrieb Chris Devers unter cdevers

pobox.com:
>
> >> Disk Utility cannot repair the drive. It displays the error "Invalid
> >> node size of the B-tree-header"
> >
> > In my experience, this is often an indicator of a bad drive.
> > Disk Warrior *might* be able to stabilize it.
> > But you might also find that it can't be stabilized for very long.
>
> Hi,
>
> thanks for answering. I did "experiment" some more. Formatting the
> drive for the MS-DOS file system results in another error. Trying to
> format for the Unix file system yields an "I/O error" - so I thing
> you're right, that disk is toast...
Yep, I/O errors are in my experience a clear sign that the HD is dying.
> >> Trying as root with fdisk wasn't successful either, as fdisk didn't
> >> recognize either "fd1" or "/dev/disk1s10" as a valid argument.
> >
> > But that would never have worked:
> >
> > $ apropos fdisk
> > fdisk(8) - DOS partition maintenance program
> > $
> >
> > Unless you have it formatted as a FAT / FAT32 disk for Windows, in which
> > case it wouldn't be bootable by OSX, `fdisk` isn't going to help you.
>
> Hm, why then is "fdisk" installed with the underlying Unix of Mac OS?
Because [a] it isn't unusual for Macs to live in a mixed-OS world where
they might have to manage "alien" disk formats from time to time,
because [b] it's a very common open source tool for this kind of thing
that a lot of people are familiar with, and because [c] it's 88kb and
Apple probably figures they can afford to give it some space :-)
> I read the man page of "fdisk" and it oughta be able to format the
> disk with "-a hfs" for the HFS file system -- or did I get that
> completely wrong??
It might work, but it's a weird way to do it.
Until you posted this, I hadn't even realized that OSX ships with a copy
of fdisk. It's a pretty old tool (I've used it at least as far back as
Windows 95, if not DOS & Windows 3.1), but it isn't really thought of as
part of the "standard" Mac command like disk management toolkit. More
typical are tools like fsck (probably what you were looking for here),
diskutil, hdiutil, plus the GUI Disk Utility, which uses those three.
--
Chris Devers