LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-06-2011, 09:18 PM   #1
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
just lost an HFS+ partition during rm, not sure why


I have a triple-boot MacBook Pro (booted with rEFIt) with GPT partitions for OS X 10.4, Slackware 13.37, HFS+ (case-sensitive, non-journaled), and a few others. This last partition provides a shared file system between Linux and OS X.

To make a long story short, I decided to enable Time Machine in OS X, after having to reinstall OS X today, so that next time I won't have to reinstall every package. I made the mistake of setting my backup volume to the shared partition; this is the partition I lost.

For those of you who aren't familiar, Time Machine does some sort of periodic incremental backup, probably like the old System Restore stuff for that other OS. It enabled journaling on the partition being backed up to without asking. I changed my mind while it was in the middle of the initial backup, and when I realized journaling had been turned on I "turned it off" from the command line with diskutil disableJournal /Volumes/volume.

OS X wouldn't let me delete the backup directory it created (or maybe I didn't try hard enough), so I did sudo rm -rvf stuff from Slackware. Partway through I got what I think was a kernel message about an invalid instruction, followed by a hardware hang. In retrospect, I should have copied the entire screen with GPM, but I didn't. I hung 3 more terminals trying to ls, umount, and reboot; I ended up doing a hard shutdown. OS X was unable to do anything to repair the file system.

I'm wondering if either rm or the driver choked on the filenames for the backup files since some of them had non-ASCII characters, or if something was left behind when I removed journaling (the .journal* files were gone, however.)

In any case, I erased the partition and restored the data from my own backup. I can't say I want to do this again, though! Should I not be relying on the Linux HFS+ driver? I actually rarely touch OS X; therefore, I rarely touch this partition with OS X.

Thanks!
Kevin Barry
 
Old 07-07-2011, 02:03 PM   #2
impert
Member
 
Registered: Feb 2009
Posts: 282

Rep: Reputation: 54
Hi,

Quote:
I actually rarely touch OS X; therefore, I rarely touch this partition with OS X.
Q 1: Do you really need a shared HFS+ partition at all? Maybe you could format it ext3/4 and just use a USB key for the odd file transfer?
Q 2: If you do need it, could you not use rsync for backups and forget about Time Machine?

Just my thoughts.
 
Old 07-07-2011, 02:51 PM   #3
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Original Poster
Rep: Reputation: Disabled
Thanks for the ideas. The main point of having the HFS+ partition is to make it as little work as possible to restart in OS X to check something, e.g. how a word-processor file opens or if I can compile something that I wrote to be portable. I also want to be able to open any of my files for reference while I'm in OS X.

I had to reinstall OS X because a certain proprietary program I need for work wouldn't install on a case-sensitive filesystem. Because of that I also have to reinstall all of the applications, but there weren't that many. I probably won't back up my OS X because I don't really care about it.

There might be a problem with directory modification in Slackware. I used mkdir, install -d, and svn ci, which resulted in some directory changes, some just date changes. The filesystem was clean before that, but when I checked the filesystem in OS X afterward I got several lines like
Code:
HasFolderCount flag needs to be set (id = 2911)
(It should be 0x10 instead of 0)
I looked up the files by inode (17 of them) and all were directories related to the commands I mentioned above.

I've been using this partition in Kubuntu for over a year without problems, but I have the hfsprogs package installed (HFS+ tools ported from OS X); I don't have those tools in Slackware. I wonder if the default HFS+ support for Slackware is just unstable. I haven't been able to find a Slackware version of hfsprogs and the Debian source package for it looks like it needs to be built on Debian. Of course, the Slackware installer has only supported GPT installs for a little over a year so I'm sure there aren't a lot of Slackers using HFS+.

update: I verified that the same directory error happens when using Kubuntu, so I'm sure that error is just the Linux driver.

Kevin Barry

Last edited by ta0kira; 07-08-2011 at 10:19 AM.
 
Old 07-15-2011, 03:51 PM   #4
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Original Poster
Rep: Reputation: Disabled
I never figured out what happened to my filesystem, but I downloaded the source and build script for hfsprogs from http://slackware.org.uk/salix/i486/1...ce/a/hfsprogs/ so now my Slackware64 13.37 has HFS+ and not just HFS. I had to install libbsd, which is available using slackpkg.
Kevin Barry
 
1 members found this post helpful.
  


Reply



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
Growing an HFS+ partition jgombos Linux - General 1 06-23-2009 12:30 AM
Need help resizing HFS+ partition Lizard66 Ubuntu 9 08-04-2008 11:30 AM
Error mounting HFS+ volume: unable to find HFS+ superblock applewax Linux - General 3 05-31-2006 08:45 AM
Resize a HFS+ partition leckie Linux - Hardware 0 07-16-2004 07:46 AM
creating an HFS partition scarr3d Linux - Software 0 02-19-2004 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:47 PM.

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
Open Source Consulting | Domain Registration