Menu

#46 install on non-startup volume [Was: Disk already corrupted]

1.4.x
open
2
2012-10-09
2007-03-20
Anonymous
No

My mac mini ppc under tiger 10.4.8 is already in trouble. The hard disk filesystem is healthy per disk utility, and I can boot to command line and to Single user mode.

Problem: I need to install AppleJack now. I have the dmg on the internal drive [also on a zip drive] but I can't seem to mount, open, or install it from the command line.

Any help would be gratefully received.

Thanks.

Jud

Discussion

  • Kristofer Widholm

    Logged In: YES
    user_id=583959
    Originator: NO

    If your system is able to get network access, you can download the script from the internet.

    First, see if your system can get up and running in single user mode.
    $ mount -uw /
    $ sh /etc/rc

    if that doesn't crash your system, you're pretty lucky.

    Now, get the script
    $ curl http://applejack.sourceforge.net/applejack.sh.txt >applejack.sh
    Make the script executable
    $ chmod 700 applejack.sh

    Run applejack
    $ ./applejack.sh

    If you can get your system back on its feet, install AppleJack the normal way, and delete the script you downloaded. That script is never guaranteed to be the latest version of AppleJack.

    Good luck. I don't mean to suggest, by the way, that there is no way to mount a dmg from single user mode and run installer. There probably is; I just don't know it, and am probably no better at googling than you are.

     
  • Kristofer Widholm

    Logged In: YES
    user_id=583959
    Originator: NO

    Just found this, maybe it will help:

    [from https://guinness.cs.stevens-tech.edu/~jschauma/UsingUnix/tod.html ]
    2005-11-18 -- Mac OS X: Remotely installing .dmg
    Mac OS X packages and software updates in the form of a .dmg disk image can be installed remotely via the hdiutil(1) and installer(8) commands. For example:

    % hdiutil mount image.dmg
    % cd /Volumes/image
    % installer -pkg pkgname.pkg -target /
    % cd /
    % hdiutil unmount /Volumes/image

     
  • Kristofer Widholm

    Logged In: YES
    user_id=583959
    Originator: NO

    So, to document this further, say you want to install AppleJack and you don't have it.
    mount for read and write access
    $ mount -uw /
    load subsystem, so hdiutil and network is up. (We can only hope your OS is healthy enough to survive this)
    $ sh /etc/rc
    grab the disk image (skip if you already have the disk image. also, this url might change, so you might need to look for a new location of an AppleJack image)
    $ curl http://superb-east.dl.sourceforge.net/sourceforge/applejack/AppleJack-1.4.3.dmg >AppleJack-1.4.3.dmg

    If you were successful with that, or if you already have the disk image, continue...
    $ hdiutil mount AppleJack-1.4.3.dmg #make sure to replace version numbers if necessary
    $ cd /Volumes/AppleJack-1.4.3 #again make sure to replace version numbers to reflect your downloaded version
    $ installer -pkg 'AppleJack Distribution.mpkg' -target /
    $ cd /
    $ hdiutil unmount /Volumes/AppleJack-1.4.3

    That should do it! (Tested on PPC iMac running Mac OS 10.4.8)

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • web1racer

    web1racer - 2007-05-08

    Logged In: YES
    user_id=1787142
    Originator: NO

    i've read this and i only have applejack on cd written by a pc. how do i grab the applejack image from the dvd drive? also i have 10.3.2.

     
  • Kristofer Widholm

    Logged In: YES
    user_id=583959
    Originator: NO

    I don't know how you would copy a disk image from your cd to your mac. Have you tried the other ways in this thread of getting AppleJack to your startup disk?

     
  • web1racer

    web1racer - 2007-05-08

    Logged In: YES
    user_id=1787142
    Originator: NO

    i'm still having problems. i put applejack on a removable usb drive. then when i do mount -uw / and sh /etc/rc the response is /etc/rc: line 28: $1: unbound variable

    what do i have to have on the usb drive to startup from it? i can move os9 system from a powermac to the usb drive using a 100mzip drive and my pc, but i don't know what all to move or if this will even work

     
  • Kristofer Widholm

    Logged In: YES
    user_id=583959
    Originator: NO

    I am sorry, but beyond the help I have already pointed you to, I don't have any more knowledge of how to do this. You might find more stuff online than what I pointed you to.

     
  • Kristofer Widholm

    Logged In: YES
    user_id=583959
    Originator: NO

    sduttonusa writes:

    I've had partial success installing AppleJack via the Terminal. (My goal is to
    be able to install AppleJack onto a computer that has suddenly become
    unbootable due to a system or security update, etc.). Ideally, I'd like to be
    able to install AppleJack booting from the Tiger Install DVD.

    I say partial success because not all the components of AppleJack are being
    installed. By typing:

    /Volumes/"Internal PB G4"/usr/sbin/installer -pkg "/Volumes/
    AppleJack-1.4.3/AppleJack Distribution.mpkg" -target /Volumes/"Internal PB
    G4"/

    . . . I'm given the message that the installation was successful. But typing
    "applejack" in single user mode brings the response "command not found."

    I've gone through the folders to see what's been installed and I find that
    installer placed the applejack.sh script in the proper place, but nothing else.
    The file called applejack.8 wasn't installed in /usr/share/man/man8/ . . . and
    I suspect that the root user's profile (/var/root/.profile) wasn't modified in
    order to create a friendly usage reminder message and alias at startup in
    single user mode.

    So for some reason, the pkg is not properly installing all the components of
    AppleJack. Any idea how to correct this?

     
  • Kristofer Widholm

    Logged In: YES
    user_id=583959
    Originator: NO

    sduttonusa,

    The man page and .profile are installed by an installer package postflight script. somehow just running the installer doesn't seem to be running the postflight script. Maybe there's a command line switch for /usr/sbin/installer that would also tell it to run all preflight and postflight scripts?

     
  • Kristofer Widholm

    Logged In: YES
    user_id=583959
    Originator: NO

    I've revised the preflight and postflight scripts to try to fix the root volume only issue outlined is the below comment. Test distribution disk image can be grabbed here: http://theapotek.com/teknotes/downloads/AppleJack-1.4.3.1.dmg. Please try it out, and let me know if it works better. Thanks.

     
  • sduttonusa

    sduttonusa - 2007-06-19

    Logged In: YES
    user_id=1817712
    Originator: NO

    Thank you again for your great support. I will test it as soon as I return from vacation (two weeks).

    Steve

     
  • sduttonusa

    sduttonusa - 2007-06-20

    Logged In: YES
    user_id=1817712
    Originator: NO

    Success! Your changes worked great. I've sent you an email with the details.

    Thank you very, very much.

    Steve

     
  • Kristofer Widholm

    Logged In: YES
    user_id=583959
    Originator: NO

    I got a chance to try out the latest AppleJack (in relation to installing via the
    Terminal). Success!! . . . using both installers. I've documented everything
    for the benefit of others. Here it is:

    • Put AppleJack on a USB Stick
    • Boot from the Mac OS Installation Disk
    • With the installer up, open Terminal and copy AppleJack from USB stick to
      your hard drive

      cp /Volumes/"YOUR_USB_STICK"/AppleJack-1.4.3.dmg /
      Volumes/"YOUR_HARD_DRIVE"/

    • Mount the .dmg file

      hdiutil attach /Volumes/"YOUR_HARD_DRIVE"/AppleJack-1.4.3.dmg

    • Run the update

      /Volumes/"YOUR_HARD_DRIVE"/usr/bin/open /Applications/Utilities/
      Installer.app /Volumes/AppleJack-1.4.3/"AppleJack Distribution.mpkg"

    OR

     /Volumes/"YOUR_HARD_DRIVE"/usr/sbin/installer -pkg /Volumes/
    

    AppleJack-1.4.3/"AppleJack Distribution.mpkg" -target /
    Volumes/"YOUR_HARD_DRIVE"/

    All commands are to be on one line before hitting enter. The backslash "\"
    key can be used to signify that whatever follows is to be taken literally. For
    example, you can use the backslash key to signify a space, as in Macintosh\
    Internal\ HD. One can also use quotes to deal with spaces: "Macintosh
    Internal HD". It's helpful to check the exact name of the AppleJack Volume
    that will be mounted from the .dmg file (as updates might introduce name
    changes). Available volumes can be discovered from the Terminal by typing
    "ls /Volumes".

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.