How do people keep track of their books

I have a circle of friends who I lend my books to and I have had some go missing. How do other people track their books, what they have , which friend has what etc?