![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Apple PPC Users The place to discuss your Ubuntu Macintosh/Apple/PPC questions (including the Ibook, PowerBook). |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Dark Roasted Ubuntu
![]() Join Date: Nov 2006
Location: There and back again
Beans: 1,061
|
HowTo: HFSplus Basic Support
This is a howto made simple and easy for Macintosh and Ubuntu users who need to be able to access HFSplus drives and partitions. HFSplus support is included in the Edgy (Ubuntu 6.10) kernel but it will require a few extra tools to have it be both dependable and reliable.
First of all to have your hfsplus drive mounted, make a directory that will hold the mounted disk. Code:
sudo mkdir /mnt/Shared_Disk Now to temporarily mount it use this command: Code:
sudo mount /dev/sda2 -t hfsplus -o rw /mnt/Shared_Disk Code:
df -h Code:
/dev/sda3 17G 12G 4.3G 73% / /dev/sda2 43G 29G 15G 68% /mnt/OSX /dev/sda4 15G 2.9G 12G 20% /mnt/Shared_Disk Now, I must point out that Linux at this time is only able to mount Journaled HFSplus filesystems as read-only. Journaling helps the filesystem preserve its data - especially useful for power outages. Journaling got added to HFSplus when OSX came out. If you want to be able to read and write from and HFSplus drive, be sure journaling is off. To see if your disk/partition is head to: System > Administration > System Log and click on syslog. Now, punch ctrl+f and type in "mount". If the above partition that we mounted is journaled, there will be a warning here. To turn off journaling, restart with the OSX install CD, select Disk Utility from the drop down menu, click the drive you want to have journaling shutoff of and use the button Journaling disable. To have the HFSplus drive/partition mounted everytime you boot, the fstab file must be changed: Code:
sudo gedit /etc/fstab Code:
/dev/sda4 /mnt/Shared_Disk hfsplus rw,exec,auto,users 0 0 The Linux Kernel is pretty picky about it's HFSplus drives, but it's a good thing. If it ever occurs where your system is locked up and you have to force reboot, then your HFSplus disk will not be cleanly unmounted. If you look into your syslog and see (once more ctrl-F, and use "mount" filter): Code:
hfs: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended. mounting read-only Code:
sudo bash cd /usr/src mkdir hfsplus_support wget http://darwinsource.opendarwin.org/tarballs/apsl/diskdev_cmds-332.14.tar.gz wget http://www.ecl.udel.edu/~mcgee/diskdev_cmds/diskdev_cmds-332.14.patch.bz2 tar zxf diskdev_cmds-332.14.tar.gz bunzip2 -c diskdev_cmds-332.14.patch.bz2 | patch -p0 cd diskdev_cmds-332.14 make -f Makefile.lnx cp fsck_hfs.tproj/fsck_hfs /sbin/fsck.hfsplus cd /sbin ln -s fsck.hfsplus fsck.hfs Type fsck.hfsplus to see the list of option types - there is no man page. You can delete the downloaded files and unstuffed folders if you wish. Now to make the partition/drive read-write enabled, the filesystem needs to be checked: Code:
fsck.hfsplus -r /dev/sda4 Sources: original Gentoo piece:http://gentoo-wiki.com/HOWTO_hfsplus Debian derived piece:http://www.debian-administration.org.../lee/weblog/21 Last edited by Gen2ly; October 24th, 2007 at 08:54 PM.. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|