Activity › Forums › Apple OS X › How do I get a hard drive directory list of all data on HD under OSX Tiger??
-
How do I get a hard drive directory list of all data on HD under OSX Tiger??
Posted by Iamfoxman on July 26, 2005 at 10:12 pmHelp- have a huge amount of data on ~3 Terabites of hard drives & I need to list all of the data on each one of them to keep track of my files… Newbee on mac- Help!!!
Mark Sloan replied 20 years, 9 months ago 2 Members · 4 Replies -
4 Replies
-
Mark Sloan
July 29, 2005 at 12:42 amWhat information do you want off of those Hard Drives? Just file paths and names?
-
Iamfoxman
July 29, 2005 at 8:03 pmYes- drive/folder/file name in some type of text file. Need to be able to re-organize data after I have the text list to sort in several ways.
-
Mark Sloan
August 3, 2005 at 11:51 pmDo you know UNIX at all? Using the ls command you can output the paths and files of everything on a drive really easily to a text file. As for ordering the data… if you get familiar with grep or maybe a text tool, you can “extract” lines out of that file that you need.
But getting the paths and names into a file is pretty easy.
-
Mark Sloan
August 5, 2005 at 12:06 amI never heard back from you but maybe others would want to know…
Open the terminal.
Type the following:
cd /VolumesThis will change directories (cd) to the directory that lists all volumes on your machine
then type:
lsThis will list (ls) everything in the Volumes folder. You will then change directory again (cd) to the volume you want to index (if the volume has spaces in the name, type the first couple of letters of the volume name and then tab to autocomplete):
cd volume_nameCheck to make sure that this looks right:
lsNext, we will run the code to put everything on that disk into a text file:
ls -FR > /Users/yourusername/Desktop/filename.txtThis tells the list to put in paths and search through all directories and then output it > to the filename you specify on your desktop. Let me know if you need anything more complicated than this.
Reply to this Discussion! Login or Sign Up