LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 02-16-2011, 08:27 AM   #1
zimbot
Member
 
Registered: Nov 2005
Location: cincinnati , ohio . USA
Distribution: ubuntu , Opensuse , CentOS
Posts: 122

Rep: Reputation: 17
to write to HFS+ ( mac)


friends,

I am currently able to mount a HFS+ ( mac osx ) formatted usb drive for reading.
My googleing seems to lead me to believe that I cannot , as in never , be able to mount such an animal and be able to write to it.
[ i am monting USB drives and backing them up to LTO4 data tapes ]
I would like to be able to
"sanitize' the permissions on the mac drive
chmod 777 -R "yeOlMacDrv" and also
write a drv list back to the drive
ls -altR >> /media/yeOlMacDrv/JobNum.txt

so basically my kernel ( OPENsuse 11.4 ) must have been built with the HFS util -- cause i CAN read it.

Is it true no LINUX solution for mounting for writing exists?

and if it is possible -- how?

thanks
 
Old 02-16-2011, 09:33 AM   #2
zimbot
Member
 
Registered: Nov 2005
Location: cincinnati , ohio . USA
Distribution: ubuntu , Opensuse , CentOS
Posts: 122

Original Poster
Rep: Reputation: 17
i did see this ref to hfsprogs

//-fragmnet

I still couldnít get write access without that warning. I tried loading the hfsplus module and then adding it to /etc/modules to see if that would make a difference. As I expected, it didnít. I was almost ready to give up but there was another HFS package in the list that, even though it seemed unrelated to what was trying to do, seemed worth a shot:

hfsprogs - mkfs and fsck for HFS and HFS+ file systems

It worked! I have no idea how or why (and Iím not interested enough to figure it out), but after installing the hfsprogs package I was able to mount my HFS+ partition with write access.
 
Old 02-16-2011, 09:42 AM   #3
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 249Reputation: 249Reputation: 249
Greetingz!

Check to see that you have the "HFSplus" kernel module loaded. If the HFS+ filesystem is non-journaled, you should be able to mount-up HFS+ filesystems read-write that way. However, as that's an "EXPERIMENTAL" module, I wouldn't explicitly trust it.

Depending on how you're backing these up to tape, there might be a better way to change the permissions. For instance, tar has a few options you might find interesting;

Interesting Options from GNU Tar's ManPage
Code:
-o, --no-same-owner
    do not attempt to restore ownership when extracting; -o exhibits this
    behavior when extracting an archive 
--no-xattrs
    this option causes tar not to store each file's extended attributes
    in the archive and not to extract any extended attributes in an archive.
    This option also enables --no-acls and --no-selinux if they haven't
    been set already. 
--owner USER
    change owner of extraced files to USER
 
Old 02-16-2011, 02:51 PM   #4
zimbot
Member
 
Registered: Nov 2005
Location: cincinnati , ohio . USA
Distribution: ubuntu , Opensuse , CentOS
Posts: 122

Original Poster
Rep: Reputation: 17
i am able to mount for reading

so i am thinking that i do have hfs plus & hfs utils built into my kernel

the drive mounts automagically
under /media/RightHereMacDrv

my difficulty is when I do a
ls -Rlh >> /home/buUser/bu_list/${jobNum}.txt
( where jobNum is a string read from standard in ..i type in the number.
to get a problem of not being able to go down into some dir

I wonder if i actually AM able to print those 'permission denied' dir to the tape
when i do a
sudo tar --totals -H pax -cvf /dev/st0 *

i suppose i could do a tell
sudo tar -tvf /dev/st0
and see
iether way my text listing is without all the info.

Last edited by zimbot; 02-16-2011 at 02:52 PM.
 
  


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
Cannot Write to HFS Plus USB External Hard Drive rjreding Linux - Newbie 4 04-17-2009 02:45 PM
Convert DVD image from HFS+ to Hybrid HFS/ISO Dark_Elf Linux - Software 0 10-24-2007 01:42 PM
Error mounting HFS+ volume: unable to find HFS+ superblock applewax Linux - General 3 05-31-2006 09:45 AM
How do i create HFS, HFS+ and RockRidge CD's? moore757 Linux - Software 2 06-19-2005 11:13 PM
Creating HFS part in Redhat for storage of mac files jang Linux - General 0 07-01-2003 11:44 PM


All times are GMT -5. The time now is 06:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration