There are two ways to locate your iTunes Library Persistent ID on your iPhone, this is usefull when you want to sync your iPhone to multiple iTunes libraries , not just your home one. Especially when you don't have access to your home computer at the moment, or it has crashed or cannot be recovered and you need to find your Library Persistant ID, this allows you to avoid restoring your iPhone, and avoid losing all your music,contacts,photos,apps,notes,calandars,bookmar ks,ect,ect. from there you can back up and sync your iPhone to any new computer and pick up where you left off
I will explain both methods here.
you will need to install a Hex Editor on your computer (ex. HexEdit, UltraEdit)
Obviously You will need a jailbroken iPhone to do this, Also you will need to install Open SSH from Cydia. If you do not know how to SSH into your iPhone I will not explain how to do this, they are many other tutorials for this.
Method 1:
SSH into the file; private/var/mobile/Media/iTunes_Control/iTunes and open the file called "iTunesCDB" with your Hex Editor. The Library Persistent ID is written in reverse on the third line down (20) in the middle eight sets of characters (Row 20 - Column 4,5,6,7,8,9,a,b). Sets of double characters stay the same, just reverse the overall order of the sets from first to last (say for example if your Hex Editor displayed "b4 10 63 cc c5 57 ec 7f" then your Library Persistent ID would actually be "7FEC57C5CC6310B4")
Method 2:
SSH into the file; private/var/mobile/Media/iTunes_Control/iTunes and open the file called "iTunesPrefs" with your Hex Editor. The Library Persistent ID is written in reverse on the seventh or eleventh line down (60 or a0) in the first eight sets of characters (Row 60 or a0 - Column 0,1,2,3,4,5,6,7). Sets of double characters stay the same, just reverse the overall order of the sets from first to last (say for example if your Hex Editor displayed "b4 10 63 cc c5 57 ec 7f" then your Library Persistent ID would actually be "7FEC57C5CC6310B4")
This actually works great if you follow the steps correctly
Good Luck!