• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to eject a USB Hard drive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to eject a USB Hard drive


  • Subject: Re: How to eject a USB Hard drive
  • From: "Elango C" <email@hidden>
  • Date: Fri, 18 Jan 2008 12:05:48 +0530

Duane,

I tried with "unmountdisk" but the device is not getting removed from Mac.  Can you
give me some code reference for this DiskArbitration to proceed.

--
Elango C

On Jan 18, 2008 11:28 AM, Duane Murphy <email@hidden> wrote:
--- At Fri, 18 Jan 2008 11:18:24 +0530, Elango C wrote:

>Hello,
>
>I am currently trying to eject the USB Drive by writing a small
>carbon application. Can you guys can give me some idea.
>
>FYI: I tried calling the Diskutil using System call
>
>system ("diskutil eject disk1");
>
>but the volume present in the disk1 gets unmounted but the device
>is not getting ejected. ( i.e. After doing this If I open the Diskutilty
>application I am able see the USB HDD entry) but if I click on the
>eject button from the Diskutilty then the entries are disappeared from
>the diskutility app.
>
>Dear guys please help me on this issue.

Try unmountdisk instead of eject.

You can do all this from the DiskArbitration framework as well.

 ...Duane

--
"Design is an interplay of science and art - the instinct of using
exactly the right methods and resources that the application requires."
 - Bernard Friedland, "Control System Design"





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to eject a USB Hard drive
      • From: "Duane Murphy" <email@hidden>
References: 
 >How to eject a USB Hard drive (From: "Elango C" <email@hidden>)
 >Re: How to eject a USB Hard drive (From: "Duane Murphy" <email@hidden>)

  • Prev by Date: Re: Creating universal binary on PowerPC with 10.4.11?
  • Next by Date: Re: How to eject a USB Hard drive
  • Previous by thread: Re: How to eject a USB Hard drive
  • Next by thread: Re: How to eject a USB Hard drive
  • Index(es):
    • Date
    • Thread