A cute CLI trick for emergencies

Robert Nichols rnicholsNOSPAM at comcast.net
Thu Dec 8 13:16:19 UTC 2011


On 12/08/2011 04:17 AM, Bryn M. Reeves wrote:
> On 12/07/2011 02:18 PM, Robert Nichols wrote:
>> An issue with both the fdisk and blkid solutions is that they will spin
>> up every sleeping drive on your system.  Looking at the output from dmesg
>> won't do that.
>>
>
> That's only true of fdisk -l (with no other arguments). The blkid
> command operates out of a cache so will only spin up drives if run with
> -p (low-level probe). This also allows users without read access to a
> block device to retrieve label, file system type&  UUIDs.

When I run blkid (with no arguments) as root it waits while a standby
drive spins up.  If blkid is run by a non-root user there is indeed
no spin up.

util-linux-ng-2.16.2-9

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.



More information about the users mailing list