hal cannot read hard disk partition labels

Bug #36254 reported by Sergey Smirnov on 2005-10-18
28
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
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.

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.

Sergey Smirnov (sergous) wrote :

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

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.

Sergey Smirnov (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.

Martin Pitt (pitti) wrote :

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

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  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers