Bug 103210 - media:/ shouldn't show the swap and extended partitions and "size" labels in "hd**"
Summary: media:/ shouldn't show the swap and extended partitions and "size" labels in ...
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: media (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Jérôme Lodewyck
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-04 16:53 UTC by Iñaki Baz Castillo
Modified: 2006-06-09 21:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iñaki Baz Castillo 2005-04-04 16:53:54 UTC
Version:           desconocido (using KDE 3.4.0, Debian Package 4:3.4.0-0pre2 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.6.10

I have KDE3.4 with pmount, hal, dbus and udev.

In media there appears all the partitions of my system but their label is the size of each partition (¿?), why?
I think this isn't usable, It would be better to show the classic "hda1, hda2, hdb1..." instead of the size. Maybe an option to change the label of the partitions in media:/?

In media:/ I can see too the swap partition and the extended partitions (10K), this is not usable (of course, I don't have the extended partitions in my fstab).
Comment 1 Kevin Ottens 2005-04-04 19:45:17 UTC
That's how HAL label volumes by default...
Please note that you can rename the volumes displayed in media:/ using 'F2'.

As for the swap and the extended partition... well that's really a HAL issue
since all the volumes are queried to it.
Comment 2 Kevin Ottens 2005-04-04 19:49:19 UTC
Hmmm... now that I think of it... maybe a filtering is missing somewhere in
our HAL backend (which would explain why the swap and the extended volumes
are displayed).
Comment 3 Kevin Ottens 2005-04-04 19:49:52 UTC
Reassigning to Jerôme since he knows HAL internals better than me.
Comment 4 Iñaki Baz Castillo 2005-04-04 20:03:40 UTC
|| Please note that you can rename the volumes displayed in media:/ using 'F2'. 

It's strange, you are right when you say that I can rename the label with F2, but I can't set "hda2" in /dev/hda2 devide.
I can set the label "Disk hda2", or "Disk 2" or "Partition 2", but I can't set "hda2" ¿?¿?¿

Anyway, media:/ protocol is great. Good job!
Comment 5 Jérôme Lodewyck 2005-04-04 22:15:16 UTC
- Swap problem : IIRC, the debian package for HAL is puposely broken to avoid 
running HAL as root (debian bug #290653). Please try to run as root:
pkill hald; hald --daemon=no --verbose=yes
If the problem persists, could you please send the output of lshal ?

- Label problem : this is (almost) how libhal-storage handles volumes names. A 
better handling of devices names is definitely on my todo list, but you won't 
see hda1 or something (BTW, do you really think hda1 is "user-friendly" ?).
The best solution for your problem would be to assign a label to your 
partition (e.g.   tune2fs -L Home /dev/hda?   for ext2/3).
Comment 6 Iñaki Baz Castillo 2005-04-04 23:54:30 UTC
Sorry, I knew nothing about debian bug #29065, I have discovered recently hal and dbus and I am still reading about it.


Exactly, if I do as root:
  pkill hald
  hald --daemon=no --verbose=yes
And restart KDE, there don't appear in media:/ the SWAP and Extended partitions :)

And very important note: I have sent today other bug: <a href="http://bugs.kde.org/show_bug.cgi?id=103198">#103198</a>
This is about a problem unmounting floppy in media:/.
Using "hald --daemon=no --verbose=yes" the problem disappears :)
So if you consider you can set "Resolved" that bug (I prefer not to do by myself because I'm not sure about the solution).
 
Thanks a lot for your indications, I hope Debian people fix soon the hal package.


Just one thing:

I have a CD recorder (hdc) and a DVD player (hdd).
Before KDE 3.4 I saw in devices:/ the recorder with an hard disk icon, instead of a CD o burning CD icon.

In KDE 3.4 before install hal, dbus, pmount and udev it was the same "problem".

When I installed hal, dbus, pmount and udev the problem disappeared: If I insert an audio CD in the CD recorder (hdc) there appears an Audio CD icon in media:/, if I insert in CD recorder a data CD there appears an Data CD icon. Perfect, problem fixed.

But with your solution (hald --daemon=no --verbose=yes) the problem appears again. When there is not a CD into the recorder, there is in media an unmounted hard disk icon labeled "hdc" (recorder device). If I insert an audio CD in hdc, the audio cd icon doesn't appear (snif...). The system (hal?) see my recorder like an hard disk, so I lose usability.

I can't imagine why this estrange problem occurs with my recorder.


About the devices names, I know that hda is not the best solution, but I think it's better than "8,6G Media". In Windows the people is used to see C, D, etc, and they "know" that C is the first, D the next one...
In Linux the people is used to see hda1, hda2, hdb1, etc, so I think it would be a good option to rename devices like the following:
- Hard disk hda1
- Hard disk hda2
- Hard disk hdb1
or
- Disk hda1
or just
- hda1
or
- hda1 6GB

It's just my opinion ;)


Thanks again for your attention. All of you are doing a very good job.
Comment 7 Iñaki Baz Castillo 2005-04-05 00:00:06 UTC
I'm sorry, the bug about problem with floppy umounting was <a href="http://bugs.kde.org/show_bug.cgi?id=103198">#103198</a>.
Comment 8 Kevin Ottens 2005-05-01 16:49:19 UTC
To avoid the dropping priviledge, you can edit the /etc/default/hal on Debian,
which fixes the swap issue.
But I noticed that the extended partitions issue is still here.

Couldn't we display only "leaf volumes" through the HAL backend? It looks like
a nice heuristic to avoid extended partitions.
Comment 9 Kevin Ottens 2006-06-09 21:24:48 UTC
Works as expected in 3.5.3.