I need to move a large volume to a new raid server that's PC formatted. However I have a couple paths and filenames that are interrupting this process.
I would just like to know how to use the terminal to:
- Locate the targeted external drive
- Then search that drive for paths/files that are over 130 characters
Can anyone help?
I know how to search for long paths find " . -type f -name '?????…*' ", just not sure how to target my external drive.
Best Answer
The external drive is mounted under
/Volumes
, runls /Volumes
to see the exact name.Afterwards you can use
to list all files where path and filename combined are longer than 130 characters.
PS: This will not work for file/path names containing new lines and similar stuff (which usually isn't a problem) PPS: If your volume name contains spaces you need to wrap it in
""
->find "/Volumes/LaCie - BRYT" -print ...