Essa página (esse site na verdade) só existe para eu mesmo não esquecer esses comandos que existem pra facilitar a vida mas eu acabo sempre precisando caçar eles na internet.
MAC
Para realizar um comando basta abrir o app Terminal, copiar e colar um dos comandos abaixo e apertar ENTER.
Esconder arquivo/pasta
chflags hidden [arrasta e solta o arquivo/pasta]
Revelar arquivo/pasta
chflags nohidden [arrasta e solta o arquivo/pasta]
DICA: No finder aperte as teclas de atalho Command + Shift + Ponto (.) para visualizar arquivos escondidos. Repita o atalho para reverter.
Limpar arquivos ._ duplicados
dot_clean [arrasta e solta o pasta/drive]
Formatar PenDrive
Found the answer – diskutil at the command line.
My USB drive shows up in “diskutil list” as:
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *62.7 GB disk4
1: 0xEF 9.2 MB disk4s2
I think the problem is the partitioning scheme. To erase the device completely, I just ran:
diskutil eraseDisk free EMPTY /dev/disk4
diskutil list
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *62.7 GB disk4
1: EFI EFI 209.7 MB disk4s1
Much better… it now has a partitioning scheme MacOs can work with. At this stage, you won’t see it showing in the Disk Utility program, but fortunately formatting it is trivial. I decided to use ExFAT, and name the drive USB64:
diskutil eraseDisk ExFAT USB64 /dev/disk4
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *62.7 GB disk4
1: EFI EFI 209.7 MB disk4s1
2: Microsoft Basic Data USB64 62.5 GB disk4s2
And now I have a fully working USB drive again!
Leave a reply