Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / General / Hardware / November 2006



Tip: Looking for answers? Try searching our database.

External Hard Drive Oddities

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TaliesinSoft - 15 Nov 2006 16:16 GMT
I'm using a MacBook Pro with OS X 10.4.8.

I have three external hard drives connected via a Firewire 800 chain. The
drives (size information taken from Disk Utility), their respective
partitions, and their order in the chain are:

    1) a 465.8 GB LaCie Group SA (4 partitions)

         Week 1 Backup

         Week 2 Backup

         Week 3 Backup

         Week 4 Backup

    2) a 149.1 GB LaCie Group SA (1 partition)

         Nightly Backup

    3) a 467.5 GB LaCie Group SA (1 partition)

         Video

When I log on to an account all of the partitions automatically mount.
Because I normally would like them unmounted I have an Automator workflow
that waits an appropriate time so that the mounting is complete and then
ejects the partitions. The first oddity is that the Video partition is not
ejected by the workflow but it can be ejected directly via the Finder. I also
have two Applescripts, "Mount External" and "Unmount External" that will
mount or unmount all of the external partitions, and these scripts work fine.

The second oddity is that for reasons unbeknownst, at least to me, the
partitions will be randomly dropped from Spotlight's privacy list, sometimes
a single partition at a time and sometimes perhaps several not necessarily
even on the same drive. Once a partition has been removed from the privacy
list it cannot be restored until its contents are erased via Disk Utility.

Any thoughts, suggestions, or mantras will be most appreciated!

Signature

James Leo Ryan ..... Austin, Texas ..... taliesinsoft@mac.com

Bob Vogel - 15 Nov 2006 16:49 GMT
> When I log on to an account all of the partitions automatically mount.
> Because I normally would like them unmounted I have an Automator workflow
[quoted text clipped - 3 lines]
> have two Applescripts, "Mount External" and "Unmount External" that will
> mount or unmount all of the external partitions, and these scripts work fine.

Here's a silly question: Why do you find it neccessary to unmount them
at all?
AES - 15 Nov 2006 18:27 GMT
> Here's a silly question: Why do you find it neccessary to unmount them
> at all?

Speaking only for myself, not for the OP:

1)  My desktop machine is a laptop that I often unplug and take with me,
either to other outside locations or even inside my house.  If I forget
to dismount the external HDs before unplugging the FW cable, I get lots
of angry warnings (and if I remember, it's one more little tedious task,
just when I'm rushing off somewhere).

2)  Less clutter on desktop.

3)  Less chance of accidentally doing something unintended to the HDs
when working on and switching between a bunch of open apps and windows.

4)  Less power consumption, maybe longer life(??), if external HDs are
spun down when not in use.
TaliesinSoft - 15 Nov 2006 18:47 GMT
>> Here's a silly question: Why do you find it neccessary to unmount them
>> at all?
[quoted text clipped - 14 lines]
> 4)  Less power consumption, maybe longer life(??), if external HDs are
> spun down when not in use.

As the OP I'll stand in agreement with items 1 through 4 and will add item 5

5) Limit searches to just the internal drive and not to drives used only for
backups.

Signature

James Leo Ryan ..... Austin, Texas ..... taliesinsoft@mac.com

Michelle Steiner - 15 Nov 2006 17:17 GMT
> When I log on to an account all of the partitions automatically
> mount.

That's what I do not understand.  On my system, the only time a disk
automatically mounts is when I start or restart the computer.  Logging
off an account and logging on to another or the same account does not
mount anything.  Maybe it's because my external drive has only one
partition, but I don't see how that would affect it.

> I also have two Applescripts, "Mount External" and "Unmount External"
> that will mount or unmount all of the external partitions, and these
> scripts work fine.

I would like to see the Mount External script, if you don't mind.

Signature

Support the troops:  Bring them home ASAP.

TaliesinSoft - 15 Nov 2006 18:43 GMT

> In article <0001HW.C1809974003844F0B019F94F@news.supernews.com>,
> TaliesinSoft <taliesinsoft@mac.com> wrote:
[quoted text clipped - 6 lines]
> anything.  Maybe it's because my external drive has only one partition,
> but I don't see how that would affect it.

I just now ran a quick test, logging off of an account and then logging back
onto the same account and the external partitions, which were not mounted
prior to the logging off, mounted.  

>> I also have two Applescripts, "Mount External" and "Unmount External"
>> that will mount or unmount all of the external partitions, and these
>> scripts work fine.
>
> I would like to see the Mount External script, if you don't mind.

The two AppleScripts, "Mount External" and "Unmount External" work. What
doesn't work is the Automator workflow that should do the same thing as the
"Unmount External" script.

Here's the "Mount External" script:

====================

tell application "Finder"
    if not (exists the disk "Nightly Backup") then
        try
            do shell script "diskutil mount `disktool -l | grep 'Nightly Backup' | sed
's/.*\\(disk[0-9s]*\\).*/\\1/'`"
        end try
    end if
    if not (exists the disk "Week 1 Backup") then
        try
            do shell script "diskutil mount `disktool -l | grep 'Week 1 Backup' | sed
's/.*\\(disk[0-9s]*\\).*/\\1/'`"
        end try
    end if
    if not (exists the disk "Week 2 Backup") then
        try
            do shell script "diskutil mount `disktool -l | grep 'Week 2 Backup' | sed
's/.*\\(disk[0-9s]*\\).*/\\1/'`"
        end try
    end if
    if not (exists the disk "Week 3 Backup") then
        try
            do shell script "diskutil mount `disktool -l | grep 'Week 3 Backup' | sed
's/.*\\(disk[0-9s]*\\).*/\\1/'`"
        end try
    end if
    if not (exists the disk "Week 4 Backup") then
        try
            do shell script "diskutil mount `disktool -l | grep 'Week 4 Backup' | sed
's/.*\\(disk[0-9s]*\\).*/\\1/'`"
        end try
    end if
    if not (exists the disk "Video") then
        try
            do shell script "diskutil mount `disktool -l | grep 'Video' | sed
's/.*\\(disk[0-9s]*\\).*/\\1/'`"
        end try
    end if
end tell

====================

Here's the "Unmount External" script:

====================

tell application "Finder"
    if (exists the disk "Nightly Backup") then
        try
            eject "Nightly Backup"
        end try
    end if
    if (exists the disk "Week 1 Backup") then
        try
            eject "Week 1 Backup"
        end try
    end if
    if (exists the disk "Week 2 Backup") then
        try
            eject "Week 2 Backkup"
        end try
    end if
    if (exists the disk "Week 3 Backup") then
        try
            eject "Week 3 Backup"
        end try
    end if
    if (exists the disk "Week 4 Backup") then
        try
            eject "Week 4 Backup"
        end try
    end if
    if (exists the disk "Video") then
        try
            eject "Video"
        end try
    end if
end tell

====================

Thanks for responding!

Signature

James Leo Ryan ..... Austin, Texas ..... taliesinsoft@mac.com

Michelle Steiner - 15 Nov 2006 19:38 GMT
> Here's the "Mount External" script:

Thanks.  Here is one that someone gave me on the applescript users email
list:

set D to do shell script "diskutil list" -- gets a list of everything
thats live and connected whether mounted or not.
set E to last word of last paragraph of D
do shell script "diskutil mount " & E -- mounts it.

It works for one disk; don't know about multiple volumes on the disk,
though.

Signature

Support the troops:  Bring them home ASAP.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.