Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Repairing HFS system using PPC live CD
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
kunaldua
n00b
n00b


Joined: 19 Jan 2005
Posts: 8

PostPosted: Wed Jan 19, 2005 4:16 pm    Post subject: Repairing HFS system using PPC live CD Reply with quote

Hi

What do you know... I'm in trouble... and no backup of course - trying to repair my Mac OS partition. Unable to mount it or run fsck on it.

Boot into Linux Live PPC CD and run...

Code:

fsck -f -n -v /dev/hda3

Gives me it isn't an ext2 partition - which it obviously isn't. It's HFS of course.

Code:

fsck -f -n -v -t hfs /dev/hda3

Gives me:
fsck: fsck.hfs: not found
fsck: Error 2 while executing fsck.hfs for /dev/hda3

Seems fsck is not finding the right files to be able to repair a HFS partition. Or maybe I'm something wrong.

Any ideas... post here or IM me... thanks!

PS - I know /dev/hda3 is my main Mac OS partition thanks to fdisk.
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Wed Jan 19, 2005 4:46 pm    Post subject: Reply with quote

There is no fsck for HFS. You could boot off a Mac OS install CD and repair your HFS partition from there with Disk First Aid (or whatever is the name of the utility), I am not aware of any way to do it from Linux.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
kunaldua
n00b
n00b


Joined: 19 Jan 2005
Posts: 8

PostPosted: Wed Jan 19, 2005 4:51 pm    Post subject: Reply with quote

bruda wrote:
There is no fsck for HFS. You could boot off a Mac OS install CD and repair your HFS partition from there with Disk First Aid (or whatever is the name of the utility), I am not aware of any way to do it from Linux.


The problem's beyond Disk Repair/ First Aid from Mac OS Install CD. So what now? Thanks...
Back to top
View user's profile Send private message
kunaldua
n00b
n00b


Joined: 19 Jan 2005
Posts: 8

PostPosted: Wed Jan 19, 2005 4:58 pm    Post subject: Reply with quote

Found this...

http://docs.hp.com/en/B2355-90681/fsck_hfs.1M.html

It's probably something which ships with HP UNIX or something. Wondering if something similar is available on the CD. Not necessarily fsck but some other way to repair a HFS partition maybe. This page lists HFS as one of the file systems that can be repaired:

http://www.osnews.com/story.php?news_id=6627

Thanks again...
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Wed Jan 19, 2005 6:14 pm    Post subject: Reply with quote

You may want to try hfsck (for HFS, part of sys-fs/hfsutils) or hpfsck (for HFS+, part of sys-fs/hfsplusutils) then, as the case may be. I have never used the thing but this is the only option I can find. If the problem is beyond First Aid and such you may simply be out of luck though.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
kunaldua
n00b
n00b


Joined: 19 Jan 2005
Posts: 8

PostPosted: Wed Jan 19, 2005 7:03 pm    Post subject: Reply with quote

hfsck -n -v /dev/hda3

Is that the correct syntax?

Usage: hfsck [-v] [-n] [-a] devicepath [partition-no]

I get a "/dev/hda3: Input/ output error"
------------

BTW I managed to mount the system as read only - somehow - what's the best available method of copying files quickly to a windows machine (that is all I have as spare) - rcp? Some way I can burn files to a CD directly from the live CD command prompt? If I'm not mistaken ssh access might be available to this live cd booted machine - that may be worth trying.
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Wed Jan 19, 2005 7:49 pm    Post subject: Reply with quote

kunaldua wrote:
hfsck -n -v /dev/hda3
Is that the correct syntax?

I don't know, I have never used the thing. The HFS+ counterpart is a bit more explicit, isn't your partition HFS+?
kunaldua wrote:
BTW I managed to mount the system as read only - somehow - what's the best available method of copying files quickly to a windows machine

Start the SSH daemon (which is available on the live CD) and use a SCP client such as WinSCP. This looks to me like the most straightforward solution.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
kunaldua
n00b
n00b


Joined: 19 Jan 2005
Posts: 8

PostPosted: Wed Jan 19, 2005 8:26 pm    Post subject: Reply with quote

bruda wrote:
isn't your partition HFS+?


No... It's HFS

sshd is up and running... thanks... will report back later with results.. :)
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Wed Jan 19, 2005 8:40 pm    Post subject: Reply with quote

kunaldua wrote:
The problem's beyond Disk Repair/ First Aid from Mac OS Install CD. So what now? Thanks...

But is it also beyond DiskWarrior, TechTool Pro, DataRescue X or Norton DiskDoctor? For HFS partitions I would definetly place higher trust in MacOS utilities than in tools using the linux drivers. For oldschool HFS, Norton used to be able to work wonders in classic Mac OS...

And whenever you get a chance I would highly recommend you upgrade to HFS+ - I could not imagine living with a static 32k block size ever again :roll:
Back to top
View user's profile Send private message
kunaldua
n00b
n00b


Joined: 19 Jan 2005
Posts: 8

PostPosted: Wed Jan 19, 2005 9:07 pm    Post subject: Reply with quote

DiskBreaker wrote:
But is it also beyond DiskWarrior, TechTool Pro, DataRescue X or Norton DiskDoctor?


I do not have any of those those apps or another Mac - the problem is in my Powerbook, so I'm just trying to make the best of whatever tools I have at the moment.
Back to top
View user's profile Send private message
kunaldua
n00b
n00b


Joined: 19 Jan 2005
Posts: 8

PostPosted: Thu Jan 20, 2005 12:20 pm    Post subject: Reply with quote

Update: Managed to extract all the critical data - mails, documents etc. Last time I put 14 years of work in one basket ;)

Now to go for a boot CD that make attempt to fix my partition. Any of these or any other products offer a trial boot CD, which can boot up my system and tell me if it can fix it so that I can proceed to buy it? No use spending money on a solution that won't help me out.

Thanks a ton...
Back to top
View user's profile Send private message
kunaldua
n00b
n00b


Joined: 19 Jan 2005
Posts: 8

PostPosted: Thu Jan 20, 2005 12:39 pm    Post subject: Reply with quote

DiskBreaker wrote:
And whenever you get a chance I would highly recommend you upgrade to HFS+ - I could not imagine living with a static 32k block size ever again :roll:


I don't think the block size on my partition was 32K - I remember noting that empty files took 4 KB on my partition when my OS X installation was working fine. So maybe it is HFS+ after all - if the block size is a sure enough indicator. The only reason I said it was HFS was because running fdisk under Linux while troubleshooting my disk told me so - maybe it sees no difference between HFS and HFS+. You'll have to excuse my ignorance on this, because I'm a recent Mac convert - I am learning more and more about the internals as I go along.

This is/ was my first experience troubleshooting a Mac and boy do I wish it was doing so of a little less sevre problem. Anyways it's been a nice couple of days ;)
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Thu Jan 20, 2005 12:56 pm    Post subject: Reply with quote

kunaldua wrote:
Any of these or any other products offer a trial boot CD, which can boot up my system and tell me if it can fix it so that I can proceed to buy it?

Sorry, the only one with a demo version is DataRescue:
http://www.prosofteng.com/products/downloadcenter.php
With the demo version you can recover only one file per session (but you can see a list of all files that could be recovered with the full version). If you want it on a bootable CD, you will need another Mac with OS X and the free program BootCD which you can use to create a bootable CD.

But since you seem to have already sucessfully recovered all your files, I guess you won't need that after all :)

kunaldua wrote:
I remember noting that empty files took 4 KB on my partition when my OS X installation was working fine

If you are running OS X, the filesystem you are using is HFS+.
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