thewatertower.org.uk

Apple Macintosh

Hardware

Filesystem problems

Problem: hard disk out of a iBook G4, in a USB case. System no longer booted; disk has physical and / or filesystem problems. diskutil on MACOS isn't interested.

Mounts OK under Linux, with errors ..

kernel: usb 1-2: reset full speed USB device using uhci_hcd and address 2
kernel: usb 1-2: reset full speed USB device using uhci_hcd and address 2
kernel: usb 1-2: reset full speed USB device using uhci_hcd and address 2
kernel: usb 1-2: reset full speed USB device using uhci_hcd and address 2
kernel: usb 1-2: reset full speed USB device using uhci_hcd and address 2
kernel: usb 1-2: reset full speed USB device using uhci_hcd and address 2
kernel: sd 2:0:0:0: [sdd] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK,SUGGEST_OK
kernel: end_request: I/O error, dev sdd, sector 11073536
kernel: printk: 22 messages suppressed.
kernel: Buffer I/O error on device sdd3, logical block 5405664
kernel: Buffer I/O error on device sdd3, logical block 5405665
kernel: Buffer I/O error on device sdd3, logical block 5405666
kernel: Buffer I/O error on device sdd3, logical block 5405667
kernel: Buffer I/O error on device sdd3, logical block 5405668
kernel: Buffer I/O error on device sdd3, logical block 5405669
kernel: Buffer I/O error on device sdd3, logical block 5405670
kernel: Buffer I/O error on device sdd3, logical block 5405671
kernel: Buffer I/O error on device sdd3, logical block 5405672
kernel: Buffer I/O error on device sdd3, logical block 5405673

Copying files off hasn't been too bad, but its time consuming.

Downloaded fsck.hfsplus from the openmamba site, having first tried to get the source off Apple and bailed out with make errors.

/usr/src/diskdev_cmds-421.1 # make
Makefile:51: /pb_makefiles/platform.make: No such file or directory
Makefile:55: /pb_makefiles/aggregate.make: No such file or directory
make: *** No rule to make target `/pb_makefiles/aggregate.make'.  Stop.
/usr/src/diskdev_cmds-332.23 # make
Makefile:51: /pb_makefiles/platform.make: No such file or directory
Makefile:55: /pb_makefiles/aggregate.make: No such file or directory
make: *** No rule to make target `/pb_makefiles/aggregate.make'.  Stop.

Ran through a series of checks ..

# fsck.hfsplus -l /dev/sdd3
** /dev/sdd3 (NO WRITE)
** Checking HFS Plus volume.
** Checking Extents Overflow file.
** Checking Catalog file.
   Invalid node structure
(4, 19773)
** The volume Macintosh HD needs to be repaired.
# fsck.hfsplus /dev/sdd3
** /dev/sdd3
** Checking HFS Plus volume.
fsck_hfs: Volume is journaled.  No checking performed.
fsck_hfs: Use the -f option to force checking.
# fsck.hfsplus -f /dev/sdd3
** /dev/sdd3
** Checking HFS Plus volume.
** Checking Extents Overflow file.
** Checking Catalog file.
   Invalid node structure
(4, 19773)
** Rebuilding Catalog B-tree.

Some sources of info about running fsck on hfs plus filesystems.

Software - OS X

Software - Linux

Wine

Trying to get Wine working on Leopard (10.5.8)

Have downloaded Wine Bottler dmg; dragged wine and winebottler into applications as instructed.

Its not the same as Linux!!

Wine is designed to call on Linux libraries to do the heavy lifting in the absense of Windows. A number of these are missing off the shelf, and I suspect the developers are too used to having development tools on their Macs.

X11 errors.

err:module:load_builtin_dll failed to load .so lib for builtin L"winex11.drv": dlopen(/Applications/Wine.app/Contents/Resources/bin/../lib/wine/winex11.drv.so, 2): Library not loaded: /usr/X11R6/lib/libSM.6.dylib
  Referenced from: /Applications/Wine.app/Contents/Resources/bin/../lib/wine/winex11.drv.so

Library was present, but in /usr/X11/lib.

$ cd /usr
$ sudo ln -s X11 X11R6

Font errors.

Fontconfig error: line 1: no element found
Fontconfig error: Cannot load default config file

.. and ..

$ cd /Applications/Wine.app/Contents/Resources/bin
$ ./winecfg
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org

Concluded Freetype was missing without leave. Installed mac ports.

$ sudo port install freetype
Password:
Error: Unable to open port: invalid command name "license"
$ sudo port selfupdate

MacPorts base version 1.700 installed
Downloaded MacPorts base version 1.800

Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 && make && make install" returned error 1
..
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/base':
configure: error: no acceptable C compiler found in $PATH

Had tried to avoid installing XCode, which other sources of Wine on Mac seem to require; ie to compile it from scratch. Tried to download XCode as the Client couldn't find the install disk .. Google presents the Snow Leopard / 10.6.x version; this no good for this machine.

Tracked down Xcode 3.1.3 eventually ..

$ sudo port selfupdate
Password:

MacPorts base version 1.700 installed
Downloaded MacPorts base version 1.800

Installing new MacPorts release in /opt/local as root:admin - TCL-PACKAGE in /Library/Tcl; Permissions: 0755
$ sudo port install freetype
--->  Computing dependencies for freetype
--->  Fetching zlib
--->  Attempting to fetch zlib-1.2.3.tar.bz2 from http://lil.fr.distfiles.macports.org/zlib
--->  Verifying checksum(s) for zlib
--->  Extracting zlib
--->  Applying patches to zlib
--->  Configuring zlib
--->  Building zlib
--->  Staging zlib into destroot
--->  Installing zlib @1.2.3_4
--->  Activating zlib @1.2.3_4
--->  Cleaning zlib
--->  Fetching freetype
--->  Attempting to fetch freetype-2.3.12.tar.bz2 from http://kent.dl.sourceforge.net/freetype
--->  Attempting to fetch freetype-doc-2.3.12.tar.bz2 from http://kent.dl.sourceforge.net/freetype
--->  Verifying checksum(s) for freetype
--->  Extracting freetype
--->  Applying patches to freetype
--->  Configuring freetype
--->  Building freetype
--->  Staging freetype into destroot
--->  Installing freetype @2.3.12_0+macosx
--->  Activating freetype @2.3.12_0+macosx
--->  Cleaning freetype

Still couldn't find freetype.

$  /opt/local/bin/freetype-config --ftversion
2.3.12
$ cd /usr/lib
$ sudo ln -s /opt/local/lib/libfree* .
Printed and hosted by Prater Raines Ltd, 98 Sandgate High Street, Folkestone CT20 3BY.
Published and promoted by Ben Prescott, 14, St James's Square, Bournemouth, BH5 2BX. All rights reserved.
The views expressed are solely those of the author, not of the service provider.