3TB Disk

I bought an external 3TB disk and wanted to attach it to an old Airport Extreme. It wouldn’t see the disk. Turns out the disk is formatted for windows.

Okay, Diskutil to the rescue!

Not, I kept getting:

Running operation 1 of 1: Erase “Untitled”…
Unmounting disk
MediaKit reports not enough space on device for requested operation.
Operation failed…

A quick consultation of the Internet Oracle turned up:

MediaKit reports not enough space on device for requested operation.

Okay, but I wanted case sensitive, so:

loghyr:~ loghyr$ diskutil list
/dev/disk0 (internal, physical):
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk3 1000.0 GB disk0s2

/dev/disk1 (internal, physical):
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_APFS Container disk2 1000.0 GB disk1s2

/dev/disk2 (synthesized):
0: APFS Container Scheme – +1000.0 GB disk2
Physical Store disk1s2
1: APFS Volume EVO1 703.1 GB disk2s1

/dev/disk3 (synthesized):
0: APFS Container Scheme – +1000.0 GB disk3
Physical Store disk0s2
1: APFS Volume EVO2 157.6 GB disk3s1
2: APFS Volume Preboot 19.6 MB disk3s2
3: APFS Volume Recovery 506.6 MB disk3s3
4: APFS Volume VM 3.2 GB disk3s4

/dev/disk4 (external, physical):
0: GUID_partition_scheme *3.0 TB disk4
1: Apple_HFS 3.0 TB disk4s1

loghyr:~ loghyr$ diskutil unmountDisk force disk4
Forced unmount of all volumes on disk4 was successful

loghyr:~ loghyr$ sudo dd if=/dev/zero of=/dev/disk4 bs=1024 count=1024
1024+0 records in
1024+0 records out
1048576 bytes transferred in 0.452265 secs (2318499 bytes/sec)

Here is where I differ from the link:

loghyr:~ loghyr$ diskutil partitionDisk disk4 GPT JHFSX MacBackAttack 0g
Started partitioning on disk4
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk4s2 as Mac OS Extended (Case-sensitive, Journaled) with name MacBackAttack
Initialized /dev/rdisk4s2 as a 3 TB case-sensitive HFS Plus volume with a 229376k journal
Mounting disk
Finished partitioning on disk4
/dev/disk4 (external, physical):
0: GUID_partition_scheme *3.0 TB disk4
1: EFI EFI 209.7 MB disk4s1
2: Apple_HFS MacBackAttack 3.0 TB disk4s2


Getting static addresses in a Linux client under NAT and VMware Fusion

I had a client working fine enough with DHCP, but I really want to be able to
consistently ssh into it.

I looked at:

/Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf

and determined that I did not have to modify it to get a static address:

allow unknown-clients;
default-lease-time 1800;                # default is 30 minutes
max-lease-time 7200;                    # default is 2 hours

