[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Have blkid reports on newly added devices



On Thu, Aug 4, 2011 at 4:32 PM, T o n g <mlist4suntong@yahoo.com> wrote:
> On Thu, 04 Aug 2011 15:00:34 -0400, Tom H wrote:
>>>
>>> My newly inserted sdc1 has already been mounted, yet blkid can't report
>>> on it:
>>>
>>> $ df | grep sdc
>>> /dev/sdc1              3862528    428384   3434144  12% /mnt/camera
>>>
>>> $ blkid | grep sdc || echo no found
>>> no found
>>
>> Bypass the blkid cache with "-c /dev//null".
>
> $ blkid -p /dev/sdc1
> error: /dev/sdc1: No such file or directory
>
> $ blkid -c /dev//null | grep sdc || echo no found
> no found
>
> $ blkid -c /dev//null -p /dev/sdc1
>
> $ blkid -p /dev/sdc1
>
> $
>
> i.e., now no output. NB the /dev/sdc1 was mounted using
>
>  mount LABEL=xxx ...
>
> What do you get? Different than mine?

Sorry "/dev/null" not "/dev//null".

What's the output of "blkid -c /dev/null /dev/sdc1" as root?


Reply to: