<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Mac-Os-X on Details...</title>
    <link>https://www.deepreflect.net/tags/mac-os-x/</link>
    <description>Recent content in Mac-Os-X on Details...</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Copyright © 2003 - 2026 Leonardo Rizzi</copyright>
    <lastBuildDate>Tue, 30 Jun 2026 03:28:29 +0200</lastBuildDate>
    <atom:link href="https://www.deepreflect.net/tags/mac-os-x/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Recovery HFS partition table</title>
      <link>https://www.deepreflect.net/2012/03/25/recovery-hfs-partition-table/</link>
      <pubDate>Sun, 25 Mar 2012 15:48:13 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=1175</guid> 
      <description>&lt;p&gt;First think, scan your damage disk with a tool like &amp;ldquo;testdisk&amp;rdquo; (&lt;a href=&#34;http://www.cgsecurity.org/wiki/TestDisk&#34;&gt;http://www.cgsecurity.org/wiki/TestDisk&lt;/a&gt;) look for lost partitions, unfortunately HFS is not fully supported by this great tool, then you need to use pdisk or other partition software.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; Disk /dev/rdisk3 - 1000 GB / 931 GiB - CHS 121601 255 63
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; Partition Start End Size in sectors
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &amp;gt;P HFS 262208 1953525151 1953262944
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In my case, I&amp;rsquo;ve used pdisk directly on OS X:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>First think, scan your damage disk with a tool like &ldquo;testdisk&rdquo; (<a href="http://www.cgsecurity.org/wiki/TestDisk">http://www.cgsecurity.org/wiki/TestDisk</a>) look for lost partitions, unfortunately HFS is not fully supported by this great tool, then you need to use pdisk or other partition software.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> Disk /dev/rdisk3 - 1000 GB / 931 GiB - CHS 121601 255 63
</span></span><span style="display:flex;"><span> Partition Start End Size in sectors
</span></span><span style="display:flex;"><span> &gt;P HFS 262208 1953525151 1953262944
</span></span></code></pre></div><p>In my case, I&rsquo;ve used pdisk directly on OS X:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> leobook4-w:~ root# pdisk /dev/rdisk3
</span></span><span style="display:flex;"><span> pdisk: No valid block 1 on &#39;/dev/rdisk3&#39;
</span></span><span style="display:flex;"><span> Edit /dev/rdisk3 -
</span></span><span style="display:flex;"><span> Command (? for help): i
</span></span><span style="display:flex;"><span> A physical block is 512 bytes:
</span></span><span style="display:flex;"><span> A logical block is 512 bytes:
</span></span><span style="display:flex;"><span> size of &#39;device&#39; is 1953525168 blocks (512 byte blocks):
</span></span><span style="display:flex;"><span> new size of &#39;device&#39; is 1953525168 blocks (512 byte blocks)
</span></span><span style="display:flex;"><span> Command (? for help): c
</span></span><span style="display:flex;"><span> First block: 262208
</span></span><span style="display:flex;"><span> Length in blocks: 1953262944
</span></span><span style="display:flex;"><span> Name of partition: recover\_leo
</span></span><span style="display:flex;"><span> Command (? for help): w
</span></span><span style="display:flex;"><span> Writing the map destroys what was there before. Is that okay? \[n/y\]: y
</span></span><span style="display:flex;"><span> The partition table has been altered!
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> Command (? for help): q
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Mac OS X - Time Machine network backup without Time Capsule</title>
      <link>https://www.deepreflect.net/2009/11/03/time-machine-network-backup-without-time-capsule/</link>
      <pubDate>Tue, 03 Nov 2009 04:44:39 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=738</guid> 
      <description>&lt;p&gt;From OS X 10.5 (Leopard) Apple introduced Time Machine: a great combination of rsync/rsnapshot and a beautiful user interface.
Time Machine works in two modes: 1. local volume on local area or 2. Time Capsule over network.
Now I don&amp;rsquo;t wanna buy another box with apple logo over it for much $$$ when I have a lot of file servers on my network.&lt;/p&gt;
&lt;p&gt;Now I explain a few hoops to get this system to work:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>From OS X 10.5 (Leopard) Apple introduced Time Machine: a great combination of rsync/rsnapshot and a beautiful user interface.
Time Machine works in two modes: 1. local volume on local area or 2. Time Capsule over network.
Now I don&rsquo;t wanna buy another box with apple logo over it for much $$$ when I have a lot of file servers on my network.</p>
<p>Now I explain a few hoops to get this system to work:</p>
<p>First: persuade Time Machine to see the SMB share as a Time Machine destination by activating the unsupported network drives feature by this console command:</p>
<p>`</p>
<h1 id="defaults-write-comapplesystempreferences-tmshowunsupportednetworkvolumes-1">defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</h1>
<p>`</p>
<p>Second: set up the file server with SMB dedicated share to Time Machine, create an appropriate disk image locally (see below) and copy it into share.</p>
<p>To create the disk image, you&rsquo;ll need to find out two pieces of information about the computer you want to backup: its Computer Name and its Ethernet ID (Ethernet MAC address). The Computer Name is the one that you set in the Sharing System Preferences pane. For example my is &ldquo;LeoBook2&rdquo;.</p>
<p>You can get the Ethernet ID by this command (use wired mac nic even if you&rsquo;ll be using wifi connection): `</p>
<h1 id="ifconfig-en0--grep-ether--sed-sg--sed-sether">ifconfig en0 | grep ether | sed s/://g | sed s/ether//</h1>
<p>`</p>
<p>Compose image name following this syntax:
Computer Name, followed by an underscore, followed by the Ethernet ID without the colons, followed by .sparsebundle (Ex. &ldquo;LeoBook2_000d9358ca26.sparsebundle&rdquo;).</p>
<p>Now go to Terminal and type the following commands:</p>
<blockquote>
<p>`# DISK_IMAGE_NAME=&ldquo;LeoBook2_000d9358ca26.sparsebundle&rdquo;</p>
<h1 id="disk_size200000">DISK_SIZE=200000</h1>
<h1 id="hdiutil-create--library-spud--megabytes-disk_size--fs-hfsj--type-sparsebundle--volname-disk_image_name-disk_image_name">hdiutil create -library SPUD -megabytes $DISK_SIZE -fs HFS+J -type SPARSEBUNDLE -volname &ldquo;$DISK_IMAGE_NAME&rdquo; &ldquo;$DISK_IMAGE_NAME&rdquo;`</h1>
</blockquote>
<p>After you&rsquo;ve run this command, you should end up with a disk image in your Home. It looks like a single file, but it&rsquo;s actually a directory (just like a application). Don&rsquo;t forget to copy this disk image to the appropriate share on your server. Just dragging and dropping from the Finder should work fine.</p>
<p>Now you are able to use the share as Time Machine backup volume.</p>
<p>Have a fun
Leo</p>
]]></content:encoded>
    </item>
    <item>
      <title>Mac OS X - Cisco VPN Client</title>
      <link>https://www.deepreflect.net/2009/04/27/mac-os-x-cisco-vpn-client/</link>
      <pubDate>Mon, 27 Apr 2009 02:16:09 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=473</guid> 
      <description>&lt;p&gt;If you are running Cisco&amp;rsquo;s VPN Client on Mac OSX, you might be familiar with (or tormented by) &amp;ldquo;Error 51: Unable to communicate with the VPN subsystem&amp;rdquo;. The simple fix is to quit VPN Client, open a Terminal window, (Applications -&amp;gt; Utilities -&amp;gt; Terminal) and type the following from root user:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# /System/Library/StartupItems/CiscoVPN/CiscoVPN restart&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Stopping Cisco Systems VPN Driver
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kextunload: unload kext &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;System&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;Library&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;Extensions&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;CiscoVPN&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;kext succeeded
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Starting Cisco Systems VPN Driver
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;kextload: &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;System&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;Library&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;Extensions&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;CiscoVPN&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;kext loaded successfully
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>If you are running Cisco&rsquo;s VPN Client on Mac OSX, you might be familiar with (or tormented by) &ldquo;Error 51: Unable to communicate with the VPN subsystem&rdquo;. The simple fix is to quit VPN Client, open a Terminal window, (Applications -&gt; Utilities -&gt; Terminal) and type the following from root user:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-gdscript3" data-lang="gdscript3"><span style="display:flex;"><span><span style="color:#75715e"># /System/Library/StartupItems/CiscoVPN/CiscoVPN restart</span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>Stopping Cisco Systems VPN Driver
</span></span><span style="display:flex;"><span>kextunload: unload kext <span style="color:#f92672">/</span>System<span style="color:#f92672">/</span>Library<span style="color:#f92672">/</span>Extensions<span style="color:#f92672">/</span>CiscoVPN<span style="color:#f92672">.</span>kext succeeded
</span></span><span style="display:flex;"><span>Starting Cisco Systems VPN Driver
</span></span><span style="display:flex;"><span>kextload: <span style="color:#f92672">/</span>System<span style="color:#f92672">/</span>Library<span style="color:#f92672">/</span>Extensions<span style="color:#f92672">/</span>CiscoVPN<span style="color:#f92672">.</span>kext loaded successfully
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Mac OS X - root user</title>
      <link>https://www.deepreflect.net/2008/11/02/mac-os-x-root-user/</link>
      <pubDate>Sun, 02 Nov 2008 03:27:43 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=199</guid> 
      <description>&lt;p&gt;Abilitare l&amp;rsquo;utente di root nelle varie versioni dell&amp;rsquo;os X&lt;/p&gt;
