Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hfsck nightmare, please help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
cj10111
n00b
n00b


Joined: 12 Apr 2005
Posts: 15

PostPosted: Sat Aug 06, 2005 5:30 pm    Post subject: hfsck nightmare, please help Reply with quote

I use an external firewire HFS+ formatted hard drive with Gentoo. It always tells me that the file system is unclean and will be mounted read only, even thought the OS X disk utility says everything is A-OK..

In a grand moment of stupidity, I decide to try hfsck on it. It says it found some errors and I told it to go ahead and fix them. Now the drive is hosed. Neither OS X or Linux can mount it. Disk Warrior doesn't know what to do with it. Now I'm missing two years worth of backups and I learned the hard way that hfsck is not for HFS+ partitions.

Is there anything I can do to salvage my data?

Please help. Thanks in advance.


Last edited by cj10111 on Sat Aug 06, 2005 6:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Aug 06, 2005 6:01 pm    Post subject: Reply with quote

Quote:
HFSCK NIGHTMARE!!! PLEASE HELP!!!
That is called SHOUTING and is not considered polite, so please change the topic title to lowercase letters.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
bpfowler
n00b
n00b


Joined: 10 Aug 2005
Posts: 13
Location: West Riding

PostPosted: Wed Aug 10, 2005 8:27 am    Post subject: Reply with quote

nixnut wrote:
Quote:
HFSCK NIGHTMARE!!! PLEASE HELP!!!
That is called SHOUTING and is not considered polite, so please change the topic title to lowercase letters.


Well, shouting (or at least screaming) seems quite appropriate in the circumstances.

I believe that the kernel hfsplus driver does not clear the requisite consistency flag on unmounting.

See
http://damn.org.za/blog/using-the-ipod-on-linux/
http://lists.debian.org/debian-powerpc/2004/08/msg00325.html
http://lists.debian.org/debian-powerpc/2005/04/msg00064.html
http://www.ipodlinux.org/Installation_from_Linux_Hfsplus
http://www.ussg.iu.edu/hypermail/linux/kernel/0405.2/1240.html
http://pag.csail.mit.edu/~adonovan/hacks/ipod.html

and

http://lists.terrasoftsolutions.com/pipermail/yellowdog-general/2004-July/015059.html

I am surprised that hfsck did any harm to your filesystem, as it should have checked the HFS wrapper (and reported it as good).

Did you by any chance use Norton? The pre HFS+ versions of Norton are not to be advised.

The standard OS X tools probably won't do much good in this situation, and unfortunately, if Disk Warrior is not working in your hands then you may need to look for professional help.

The only time that I have seen Disk Warrior not work is when I had changed the size of a partition without relocating the Auxilliary Disk Header Block; and a sorry concatenation of events ensued.

I suspect that part or all of the first 63 sectors (the Disk Header, Partition Map and Drivers) are severely damaged, possibly zeroed out.

Since the data are probably in large part still there, if you can just get Disk Warrior to work on the disk, you should get most, possibly all, of your files back.

Be careful at this stage not to make things worse.
Back to top
View user's profile Send private message
bpfowler
n00b
n00b


Joined: 10 Aug 2005
Posts: 13
Location: West Riding

PostPosted: Wed Aug 10, 2005 10:25 am    Post subject: Reply with quote

Also see https://forums.gentoo.org/viewtopic-t-222741.html .
Back to top
View user's profile Send private message
cj10111
n00b
n00b


Joined: 12 Apr 2005
Posts: 15

PostPosted: Wed Aug 10, 2005 5:12 pm    Post subject: Reply with quote

Thanks for the reply and the suggestions. I'll try them out.
Back to top
View user's profile Send private message
halogen64
n00b
n00b


Joined: 24 Apr 2005
Posts: 17

PostPosted: Wed Aug 10, 2005 5:22 pm    Post subject: Reply with quote

Hey, it sounds like you managed to mess up the structure of your disk try this hpfchk --rebuild-tree and then never use any of the hfs tools again!!

yeah I know I told you this in person, but if it works, mark it as solved.
Back to top
View user's profile Send private message
ZZamboni
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 96
Location: Zurich, Switzerland

PostPosted: Sun Jun 04, 2006 12:07 pm    Post subject: Reply with quote

Just for future record, I had the same problem. I ran hfsck on an HFS+ filesystem and hosed it. hpfsck, hpmount would not even touch it because it didn't have the correct filesystem type anymore.

I managed to restore my filesystem by using the fsck.hfsplus program ported from Darwin, as described in http://gentoo-wiki.com/HOWTO_hfsplus. I used the "Newer x86/PPC Linux port from OS X 10.4.3 / Darwin 8.3", and had to run fsck.hfsplus on my filesystem several times. The first time it said the volume couldn't be repaired, but on successive runs it succeeded, and once it finished, I could again mount the filesystem.

Now to back up, reformat as ReiserFS and get rid of HFS+ forever on that machine....
Back to top
View user's profile Send private message
jp10hp
Apprentice
Apprentice


Joined: 29 Feb 2004
Posts: 180
Location: Milano

PostPosted: Thu Jun 08, 2006 3:00 pm    Post subject: Reply with quote

same big problem!
I used the "Newer x86/PPC Linux port from OS X 10.4.3 / Darwin 8.3" but I obtain only this:

Code:

** /dev/hda4
** Checking HFS Plus volume.
   Invalid B-tree node size
(3, 0)
** Volume check failed.


cj10111 did you solve this nightmare? any suggestion?
Back to top
View user's profile Send private message
jp10hp
Apprentice
Apprentice


Joined: 29 Feb 2004
Posts: 180
Location: Milano

PostPosted: Thu Jun 08, 2006 3:29 pm    Post subject: Reply with quote

Simply incredible!!!
I had lost the hope but trying again my partition it has been repaired with the fsck.hfsplus command

I am incredibly pleasing to ZZamboni!!! :D :D :D
Back to top
View user's profile Send private message
ZZamboni
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jan 2004
Posts: 96
Location: Zurich, Switzerland

PostPosted: Thu Jun 08, 2006 4:26 pm    Post subject: Reply with quote

jp10hp wrote:
I had lost the hope but trying again my partition it has been repaired with the fsck.hfsplus command


The same thing happened to me - it failed the first time, but succeeded when I ran it again. Glad it helped!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum