
23 Oct
2024
23 Oct
'24
3:43 p.m.
From: CAREY SCHUG via talk <talk@gtalug.org>
careyschug@OptiPlex-7050:~$ file /dev/sde /dev/sde: block special (8/64)
That tells you what /dev/sde is. You might also want to know what /dev/sde contains: file --special-files /dev/sde
careyschug@OptiPlex-7050:~$ blkid /dev/sde
Too bad that silently does nothing. I bet $? is zero too.
careyschug@OptiPlex-7050:~$ sudo blkid /dev/sde [sudo] password for careyschug:
That kind of suggests that there is no ID. Odd. I never use that command so my expectations are naive. How about sudo blkid --probe /dev/sde How about lsblk -f /dev/sde There is a chance that that only lists things that the kernel has analyzed. (Another command that I never use.)