Using xhfs to install the Mach Kernel |
Think Differently. Think MkLinux |
Previous | Next |
The Linux kernel contains support for the Macintosh type Hierarchical File System, HFS. While this support is generally safe enough for accessing a Macintosh volume in read only mode, it can do serious damage to your Mac partitions if you attempt to write to them. For this reason, we generally recommend that you use the linux HFS support in read only mode.
If you need to write a file to a Mac HFS volume from within Linux, then we suggest that you use the programs supplied by the hfsutils package. The HFS Utilities are not part of the Linux kernel, but are a script-able set of programs which can be used to access and modify HFS (but not HFS+) partitions.
The HFS utilities have both a command line interface, and a graphical user interface. The graphical interface is known as xhfs. You may, at first, feel more comfortable using xhfs to access your Macintosh partitions.
Now click the "Open" button in the dialog box.
The file browser works much like the standard Macintosh file dialog. Scroll down the left hand window until you find the "System Folder:" and double click on this entry to enter the System Folder. Look for the "Extensions:" entry and double click on it.
Now that you are in the appropriate directory, look for your current copy of the "Mach Kernel". Since you will want to keep the current working version for a backup, you will want to rename it.
Select the file name "Mach Kernel" and the click the "Rename..." button in the middle of the window. A small dialog box will appear. Enter the new name for the file "Mach Kernel" and click the "Rename" button in the dialog box.
Double check that the radio button for "Raw Data" Mode is selected. This isn't a Macintosh file. You want it to be treated as a raw stream of data.
Now click the "<< Copy <<" button in the center of the window. This will copy the file "Mach_Kernel" from your Linux directory into the HFS directory in the left hand browser. The underscore in the name will be automatically converted into a space.
Choose "Quit" from the "File" menu to exit xhfs, or perform whatever additional file transfers that you need.