Jump to content
27 posts in this topic

Recommended Posts

You Yellow Dog gurus probably already know this, but you can mount your OS X file system within Linux by specifying it as hfsplus in /etc/fstab.

 

I did not find this documented in the man page but stumbled upon it while upgrading my Linus to SUSE 10.

 

This is tremendously useful if you install something and then OS X won't boot.

Link to comment
https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/
Share on other sites

Knoppix includes hfs+ support, just modprobe hfsplus before mounting. compiling it as a module is usually straightforward. there's a bug I came across, which disabled write access, the solution had something to do with hfsutils or hfstools, but I can't seem to find it offhand..

Youll probably need to recompile the kernel with HFS+ support compiled in or as a module, while youre at it, its a good time to upgrade the kernel to the latest in the stable branch too.

 

Actually, I had just installed SUSE 10, and was going to recompile for hpfs support, but decided to test it first. On a whim I tried hfsplus too. Much to my surprise, both worked with the kernel out of the box.

Actually, I had just installed SUSE 10, and was going to recompile for hpfs support, but decided to test it first. On a whim I tried hfsplus too. Much to my surprise, both worked with the kernel out of the box.

I've just tested it with Suse 9.3. Working out of the box

#su

#mkdir /OSX86

#mount -t hfsplus /dev/hda1 /OSX86

#cd /OSX86

#ls

I can reach my iTunes mp3's with XMMS now B)

No problem, do your usual make menuconfig/xconfig/whatever & its under misc filesystems.. On my gentoo I have it compiled into a monolithic kernel & as a module for a modular kernel, both work. If you have a modular kernel try modprobe hfsplus first, it might already be there... either way it should not influence your ntfs/hfs/fat32 performance.

Great! Then maybe afterwards I can get write priv. on all disks.. Looks like a long shot on ntfs though. But please let me know if it's possible. Most sites I visit say it's not 100% supported, meaning I may fubar my NT file system.

If I want to write on a ntfs partition with Linux,I use captive. Captive use the original M$ ntfs driver (taken from my XP) to write on a ntfs partition. You can test this with a 50MB Linux-live-CD if you don't have a installed Linux:

http://www.inside-security.de/INSERT_en.html

NTFS Write Support works very well in my experience to be honest, its been in like a "testing" stage for quite a while because of the complexities of the NTFS file system but it seems safe enough, just make sure you have important stuff backed up, you should anyway!

Yea, all my important things are kept safely on another drive. I learned that years ago. I'll hit the dedicated ntfs site for linux and try to get 777 on ntfs after I figure out how to mount HFS+.

 

If I want to write on a ntfs partition with Linux,I use captive. Captive use the original M$ ntfs driver (taken from my XP) to write on a ntfs partition. You can test this with a 50MB Linux-live-CD if you don't have a installed Linux:

http://www.inside-security.de/INSERT_en.html

What does captive use to write on ntfs. I already have Fedora Core installed. Maybe I we can use the same driver on other distros.

What does captive use to write on ntfs. I already have Fedora Core installed. Maybe I we can use the same driver on other distros.

 

You just need 2 M$ file; no matter what distro you are using: ntfs.sys and ntoskrnl.exe

Copy this files to /var/lib/captive

Mount your drive like this (change /dev/hda2 with your partition):

#mkdir /XP

#mount -t captive-ntfs /dev/hda2 /XP

#cd /XP

#ls

This works also with the 50MB live-linux-CD

If you burn an iso from this live-CD with the 2 M$ files you have a tool to access all filesystems (OSX, M$, Linux, Unix) :D

If you burn an iso from this live-CD with the 2 M$ files you have a tool to access all filesystems (OSX, M$, Linux, Unix) :)

 

cool distro.

 

I'm confused...why would someone need manually install the 2 MS files into the INSERT distro if INSERT already includes full read/write NTFS support with Captive?

cool distro.

 

I'm confused...why would someone need manually install the 2 MS files into the INSERT distro if INSERT already includes full read/write NTFS support with Captive?

No the files are NOT on this CD (copyright). There's a script that search an installed Windows to get this Files. The script only works sometimes (XP need to be /dev/hda1 , in French Windows the script is not working ect...). That's the reason why you should burn these files into the iso.

Just open the iso, add the 2 files in there and save the iso. In linux use mkiso, in Windows use Winiso. or simillar.

When you boot your modified distro, then copy the 2 files from the CD to /var/lib/captive . The Folder is in the RAM so it works with the Live CD (it's the same what the script does, if it works).

Any other file system than ntfs works directly without an workaround :)

I've just tested it with Suse 9.3. Working out of the box

#su

#mkdir /OSX86

#mount -t hfsplus /dev/hda1 /OSX86

#cd /OSX86

#ls

I can reach my iTunes mp3's with XMMS now ;)

 

