Previous 1 2 Next 24 Replies Latest reply: Dec 18, 2012 9:37 AM by este.el.paz Go to original post
  • Neville Hillyer Level 4 Level 4 (1,860 points)

    When you install applejack it is normally located at:

     

    /var/root/Library/Scripts/applejack.sh

     

    which is probably not found by  makewhatis

     

    Applejack is normally invoked by an alias at:

     

    /var/root/.profile

  • este.el.paz Level 1 Level 1 (90 points)

    @Neville:

     

    Thanks for your comments . . . in terms of further developments, seeing other comments here on the forum about AJ being "unresponsive" on 10.6.8 I took executive command and opened a bug report on the SF Applejack page . . . doesn't look like a huge amount of current discussion there so we'll have to see if anything transpires from that end . . . .

     

    @Linc:

     

    Alrighty, thanks also to your additional comments, between not having internet at home over the weekend and it seems like no email notification was made for your posts . . . anyway, so indeed it may be that any time spent trying to get AJ to work in SL is a "waste" . . . but, since as I also mentioned, AJ did recently get me a working computer, when nothing else was helping or solving the issue(s), so in that sense it's not a waste of time at all . . . .  But, if we were to eliminate all posts here on the forum that would be a potential waste of time . . . how many posts would be left?  And, perhaps searching for how to find the full path to get AJ may again be fruitless, but it was an attempt to follow the advice given by the first respondee to the post . . . I'm still interested in getting AJ to work in 10.6.8, it seems to be a handy utility to have available, whether it needs to be used for "routine" maintenance or not . . . .

     

    e.e.p.

  • Mark Jalbert Level 5 Level 5 (4,600 points)

    Thanks Neville, my response was a comment not a question. Makewhatis builds it databases from MANPATH or by default /usr/share/man. Here's a snipet from the postflight script in the applejack package--

     

    manLoc="$mountPoint/usr/share/man/man8"

    # Okay, I give up.

     

    cp "${packageLoc}/Contents/Resources/applejack.8" "$manLoc"
    /bin/chmod 0444 "${manLoc}/applejack.8";
    

    The postflight script also includes building the .profile in the root account. IMO, bizarre. Why not just append the PATH variable? Then again, why run a script with 2000 lines of code to do what may be 4 or 5 easy commands could do? If, you ever really needed to run those commands.

  • este.el.paz Level 1 Level 1 (90 points)

    Mark Jalbert wrote:

     

    Thanks Neville, my response was a comment not a question.

    The postflight script also includes building the .profile in the root account. IMO, bizarre. Why not just append the PATH variable? Then again, why run a script with 2000 lines of code to do what may be 4 or 5 easy commands could do? If, you ever really needed to run those commands.

    @Mark:

     

    I guess it would be educational to know what those 4 or 5 easy commands would be . . . but, I think one of the design parameters of AJ is dealing with situations where the system might not boot, etc.  In my case, on my iMac in 10.4.11 the computer kept crashing so much that at times I couldn't even keep the system up long enough to launch Terminal, even if I knew what to run I couldn't have . . . .  I at first was thinking that problems that were happening trying to get a Linux system work-able (not stone simple in the iMac) in a partition, and that KPs there were causing the OSX partition to crash.  I could boot to single user, type "applejack" and if I tried to run the "auto" part, it too would crash, so I had to type "expert" and by going that route it stayed working long enough to run through the "auto" part . . . and this was after unplugging the faulty FW port, still the system wouldn't run . . . AJ got the system able to run . . . .  Looks like there are other issues with the iMac that probably spell utimate demise, but, let's say if I had needed to back up my system then AJ would have let me do it . . . somehow on not FW options . . . .  Is that situation applicable to 10.6.8, that I can't yet know . . . .

     

    e.e.p.

  • Neville Hillyer Level 4 Level 4 (1,860 points)

    Mark Jalbert wrote:

     

    Makewhatis builds it databases from MANPATH or by default /usr/share/man.

     

    Thanks for that.

     

    I don't know how to get makewhatis to list applejack.

     

    I discovered a quarantine extended attribute on applejack (and memtest) man files so removed it with:

     

    sudo xattr -d com.apple.quarantine /usr/share/man/man8/applejack.8

     

    but

     

    sudo /usr/libexec/makewhatis

     

    still fails to list it although

     

    man applejack

     

    works OK.

     

    Any thoughts?

     

    Mark Jalbert wrote:


    The postflight script also includes building the .profile in the root account. IMO, bizarre. Why not just append the PATH variable?

     

    Perhaps because .profile has basic AJ instructions to be displayed in single user mode and it was a simple matter to include an alias to simplify user typing.

     

    Mark Jalbert wrote:

     

    why run a script with 2000 lines of code to do what may be 4 or 5 easy commands could do?

     

    You may have to use AJ in various modes to see that it does quite a lot with minimal user typing. There may be extra code to cope with several versions of OS X.

  • Mark Jalbert Level 5 Level 5 (4,600 points)

    Any thoughts?

    A problem with the man page header formatting. But let's take a step back and talk about the Standards and the design of a distribution and how the Standards are implemented. /usr/libexec is a placeholder for programs run by other programs. Since, makewhatis and the wrapper script makewhatis.local are located in this directory then the design of the distribution is to call them with another program or shell script. Your mileage may vary otherwise.

     

    Now applejack follows its own standard and expect that everything will work. Everything won't. Look at the comment "I give up" in one of my other posts. The script contains some revealing info in its comments. They are guessing on how the operating system works. There are muliple procedures that aren't necessary in order to reach certain goals and the scripting in general is far from efficient.

  • Neville Hillyer Level 4 Level 4 (1,860 points)

    Mark Jalbert wrote:


    A problem with the man page header formatting.

     

    You are probably correct. I did notice that although it displayed OK its first few lines were not the same as other man pages.

     

    My understanding is that AppleJack is the work of one person with advice from one or two others.

     

    Notwithstanding code efficiency it has worked very reliably for me on Tiger and Leopard and, as others have said, it can correct things that Disk Utility does not and, on occasions, get a non-booting Mac to boot.

     

    It is easy to remember to start a problem Mac in single user mode and then follow the on-screen AppleJack instructions.

  • este.el.paz Level 1 Level 1 (90 points)

    Gents:

     

    Can it be "fixed" . . . can it be made to work in 10.6???  That is the question . . . .

     

    e.e.p.

  • este.el.paz Level 1 Level 1 (90 points)

    @NH, et al:

     

    Agree with Mr Hillyer that AJ can be handy to have, still no definitve answers on how to perhaps get it running.  I just went to the AJ Bug Tracker site trying to see if any reply to my post there has been made by the inventer . . .  But, I found another thread where Mr Widholm replied to some issues about "fsck" and asked the OP to try to run "/sbin/fsck -f -n" to see what happens when it exits, and then to try "echo $" to look to see if output is 0 or something else . . . all this in single user.

     

    I restarted into single user and entered the recommended commands, and got "fsck is not recognized or is not a member of this association" . . . something like that . . . "resistance is futile" . . . was also mentioned . . . .  I tried to add "sudo" and got the same message . . . .

     

    One possible additional clue . . . before the "Shell" prompt there are a few lines that were run in CLI-- "blk 4--Harddisk-Alias (null) . . . probably a blk5 . . . and then "blk 6 -- Block device- Alias (null)" . . . .

     

    Seeing the word (null) repeated perhaps raises a question?  Or , no, "null" is normal in single user???

     

    e.e.p.

  • este.el.paz Level 1 Level 1 (90 points)

    este.el.paz wrote:

     

    Gents:

     

    Can it be "fixed" . . . can it be made to work in 10.6???  That is the question . . . .

     

    e.e.p.

    Gents:

     

    With help from some gents on another forum, the answer has been found.  By using cmd + S I was booting into the EFI shell due to rEFIt, selecting the OSX window there and then pressing "F2" brought a menu with "OSX in single user" as an option . . . picking that option let me run applejack in 10.6.8 . . . needed or not I can now do it.

     

    e.e.p.

Previous 1 2 Next