&lt;p&gt;10.5&lt;/p&gt;
&lt;p&gt;Dal tool  &amp;ldquo;Directory Utility&amp;rdquo; che si trova in Applications - Utility, sbloccare le impostazioni con il lucchettino, poi dal menu &amp;ldquo;Edit&amp;rdquo; c&amp;rsquo;e&amp;rsquo; la comoda voce &amp;ldquo;Enable Root User&amp;rdquo; dopodiche&amp;rsquo; settare la password.&lt;/p&gt;
&lt;p&gt;10.2 - 10.3 - 10.4&lt;/p&gt;
&lt;p&gt;Dal tool  &amp;ldquo;NetInfo Manager&amp;rdquo; che si trova in Applications - Utility, sbloccare le impostazioni con il lucchettino, poi dal menu &amp;ldquo;Security&amp;rdquo; c&amp;rsquo;e&amp;rsquo; la voce &amp;ldquo;Enable Root User&amp;rdquo; dopodiche&amp;rsquo; settare la password.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Abilitare l&rsquo;utente di root nelle varie versioni dell&rsquo;os X</p>
<p>10.5</p>
<p>Dal tool  &ldquo;Directory Utility&rdquo; che si trova in Applications - Utility, sbloccare le impostazioni con il lucchettino, poi dal menu &ldquo;Edit&rdquo; c&rsquo;e&rsquo; la comoda voce &ldquo;Enable Root User&rdquo; dopodiche&rsquo; settare la password.</p>
<p>10.2 - 10.3 - 10.4</p>
<p>Dal tool  &ldquo;NetInfo Manager&rdquo; che si trova in Applications - Utility, sbloccare le impostazioni con il lucchettino, poi dal menu &ldquo;Security&rdquo; c&rsquo;e&rsquo; la voce &ldquo;Enable Root User&rdquo; dopodiche&rsquo; settare la password.</p>
<p>10.0 - 10.1</p>
<p>Dal tool  &ldquo;NetInfo Manager&rdquo; che si trova in Applications - Utility, sbloccare le impostazioni con il lucchettino, poi dal menu &ldquo;Security&rdquo;, &ldquo;Domain&quot;c&rsquo;e&rsquo; la voce &ldquo;Enable Root User&rdquo; dopodiche&rsquo; settare la password.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Mac OS X - your network have been changed by another application</title>
      <link>https://www.deepreflect.net/2008/10/15/mac-os-x-your-network-have-been-changed-by-another-application/</link>
      <pubDate>Wed, 15 Oct 2008 14:33:48 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=162</guid> 
      <description>&lt;p&gt;Dopo l&amp;rsquo;aggiornamento sulla sicurezza 2008-006 versione del sistema 10.4.11 e&amp;rsquo; insorto un problema nelle preferenze di sistema, sezione network:&lt;/p&gt;