Thanks for this tip. Now that I know I have read/write access to HSF+, how can I automount OSX86 on every reboot? Can I just add it to fstab or does this require a script?

 

Next stop, captive. B)

Thanks for this tip. Now that I know I have read/write access to HSF+, how can I automount OSX86 on every reboot? Can I just add it to fstab or does this require a script?

 

Next stop, captive. ;)

If you have a installed Linux, just add it in /etc/fstab and OSX86 wil automaticly be mount every boot

Wrestling with captive now. I have both windows files in the captive folder and ran the fallowing command:

 

mount -t captive-ntfs /dev/hdc1 /mnt/winxp

 

This is the result:

 

Captive NTFS v1.1.5. Check a new version at: http://www.jankratochvil.net/

Preparing LUFS kernel module... Run /usr/share/lufs/prepmod if problems occur.

lufs module not loaded: Try running /usr/share/lufs/prepmod to see more. at /usr/bin/captive-lufsd line 180

 

I run: /usr/share/lufs/prepmod and this is the error

 

Failed to prepare lufs.ko module for your Linux kernel 2.6.12-1.1378_FC3.
Detected Linux kernel sources "/lib/modules/2.6.12-1.1378_FC3/build" do not appear to be valid.
Please install kernel-source-x.y.z.i386.rpm or kernel-headers_x.y.z_i386.deb.
The following directory paths were search (first existing directory used):
			/lib/modules/2.6.12-1.1378_FC3/build
			/usr/src/kernel-headers-2.6.12-1.1378_FC3
			/usr/src/linux-2.6.12-1.1378_FC3
			/usr/src/linux-2.6.12
			/usr/src/linux
			/usr/src/kernel-source-2.6.12-1.1378_FC3
at /usr/share/lufs/prepmod line 181

 

Any suggestions on how to fix this?

Wrestling with captive now. I have both windows files in the captive folder and ran the fallowing command:

 

mount -t captive-ntfs /dev/hdc1 /mnt/winxp

 

This is the result:

I run: /usr/share/lufs/prepmod and this is the error

 

Failed to prepare lufs.ko module for your Linux kernel 2.6.12-1.1378_FC3.
Detected Linux kernel sources "/lib/modules/2.6.12-1.1378_FC3/build" do not appear to be valid.
Please install kernel-source-x.y.z.i386.rpm or kernel-headers_x.y.z_i386.deb.
The following directory paths were search (first existing directory used):
			/lib/modules/2.6.12-1.1378_FC3/build
			/usr/src/kernel-headers-2.6.12-1.1378_FC3
			/usr/src/linux-2.6.12-1.1378_FC3
			/usr/src/linux-2.6.12
			/usr/src/linux
			/usr/src/kernel-source-2.6.12-1.1378_FC3
at /usr/share/lufs/prepmod line 181

 

Any suggestions on how to fix this?

 

lufs is not running properly, when you try to prepare your kernel module you got an message that you kernel-sources are not installed or not matching with your kernel.

This is an issue of Fedora Core3, you problaby have to install this things.

At some other distros it works out of the box. If you want to test it quickly, take the 50MB live-CD and add on it the 2 files:

http://www.inside-security.de/INSERT_en.html

Youll probably need to recompile the kernel with HFS+ support compiled in or as a module, while youre at it, its a good time to upgrade the kernel to the latest in the stable branch too.

the module will be loaded automatically, no need for modprobe

most linux distro already inlude the hsfplus kernel module

Yea, A bit disappointed that I wont be able to install Captive. This kernel I have is an SMP compiled kernel for HT processors and VMWare. So i'm thinking that unless someone with enough knowledge with compiling a kernel that will work with Captive and also have the kernel work with VMWare, I'm SOL.

No the files are NOT on this CD (copyright). There's a script that search an installed Windows to get this Files. The script only works sometimes (XP need to be /dev/hda1 , in French Windows the script is not working ect...). That's the reason why you should burn these files into the iso.

Just open the iso, add the 2 files in there and save the iso. In linux use mkiso, in Windows use Winiso. or simillar.

When you boot your modified distro, then copy the 2 files from the CD to /var/lib/captive . The Folder is in the RAM so it works with the Live CD (it's the same what the script does, if it works).

Any other file system than ntfs works directly without an workaround :rolleyes:

 

 

got it...thanks.... i never installed captive so didn't know that but should have realize the 2 windows files weren't included due to copyright...

also

 

You Yellow Dog gurus probably already know this, but you can mount your OS X file system within Linux by specifying it as hfsplus in /etc/fstab.

 

be careful. i am *very* nervous about trusting all my hfsplus data to this linux module not stable in alpha. maybe a readonly module i would trust... does one exist?

 

http://forum.osx86project.org/index.php?s=...indpost&p=23537

 

i would be interested to hear about any LONG TERM usage...although long term is probably not very much with this new driver...

×
×
  • Create New...