Following on from the answer to Can you make OSX mount just certain partitions when you connect an external HDD?, all of the sites that I have checked (CNET, OSXDaily, Apple Support community threads) say that you have to use Disk Utility (or the command line
diskutil info /dev/disk<X>s<Y>) to find the UUID.
Is there a command line equivalent that will give me this information, which is not
diskutil? In particular, one that will work in single user mode?
Why diskutil does not work
In single user mode (at least on Mountain Lion) after running:
/sbin/fsck -fy /sbin/mount -uw /
diskutil info disk0s5
gives the following error
Unable to run because unable to use the DiskManagement framework. Common reasons include, but are not limited to, the DiskArbitration framework being unavailable due to being booted in single user mode.
My issue is that I have a dying partition on my internal disk, which only holds an out of date Snow Leopard OS, but is slowing down my Mac (unbearably), as the console is (repeatedly) reporting:
kernel: disk0s5: I/O error.
I no longer boot into Snow Leopard as I boot Mountain Lion which is on an external FireWire disk, so I would like to leave the Snow Leopard partition unmounted, using the line
UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none hfs rw,noauto
However, to obtain the UUID of the faulty partition, I have to open up Disk Utility and have the faulty partition mounted, which is a torturously slow process (it takes Disk Utility about twenty minutes to open).
TL;DR - Can I obtain the UUID of the internal partition, when booting into single user mode of an OS stored on a partition which is on an external FW disk?