wmarsh Posted October 16, 2005 Share Posted October 16, 2005 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 More sharing options...
Zeph Posted October 16, 2005 Share Posted October 16, 2005 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. Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-22576 Share on other sites More sharing options...
Hagar Posted October 16, 2005 Share Posted October 16, 2005 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.. Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-22579 Share on other sites More sharing options...
wmarsh Posted October 17, 2005 Author Share Posted October 17, 2005 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. Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-22610 Share on other sites More sharing options...
DrJägermeister Posted October 17, 2005 Share Posted October 17, 2005 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 Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-22671 Share on other sites More sharing options...
domino Posted October 17, 2005 Share Posted October 17, 2005 RedHat, Fedora Core in my case, has native FAT (no write) support and I had to recompile the kernel for ntfs (no write) support. If I recompile the kernel for HSF, would the process remove the current ntfs support? Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-22680 Share on other sites More sharing options...
Hagar Posted October 17, 2005 Share Posted October 17, 2005 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. Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-22682 Share on other sites More sharing options...
domino Posted October 18, 2005 Share Posted October 18, 2005 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. Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-22761 Share on other sites More sharing options...
Zeph Posted October 18, 2005 Share Posted October 18, 2005 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! Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-22764 Share on other sites More sharing options...
DrJägermeister Posted October 18, 2005 Share Posted October 18, 2005 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 Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-22781 Share on other sites More sharing options...
domino Posted October 18, 2005 Share Posted October 18, 2005 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. Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-22825 Share on other sites More sharing options...
DrJägermeister Posted October 19, 2005 Share Posted October 19, 2005 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) Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23008 Share on other sites More sharing options...
would_pay_for_mac_on_x86 Posted October 19, 2005 Share Posted October 19, 2005 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? Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23059 Share on other sites More sharing options...
DrJägermeister Posted October 19, 2005 Share Posted October 19, 2005 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 Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23061 Share on other sites More sharing options...
domino Posted October 19, 2005 Share Posted October 19, 2005 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. Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23124 Share on other sites More sharing options...
DrJägermeister Posted October 19, 2005 Share Posted October 19, 2005 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 Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23129 Share on other sites More sharing options...
domino Posted October 19, 2005 Share Posted October 19, 2005 Yea I got the fix from the Ubuntu forum /dev/hda2 /mnt/osx86 hfsplus rw,exec,auto,users 0 0 hda2 is my HFS+ partition. Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23132 Share on other sites More sharing options...
domino Posted October 19, 2005 Share Posted October 19, 2005 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? Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23156 Share on other sites More sharing options...
DrJägermeister Posted October 20, 2005 Share Posted October 20, 2005 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 Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23255 Share on other sites More sharing options...
zorxd Posted October 20, 2005 Share Posted October 20, 2005 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 Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23364 Share on other sites More sharing options...
domino Posted October 20, 2005 Share Posted October 20, 2005 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. Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23365 Share on other sites More sharing options...
would_pay_for_mac_on_x86 Posted October 21, 2005 Share Posted October 21, 2005 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 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... Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23550 Share on other sites More sharing options...
would_pay_for_mac_on_x86 Posted October 21, 2005 Share Posted October 21, 2005 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... Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23560 Share on other sites More sharing options...
domino Posted October 22, 2005 Share Posted October 22, 2005 Cross platform file system permissions will never be 100% supported by any OS. The only stable cross platform file system I know of is FAT and that isn't 100% support. So don't hold you breathe. Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23590 Share on other sites More sharing options...
would_pay_for_mac_on_x86 Posted October 22, 2005 Share Posted October 22, 2005 yeah...well im not holding my breath really...native fat32 r/w access in os x is stable ASAIK just a warning to those who don't know... a r/o hfplus module would be nice in the interrum is all... Link to comment https://www.insanelymac.com/forum/topic/3577-hfs-access-from-linux/#findComment-23644 Share on other sites More sharing options...
Recommended Posts