subnet netmask {
        option broadcast-address;
        option domain-name-servers;
        option domain-name localdomain;
        default-lease-time 1800;                # default is 30 minutes
        max-lease-time 7200;                    # default is 2 hours
        option netbios-name-servers;
        option routers;
host vmnet8 {
        hardware ethernet 00:50:56:C0:00:08;
        option domain-name-servers;
        option domain-name "";
        option routers;

I.e., I could use addresses -> for static assignment. (There is a bug in that statement, which is why I am writing this down.)

I always skip the first 20 addresses, so I assigned:

KinSlayer:flexfiles loghyr$ more /private/etc/hosts
# Host Database
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##       localhost broadcasthost
::1             localhost 
fe80::1%lo0     localhost    kinslayer   skull   kitty

skull to be

I modified skull’s /etc/sysconfig/network:

[root@skull linux]# more /etc/sysconfig/network
# Created by anaconda

and /etc/sysconfig/network-scripts/ifcfg-eno16777736

[root@skull linux]# more /etc/sysconfig/network-scripts/ifcfg-eno16777736

Disabled Network Mangler and turned on network:

service NetworkManager stop
chkconfig NetworkManager off
yum erase NetworkManager
service network start
chkconfig network on

I tested that I could ssh into and out of skull to my laptop. Fine, job done.

Only DNS wasn’t working the next day:

[root@skull linux]# more /etc/resolv.conf
# Generated by NetworkManager
domain localdomain
search localdomain

I checked online, and found I should be using Fine, job done.

Well then I couldn’t get to port 22 to get a project update.

Push comes to shove, I should have not assumed that is special
with this NAT. It is not the laptop as far as a DNS server and gateway is concerned.

So I changed this line in /etc/sysconfig/network-scripts/ifcfg-eno16777736:


And restarted the network – now my DNS change was gone (why does service network restart add in the line about “# Generated by NetworkManager” to /etc/resolv.conf ??).

Fine, fixed this line as well:


And restarted.

Now it all works, I think. 🙂

Getting mail clients to work with domains at Gmail

My work email is and is actually maintained at

Both and mutt have had a hard time configuring for it.


  1. Set it up as normal for a Google IMAP account.
  2. Then go to Mail -> Preferences, select the account.
  3. Then on the “Outgoing Mail Server (SMTP):”, select by left click the server
  4. and then “Edit SMTP Server List …”.
  5. Now, select the server again
  6. First you’ll want to change the “Description” to be “” (this is in the “Account Information”)
  7. Second you will want to select Advanced
  8. Third, change the “User Name:” from “” to be “”

It should work now

For mutt, I followed the directions at Consolify your Gmail with MUTT with the exception of the following line:

set smtp_url = "smtp://"

I modified it to be:

set smtp_url = "smtp://"


Enable the postfix Mail Transfer Agent

I want to use git’s mailing capabilities on OS X Lion to send out patches. How do I configure the MTA?

This Enable the postfix Mail Transfer Agent looks interesting, but old:

  loghyr:postfix root# head /etc/hostconfig 
  # This file is going away

But I think we can control all of this from the postfix(1).

  loghyr:postfix root# postconf -d | grep etc
  alias_database = hash:/etc/aliases
  alias_maps = hash:/etc/aliases
  config_directory = /etc/postfix
  sample_directory = /etc/postfix

I’m going to need a version for my home network and my vpn network:

loghyr:postfix root# cp
loghyr:postfix root# cp
loghyr:postfix root# cp

Edit the config files and start it:

loghyr:postfix root# cp
loghyr:postfix root# postfix start 
postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Data/mta
postfix/postfix-script: starting the Postfix mail system

How do I get it to stay launched? What’s the correctly way to make Postfix run permanently on Lion (not server)

I can switch my config files as needed.

Hmm, it works. I can’t show you, but it works.

The main thing I changed from the article I linked in was the relayhost:

relayhost = []

My setup assumes that I am connecting to an already working mail server in the domain. I.e., my iMac isn’t going to be receiving mail, just sending it.

Netgear WN3000RP and iPhone

Just had a weird experience with my Netgear “Universal WiFi Range Extender WN3000RP”.

It seemed pretty evident I wouldn’t be able to automatically add it to my Airport network, so I whipped out my iPhone and quickly connected to the NETGEAR_EXT network. And I quickly got it connected to my home network. I even told it to use the same password as my home network.

And just as quickly, it was not useable. I could not connect the iPhone to the new network and when I got out an old laptop, it wasn’t working either.

So, I got out my trusty paper clip and reset the Netgear box. And this time, as I was installing, I paid more attention. The issue turned out to be a nasty interaction between the iPhone browser automatically making the first character in the data entry be upper case and the Nethgear being case sensitive for the password. I don’t know that I’ve ever encountered the case sensitivity, but maybe I’m just super cautious with that normally.

I also can’t figure out why with an unobstructed view of my Airport Extreme Base Station I’m loosing 31% connectivity and through one wall, I’m seeing 48% loss.

VMware upgrade might blow away your networking

If you have customized your Fusion networking, be sure to make a copy of /Library/Application\ Support/VMware\ Fusion/networking to your home directory before upgrading.

And then copy it back and before you start up a VM, do sudo ./ –start in that directory.

Don’t whine about wget on OS X

OS X: Using curl instead of wget


loghyr:xdr thomas$ wget
-bash: wget: command not found
loghyr:xdr thomas$ curl -L > nfsv2.x
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 49940  100 49940    0     0  97348      0 --:--:-- --:--:-- --:--:--  140k