&lt;p&gt;All&amp;rsquo;apertura si verifica questo errore &amp;ldquo;your network have been changed by another application&amp;rdquo; non reversibile con gli strumenti messi a disposizione per intenderci il tasto &amp;ldquo;OK&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Questo succede per dei monivi di sicurezza dato che le preferenze di rete interagiscono in continuazione con il portachiavi di sistema, vedi per le password PPP, le chiavi Airport e altre configurazioni di accesso.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Dopo l&rsquo;aggiornamento sulla sicurezza 2008-006 versione del sistema 10.4.11 e&rsquo; insorto un problema nelle preferenze di sistema, sezione network:</p>
<p>All&rsquo;apertura si verifica questo errore &ldquo;your network have been changed by another application&rdquo; non reversibile con gli strumenti messi a disposizione per intenderci il tasto &ldquo;OK&rdquo;</p>
<p>Questo succede per dei monivi di sicurezza dato che le preferenze di rete interagiscono in continuazione con il portachiavi di sistema, vedi per le password PPP, le chiavi Airport e altre configurazioni di accesso.</p>
<p>La cosa piu&rsquo; sbrigativa sarebbe tenere le configurazioni bloccate con il lucchettino, ma risulta molto scomodo dover autenticare ogni modifica.</p>
<p>Come soluzione definitiva si puo&rsquo; procedere in questo modo:
Cercare la seguente cartella</p>
<p><code>/Library/Preferences/SystemConfiguration</code></p>
<p>Cancellare i seguenti file:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>com.apple.airport.preferences.plist
</span></span><span style="display:flex;"><span>NetworkInterfaces.plist
</span></span><span style="display:flex;"><span>preferences.plist
</span></span><span style="display:flex;"><span>com.apple.nat.plist
</span></span></code></pre></div><p>Dopo aver fatto questo e&rsquo; necessario cancellare tutto il database del portachiavi di sistema, o almeno la definizione delle password legate ai servizi di rete. Attenzione i dati di autenticazione dovranno essere reiseriti al fine di ricostruire con i giusti privilegi il db.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Mac OS X - Verbose Boot</title>
      <link>https://www.deepreflect.net/2008/10/05/mac-os-x-verbose-boot/</link>
      <pubDate>Sun, 05 Oct 2008 20:51:32 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=110</guid> 
      <description>&lt;p&gt;Be l&amp;rsquo;os x anche se propio non sembra un sistema unix a causa di tutta questa bella grafica, in realta&amp;rsquo; lo e&amp;rsquo; fino all&amp;rsquo;osso, quindi nel caso si volesse visualizzare il verbose mode del boot ecco come fare:&lt;/p&gt;
