[NTLUG:Discuss] Mounted Volume Drive Icon Names - a mystery - [a gnome mystery]

terry trryhend at gmail.com
Fri May 11 00:58:32 CDT 2007


I only made any changes to my system for experimental purposes, just
do demonstrate to you, and to experiment with it.  The way udev works
by default suits me just fine, the icon on the desktop labeled
/mnt/hda4 is descriptive enough for me, I guess, because I know
already that /mnt/hda4 is the Slackware partition. But, would be nice
to figure out how to manipulate the way udev works and to customize
the the names it gives a drive.  I read through
http://www.reactivated.net/writing_udev_rules.html and looks like
pretty good information, but it's a little complicated and doesn't
tell us exactly what I would do in my case... but, well, I actually
tried it and it didn't work.
I created a rule file but it didn't change the name of /mnt/hda4, it
only caused it to not appear on the desktop.
I created "05-options.rules" with line:
KERNEL=="hda4", SUBSYSTEM=="block", ATTR{size}=="15904350",
ATTR{start}=="14089005", NAME="Slackware_Partition"
 in it, but didn't seem to work.
e.g.
# cat > /etc/udev/rules.d/10-local.rules
KERNEL=="hda4", SUBSYSTEM=="block", ATTR{size}=="15904350",
ATTR{start}=="14089005", NAME="Slackware_Partition"
# Ctrl-d

It didn't work.  But I think it's because there are rules elsewhere
that conflict.

It's a bit too complicated for my taste.
My 'ol Slackware system doesn't mount anything automatically and
that's fine with me because it's easy enough to mount things manually.
(But in the the case of a fixed disk, having a line in /etc/fstab
ensures that it'll get mounted at boot time anyway.) And like Jeff
said, it's easy enough to drop in a symlink into
/home/username-here/Desktop, and if there is a line in /etc/fstab for
the partition or drive, it's going to be mounted when you boot up
anyway, so having a permenant icon on the desktop works just fine and
you can name it what ever you want.

It is interesting that your PC in the shack is naming the MS Windows
partition _PNG, I'm not sure what's causing that.  But if it is not
fully updated, it may be that something about udev is not working
properly.  See that it is fully updated.  If it's fully udated, the
icon should be named "/dev/hda1"

And your laptop - it's just naming it "disk"  There again, ... it
should show up as /mnt/hda1 or, well, what ever the mount point is.
And, .... hummmm... you could create a mount point of your liking and
change the fstab entry.  Hey, yea, that's what you need to do.
I'm going to try that on mine, see if it works..... yea.
I'll try that now.



More information about the Discuss mailing list