VFAT Volume Labels

Fredrik Nilsson jymdman at home.se
Thu Jan 6 05:32:41 PST 2005


On tor, 2005-01-06 at 12:35 +0100, Kay Sievers wrote:
> On Thu, 2005-01-06 at 02:42 -0700, joeny at softhome.net wrote:
> > Hi all, 
> > 
> > I have FAT32 partitions on my drive and upon adding the appropriate
> > lines to fstab, I was able to successfully mount the partitions. 
> > 
> > Now under Gnome, double-clicking on the desktop Computer icon, the
> > partitions shows up as the following: 
> > 
> > 10G Hard Drive
> > 20G Hard Drive
> > 9.5G Hard Drive 
> > 
> > Mounting them resulted to: 
> > 
> > 10G Hard Drive: 10G Media
> > 20G Hard Drive: 20G Media
> > 9.5G Hard Drive: 9.5G Media 
> > 
> > Wasn't it supposed to display the drive's volume labels after the
> > colons? The labels are properly set under Windows 98SE. 
> > 
> > On my computer at home, I get something like '??ty??_?K?' as the
> > volume label on one of my FAT32 partition? But if I removed the label
> > (LABEL.EXE), I get NO NAME. Any suggestions on how to fix this? 
> > 
> > Thanks! 
> > 
> > Joeny 
> > 
> > AMD Duron 1100
> > Fedora Core 3
> > Kernel 2.6.9-1.681
> > Gnome 2.8.0
> > hal-0.4.2-1.FC3
> > udev-039-10.FC3.6
> 
> Please post the relevant output of:
>   hald --daemon=no --verbose=yes
> 
> it should print something like that:
> 
> 12:34:02.922 [I] linux/volume_id/volume_id.c:2017: called with size=0x3e6b000
> 12:34:02.922 [I] linux/volume_id/volume_id.c:202: get buffer off 0x3e50000, len 0x800
> 12:34:02.924 [I] linux/volume_id/volume_id.c:237: read seekbuf off:0x3e50000 len:0x800
> 12:34:02.931 [I] linux/volume_id/volume_id.c:241: got 0x800 (2048) bytes
> 12:34:02.931 [I] linux/volume_id/volume_id.c:202: get buffer off 0x400, len 0x800
> 12:34:02.933 [I] linux/volume_id/volume_id.c:213: read sbbuf len:0xc00
> 12:34:02.940 [I] linux/volume_id/volume_id.c:216: got 0xc00 (3072) bytes
> 12:34:02.940 [I] linux/volume_id/volume_id.c:202: get buffer off 0x0, len 0x800
> 12:34:02.942 [I] linux/volume_id/volume_id.c:202: get buffer off 0x1200, len 0x200
> 12:34:02.943 [I] linux/volume_id/volume_id.c:213: read sbbuf len:0x1400
> 12:34:02.951 [I] linux/volume_id/volume_id.c:216: got 0x1400 (5120) bytes
> 12:34:02.951 [I] linux/volume_id/volume_id.c:202: get buffer off 0x0, len 0x200
> 12:34:02.953 [I] linux/volume_id/volume_id.c:906: sector_size 0x200
> 12:34:02.954 [I] linux/volume_id/volume_id.c:907: sectors_per_cluster 0x1
> 12:34:02.956 [I] linux/volume_id/volume_id.c:911: reserved 0x20
> 12:34:02.957 [I] linux/volume_id/volume_id.c:916: sect_count 0x1f358
> 12:34:02.959 [I] linux/volume_id/volume_id.c:921: fat_length 0x3d8
> 12:34:02.960 [I] linux/volume_id/volume_id.c:926: dir_size 0x0
> 12:34:02.962 [I] linux/volume_id/volume_id.c:930: cluster_count 0x1eb88
> 12:34:02.963 [I] linux/volume_id/volume_id.c:987: root dir cluster 2
> 12:34:02.965 [I] linux/volume_id/volume_id.c:998: next cluster 2
> 12:34:02.966 [I] linux/volume_id/volume_id.c:1001: cluster offset 0xfa000
> 12:34:02.968 [I] linux/volume_id/volume_id.c:202: get buffer off 0xfa000, len 0x200
> 12:34:02.969 [I] linux/volume_id/volume_id.c:237: read seekbuf off:0xfa000 len:0x200
> 12:34:02.976 [I] linux/volume_id/volume_id.c:241: got 0x200 (512) bytes
> 12:34:02.976 [I] linux/volume_id/volume_id.c:1010: expected entries 0x10
> 12:34:02.978 [I] linux/volume_id/volume_id.c:1024: found ATTR_VOLUME id in root dir
> 12:34:02.979 [I] linux/block_class_device.c:108: volume.fsusage = 'filesystem'
> 12:34:02.981 [I] linux/block_class_device.c:111: volume.fstype = 'vfat'
> 12:34:02.982 [I] linux/block_class_device.c:114: volume.fsversion = 'FAT32'
> 12:34:02.984 [I] linux/block_class_device.c:117: volume.uuid = 'E845-7A89'
> 12:34:02.985 [I] linux/block_class_device.c:119: volume.label = 'VRFY'
> 
> Thanks,
> Kay