&lt;p&gt;Da terminale in modalita&amp;rsquo; root:&lt;/p&gt;
&lt;p&gt;Per abilitare:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# nvram boot-args=&amp;quot;-v&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Per disabilitare:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# nvram boot-args=&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Per la versione del firmware:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# nvram -p&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Be l&rsquo;os x anche se propio non sembra un sistema unix a causa di tutta questa bella grafica, in realta&rsquo; lo e&rsquo; fino all&rsquo;osso, quindi nel caso si volesse visualizzare il verbose mode del boot ecco come fare:</p>
<p>Da terminale in modalita&rsquo; root:</p>
<p>Per abilitare:</p>
<p><code># nvram boot-args=&quot;-v&quot;</code></p>
<p>Per disabilitare:</p>
<p><code># nvram boot-args=</code></p>
<p>Per la versione del firmware:</p>
<p><code># nvram -p</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>Mac OS X - Flush DNS Cache</title>
      <link>https://www.deepreflect.net/2008/10/05/mac-os-x-flush-dns-cache/</link>
      <pubDate>Sun, 05 Oct 2008 20:37:58 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=108</guid> 
      <description>&lt;p&gt;Ecco i comandi vari ed eventuali sempre utili, ovviamente eseguiti da terminale:&lt;/p&gt;
&lt;p&gt;Leopard 10.5&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# dscacheutil -flushcache&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Tiger 10.4&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# lookupd -flushcache&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Ecco i comandi vari ed eventuali sempre utili, ovviamente eseguiti da terminale:</p>
<p>Leopard 10.5</p>
<p><code># dscacheutil -flushcache</code></p>
<p>Tiger 10.4</p>
<p><code># lookupd -flushcache</code></p>
]]></content:encoded>
    </item>
  </channel>
</rss>
