LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2013, 12:15 PM   #1
yanque
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Rep: Reputation: Disabled
Force Mount HFS+ Risk


Hi,

Short version: is it risky to force mount HFS+?

Long version: I've recently installed Kubuntu 12.10 for dual boot with OSX Snow Leopard on my Macbook Pro 5,1 (2009). Initially, in order to read and write on the HFS+ hard drive in Kubuntu, I deactivated journaling on the HFS in Snow Leopard, then used the following in Kubuntu's Konsole:

Code:
sudo mount -t hfsplus /dev/sda2 /media/MacHD
Where /dev/sda2 clearly is the HFS and /media/MacHD is the folder I created for browsing.

Then I put the following at the end of my /etc/fstab:

Quote:
/dev/sda2 /media/MacHD auto rw,user,auto 0 0
This worked marvelously to have Kubuntu mount my drive on startup and allow me to use my OSX home folder basically as a normal home folder (cautiously, of course!).

I'd also changed my UID in Kubuntu to match my OSX UID for permissions, etc.

I'd read many times, however, that disabling journaling is very risky in case my data becomes corrupted. That's no good, to say the least.

So I looked for a work-around, and found that you can force mount HFS+ to be rw, and so I reenabled journaling and added "force" to the /ect/fstab like this:

Quote:
/dev/sda2 /media/MacHD auto rw,force,user,auto 0 0
Again, this works without a hitch, but my intuition as a semi-newb is that it's a sloppy way of getting what I want. I did some googling and found this page, which led me to install "hfsplus", "hfsprogs" and "hfsutils". Then I unmounted and mounted again. However, I didn't notice a difference, even after startup. Force mount was working before that, so I don't know what difference it should make.

Anyway, I like that I can now rw my Mac HD, and would like to know if this solution might be risky, besides the obvious part that I could accidentally change something in my OSX system, or do something else stupid. If so, are there any better solutions to what I want to do?

Thanks for your answers!

PS Sorry if I've posted this in the wrong section, or if there's already a thread on this that I haven't found. I did some searching but didn't find any results. Please let me know what other information I can give.

Last edited by yanque; 03-13-2013 at 12:17 PM.
 
Old 03-14-2013, 09:26 AM   #2
manu-tm
Member
 
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343

Rep: Reputation: 43
I remember having to force rw for an external drive (seagate) that was ro for apparently no other reason than it was previously used to backup stuff from a macbook. Apple weirdness really...

I don't think it's risky although I can't give you any warranty
 
Old 03-14-2013, 09:40 AM   #3
yanque
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. I'm taking it that the lack of information out there is a good sign.
 
Old 03-14-2013, 01:47 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
my one and only experience with trying to get an HFS drive working in CentOS 6.3 was a disaster. I had a major kernel panic that crashed the server. I had to remove the drive from the system, then get the data off via my LAN using the Mac. This was just a few months ago. Once I had that drive's data copied off, I formatted it ext4 and put it back in the server. It is not part of my NFS shares

good luck with the dual boot, Ubuntu might be more friendly to the HFS system then Cent was.
 
Old 03-14-2013, 02:46 PM   #5
yanque
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
I had a kernel panic when I initially began installing Ubuntu on my Mac from USB. It was due (so I've read) to the partition tables not being synchronized. Piecing together advise across several forums, I tried various combinations of F8 and F10 at strategic moments, and one of them worked (sadly I've forgotten which). Admittedly, the partition I was installing to was unformatted "free space" I had made with Disk Utility, so I guess that wasn't really HFS. For now I think as long as I keep regular backups everything should be fine.

This guy has done more or less the same thing I have but with Natty.

I guess a follow-up question would be whether it's sufficient to use OSX once in a while in order for the HFS drive to be journaled properly?

Thanks again for your replies.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount hfs drive? CheckUl8r Linux - Newbie 3 02-01-2012 03:35 AM
Can't mount HFS+ iPod. replica9000 Linux - General 2 11-05-2011 06:24 PM
HFS+ (encrypted) mount linux mimithebrain Linux - General 2 10-21-2005 04:46 PM
How to mount HFS+ (journaled) hardisk? carboncopy Slackware 12 12-01-2004 11:14 AM
setting up 1394 and HFS mount chunlee Linux - Software 2 11-18-2004 08:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration