hal cannot read hard disk partition labels

Bug #36254 reported by Sergous
28
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Fix Released
Wishlist
Martin Pitt

Bug Description

The volumes in Computer:// have no names by default (jast Disk or something like
this). It's unconvinient for user then size of disk - the only way to recognise
the one of disks.

I sugest to add label to disk properties or to /etc/fstab, if there is any
option for that.

Hope it increase usability of Linux.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. Nautilus respects the label you set for a volume, you just
have to set one. How do you want to put one automatically? hal already sets the
name according to the device used.

Revision history for this message
Sergous (sergous) wrote :

My vfat partition have name, but nautilus dont use it as disk label. Why?

Revision history for this message
Martin Pitt (pitti) wrote :

The problem is that hal and other unprivileged programs cannot read the raw hard
disk partition since this requires root privileges or membership in group "disk"
(which is equivalent to root). We could add a setuid root wrapper to hal to read
device labels, but this is nontrivial. Maybe hal 0.6 changes this when the
architecture is changed to be more modular.

Revision history for this message
Sergous (sergous) wrote :

I see. As a temporary way (may be alternative) user can give there own label to disk and over
devices (by default use labels, given by root). This is a way for users, which should not get
access to raw hard disk information. IMHO read disk partition label can not require root
privileges.

Revision history for this message
Martin Pitt (pitti) wrote :

*** Bug 24956 has been marked as a duplicate of this bug. ***

Revision history for this message
Martin Pitt (pitti) wrote :

This was fixed some time ago in Dapper; hal can now read all partition labels.

Changed in hal:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.