Hi,

I have the same problem with my Lacie 250 GB usb harddrive.
On my XP box the name is Lacie, but on my ubuntu box the name is NO
NAME.

My System:

Ubuntu hoary
hal-0.4.2
udev-0.050
kernel-2.6.9

Output from hald in attached textfile.


/Fredrik

-------------- next part --------------
14:27:52.159 [I] linux/osspec.c:1553: ==========================================
14:27:52.159 [I] linux/osspec.c:1554: ==== hotplug_counter is now 0
14:27:52.159 [I] linux/osspec.c:1555: ==========================================
14:27:52.159 [I] linux/osspec.c:1452: Processing event around first hotplug with SEQNUM=884
14:27:52.159 [I] linux/osspec.c:1345: action=add seqnum=884 subsystem=block sysfs_path=/sys/block/sda/sda1
14:27:52.159 [I] linux/osspec.c:1187: dev_file=/dev/sda1 is for udi=/org/freedesktop/Hal/devices/temp/54
14:27:52.159 [I] linux/osspec.c:1193: .udev.class_name = block
14:27:52.160 [I] linux/block_class_device.c:636: volume.num_blocks = 490223412
14:27:52.160 [I] linux/block_class_device.c:651: volume.block_size = 512
14:27:52.160 [I] linux/block_class_device.c:655: volume.size = 250994386944
14:27:52.160 [I] linux/volume_id/volume_id.c:2017: called with size=0x3a706e6800
14:27:52.160 [I] linux/volume_id/volume_id.c:202: get buffer off 0x3a706d0000, len 0x800
14:27:52.160 [I] linux/volume_id/volume_id.c:237: read seekbuf off:0x3a706d0000 len:0x800
14:27:52.187 [I] linux/volume_id/volume_id.c:241: got 0x800 (2048) bytes
14:27:52.188 [I] linux/volume_id/volume_id.c:202: get buffer off 0x400, len 0x800
14:27:52.188 [I] linux/volume_id/volume_id.c:213: read sbbuf len:0xc00
14:27:52.198 [I] linux/volume_id/volume_id.c:216: got 0xc00 (3072) bytes
14:27:52.198 [I] linux/volume_id/volume_id.c:202: get buffer off 0x0, len 0x800
14:27:52.199 [I] linux/volume_id/volume_id.c:202: get buffer off 0x1200, len 0x200
14:27:52.199 [I] linux/volume_id/volume_id.c:213: read sbbuf len:0x1400
14:27:52.213 [I] linux/volume_id/volume_id.c:216: got 0x1400 (5120) bytes
14:27:52.213 [I] linux/volume_id/volume_id.c:202: get buffer off 0x0, len 0x200
14:27:52.214 [I] linux/volume_id/volume_id.c:906: sector_size 0x200
14:27:52.214 [I] linux/volume_id/volume_id.c:907: sectors_per_cluster 0x40
14:27:52.214 [I] linux/volume_id/volume_id.c:911: reserved 0x20
14:27:52.214 [I] linux/volume_id/volume_id.c:916: sect_count 0x1d383734
14:27:52.214 [I] linux/volume_id/volume_id.c:921: fat_length 0xe9c4
14:27:52.214 [I] linux/volume_id/volume_id.c:926: dir_size 0x0
14:27:52.214 [I] linux/volume_id/volume_id.c:930: cluster_count 0x74dd8e
14:27:52.214 [I] linux/volume_id/volume_id.c:987: root dir cluster 2
14:27:52.214 [I] linux/volume_id/volume_id.c:998: next cluster 2
14:27:52.214 [I] linux/volume_id/volume_id.c:1001: cluster offset 0x1a75000
14:27:52.214 [I] linux/volume_id/volume_id.c:202: get buffer off 0x1a75000, len 0x8000
14:27:52.214 [I] linux/volume_id/volume_id.c:237: read seekbuf off:0x1a75000 len:0x1000
14:27:52.238 [I] linux/volume_id/volume_id.c:241: got 0x1000 (4096) bytes
14:27:52.238 [I] linux/volume_id/volume_id.c:1010: expected entries 0x400
14:27:52.238 [I] linux/volume_id/volume_id.c:1015: end of dir
14:27:52.239 [I] linux/block_class_device.c:108: volume.fsusage = 'filesystem'
14:27:52.239 [I] linux/block_class_device.c:111: volume.fstype = 'vfat'
14:27:52.239 [I] linux/block_class_device.c:114: volume.fsversion = 'FAT32'
14:27:52.239 [I] linux/block_class_device.c:117: volume.uuid = '6853-5BA9'
14:27:52.239 [I] linux/block_class_device.c:119: volume.label = 'NO NAME'
14:27:52.239 [I] linux/volume_id/volume_id.c:2017: called with size=0x3a706e6800
14:27:52.239 [I] linux/volume_id/volume_id.c:202: get buffer off 0x0, len 0x200
14:27:52.239 [I] linux/volume_id/volume_id.c:213: read sbbuf len:0x200
14:27:52.243 [I] linux/volume_id/volume_id.c:216: got 0x200 (512) bytes
14:27:52.243 [I] linux/volume_id/volume_id.c:505: found 0xc data partition at 0x7e00, len 0x3a706e6800
14:27:52.243 [I] linux/block_class_device.c:1332: Number of partitions = 1
14:27:52.244 [I] device_info.c:1160: scan_fdi_files: Processing file '6in1-card-reader.fdi'
14:27:52.244 [I] device_info.c:1160: scan_fdi_files: Processing file 'ide-drives.fdi'
14:27:52.244 [I] device_info.c:1160: scan_fdi_files: Processing file 'jetflash-mp3-player.fdi'
14:27:52.244 [I] device_info.c:1160: scan_fdi_files: Processing file 'lexar-media-cf-reader.fdi'
14:27:52.244 [I] device_info.c:1160: scan_fdi_files: Processing file 'lucent-pcmcia-wireless.fdi'
14:27:52.244 [I] device_info.c:1160: scan_fdi_files: Processing file 'sony_dsc.fdi'
14:27:52.245 [I] device_info.c:1160: scan_fdi_files: Processing file 'usb-zip-drives.fdi'
14:27:52.245 [I] device_info.c:1160: scan_fdi_files: Processing file 'storage-policy.fdi'
14:27:52.246 [I] device_info.c:1163: *** Matched file /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi
14:27:52.246 [I] device_info.c:1160: scan_fdi_files: Processing file 'preferences.fdi'
14:27:52.246 [I] linux/common.c:582: Found a .fdi file for /org/freedesktop/Hal/devices/block_6853-5BA9
14:27:52.246 [I] linux/osspec.c:1540: ******************************************
14:27:52.246 [I] linux/osspec.c:1541: **** hotplug_counter is now 1
14:27:52.246 [I] linux/osspec.c:1542: ******************************************
14:27:52.246 [I] linux/block_class_device.c:839: Forcing check for media check on device /dev/sda
14:27:52.252 [I] callout.c:332: Invoking /etc/hal/device.d/40-hal-hotplug-map.hal
14:27:52.254 [I] hald.c:81: Added device to GDL; udi=/org/freedesktop/Hal/devices/block_6853-5BA9
14:27:52.254 [I] linux/osspec.c:1553: ==========================================
14:27:52.254 [I] linux/osspec.c:1554: ==== hotplug_counter is now 0
14:27:52.254 [I] linux/osspec.c:1555: ==========================================
14:27:52.254 [I] linux/osspec.c:1452: Processing event around first hotplug with SEQNUM=885
14:27:52.254 [I] linux/osspec.c:1345: action=add seqnum=885 subsystem=scsi_device sysfs_path=/sys/class/scsi_device/4:0:0:0
14:27:52.580 [E] linux/osspec.c:1370: d is NULL!
14:27:56.013 [I] linux/block_class_device.c:2391: Directory /etc changed
14:27:56.013 [I] linux/block_class_device.c:2252: /etc/mtab changed, processing all block devices
14:27:56.014 [I] linux/block_class_device.c:2131: /dev/sda1 is mounted at /media/NO NAME, major:minor=8:1, fstype=vfat, udi=/org/freedesktop/Hal/devices/block_6853-5BA9
-------------- next part --------------
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal


More information about the Hal mailing list