Re: Problem with blkid

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

 



On Tue, Mar 22, 2011 at 10:44:35PM +0300, Sergey Gusarov wrote:
> Hello all.
>
> With blkid utility i can find the FAT label. If the label is written  
> entirely English characters, then everything is fine. Using the Windows  
> you can set the label in any other language. I know this may not be  
> welcome, but nevertheless it is possible and could do so many people.  
> Particular, using Windows XP, I made the label "ÐÐÐÐÐÐÑÐÑÐÐ"(in Russian,  
> encoded in IBM 866 at disk). In Linux with blkid 2.19 i got here is an  
> unreadable output:
> /dev/sdc1: LABEL="M-^JM-^NM-^LM-^LM-^EM-^MM-^RM-^PM-^HM-^I"  
> UUID="E659-39B0" TYPE="vfat"

This is probably correct label, but all non-printable ASCII characters
using '^' and M- notation. This format is also used by "cat -v".

Try
    blkid -p -o udev <device>

for udev we use more sane format (\hex).

> I have no idea how i can decode such label.
> Such label also refuse to accept other programs(cfdisk, dosfslabel).  
> Nevertheless, i found one that can give me the correct value of the  
> label - it's blkid from busybox. It looks like this:
> /dev/sdc1: LABEL="ïïïïïïïïï" UUID="E659-39B0"

 it seems that busy box prints the label in the raw format, 

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux