Boot and root should be ok, but misc is probably causing problems with file managers querying fstab and hal.
-Ross
----- Original Message ----- From: centos-bounces@centos.org centos-bounces@centos.org To: CentOS mailing list centos@centos.org Sent: Mon Apr 28 18:30:00 2008 Subject: Re: [CentOS] Slightly OT: Extra icons on desktop
On Mon, Apr 28, 2008 at 2:36 PM, Ross S. W. Walker rwalker@medallion.com wrote:
tune2fs -L "" /dev/XXX
Thank you!
mhr _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
On Mon, Apr 28, 2008 at 3:49 PM, Ross S. W. Walker rwalker@medallion.com wrote:
Boot and root should be ok, but misc is probably causing problems with file managers querying fstab and hal.
-Ross
Must be something like that - if I su and umount it, both icons go away. Then I 'mount -a' and only one comes back. But if I log out and log back in, they both come back. Must a new "feature" of gnome 2.20.0....
mhr
On Mon, 2008-04-28 at 16:03 -0700, MHR wrote:
On Mon, Apr 28, 2008 at 3:49 PM, Ross S. W. Walker rwalker@medallion.com wrote:
Boot and root should be ok, but misc is probably causing problems with file managers querying fstab and hal.
-Ross
Must be something like that - if I su and umount it, both icons go away. Then I 'mount -a' and only one comes back. But if I log out and log back in, they both come back. Must a new "feature" of gnome 2.20.0....
If *I* know about it, it *can't* be a *new* feature! ;-)
mhr
<snip sig stuff>
On Tue, Apr 29, 2008 at 2:11 AM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
On Mon, 2008-04-28 at 16:03 -0700, MHR wrote:
Must be something like that - if I su and umount it, both icons go away. Then I 'mount -a' and only one comes back. But if I log out and log back in, they both come back. Must a new "feature" of gnome 2.20.0....
If *I* know about it, it *can't* be a *new* feature! ;-)
Heh, heh - I meant "feature" as in the infamous Bill Gates interview with the German technology magazine, wherein he claimed that Windows has no bugs, only features that people do not understand. (You can't make this stuff up....)
The most interesting part to me is that the disk in question is a fixed drive in the case. On my CentOS boxes and laptops, these NEVER show up on the desktop (why would they?), only the removable media.
Thanks, including for the chuckle.
mhr
On Tue, 2008-04-29 at 11:34 -0700, MHR wrote:
On Tue, Apr 29, 2008 at 2:11 AM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
On Mon, 2008-04-28 at 16:03 -0700, MHR wrote:
Must be something like that - if I su and umount it, both icons go away. Then I 'mount -a' and only one comes back. But if I log out and log back in, they both come back. Must a new "feature" of gnome 2.20.0....
If *I* know about it, it *can't* be a *new* feature! ;-)
Heh, heh - I meant "feature" as in the infamous Bill Gates interview with the German technology magazine, wherein he claimed that Windows has no bugs, only features that people do not understand. (You can't make this stuff up....)
The most interesting part to me is that the disk in question is a fixed drive in the case. On my CentOS boxes and laptops, these NEVER show up on the desktop (why would they?), only the removable media.
If it is truly a fixed drive, then I would suggest a look at the logs (dmesg and/or messages) to get it "identity" and then look at udev configuration scripts. IIUC, udev is assigned the task of identifying and classifying stuff correctly. Everything else at "higher" levels of abstraction would depend on those results.
I did a locate on udev and some promising things popped up.
/etc/udev /etc/sysconfig/modules/udev-stw.modules /etc/udev/devices /etc/udev/makedev.d /etc/udev/rules.d /etc/udev/udev.conf
Plus there's a bunch of docs about it up in /usr/share/doc/udev-095, including overview and writing-udev-rules. "man -k udev" offers some potential help too.
I hope there's an answer hidden in there somewhere.
Thanks, including for the chuckle.
Chuckles are free, grins @ $0.01.
mhr
<snip sig stuff>
HTH
William L. Maltby wrote:
On Tue, 2008-04-29 at 11:34 -0700, MHR wrote:
On Tue, Apr 29, 2008 at 2:11 AM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
On Mon, 2008-04-28 at 16:03 -0700, MHR wrote:
Must be something like that - if I su and umount it, both icons go away. Then I 'mount -a' and only one comes back. But if I log out and log back in, they both come back. Must a new "feature" of gnome 2.20.0....
If *I* know about it, it *can't* be a *new* feature! ;-)
Heh, heh - I meant "feature" as in the infamous Bill Gates interview with the German technology magazine, wherein he claimed that Windows has no bugs, only features that people do not understand. (You can't make this stuff up....)
The most interesting part to me is that the disk in question is a fixed drive in the case. On my CentOS boxes and laptops, these NEVER show up on the desktop (why would they?), only the removable media.
If it is truly a fixed drive, then I would suggest a look at the logs (dmesg and/or messages) to get it "identity" and then look at udev configuration scripts. IIUC, udev is assigned the task of identifying and classifying stuff correctly. Everything else at "higher" levels of abstraction would depend on those results.
I did a locate on udev and some promising things popped up.
/etc/udev /etc/sysconfig/modules/udev-stw.modules /etc/udev/devices /etc/udev/makedev.d /etc/udev/rules.d /etc/udev/udev.conf
Plus there's a bunch of docs about it up in /usr/share/doc/udev-095, including overview and writing-udev-rules. "man -k udev" offers some potential help too.
I hope there's an answer hidden in there somewhere.
Thanks, including for the chuckle.
Chuckles are free, grins @ $0.01.
I believe the problem is simple really.
fstab has the device listed as LABEL=misc, and HAL reports it as /dev/sdX, the Gnome file manager sees these as 2 separate devices and presents them as such.
Find a way to have Gnome stop scanning the fstab file and have it rely completely on HAL, or have HAL ignore all devices listed in fstab.
-Ross
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
On Tue, Apr 29, 2008 at 12:25 PM, Ross S. W. Walker rwalker@medallion.com wrote:
I believe the problem is simple really.
fstab has the device listed as LABEL=misc, and HAL reports it as /dev/sdX, the Gnome file manager sees these as 2 separate devices and presents them as such.
Actually, I used tune2fs earlier to delete the volume label and the entry in fstab now lists the device directly.
Find a way to have Gnome stop scanning the fstab file and have it rely completely on HAL, or have HAL ignore all devices listed in fstab.
I'll look into this one.
Thanks.
mhr
On Tue, 2008-04-29 at 15:25 -0400, Ross S. W. Walker wrote:
William L. Maltby wrote:
On Tue, 2008-04-29 at 11:34 -0700, MHR wrote:
On Tue, Apr 29, 2008 at 2:11 AM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
On Mon, 2008-04-28 at 16:03 -0700, MHR wrote:
Must be something like that - if I su and umount it, both icons go away. Then I 'mount -a' and only one comes back. But if I log out and log back in, they both come back. Must a new "feature" of gnome 2.20.0....
If *I* know about it, it *can't* be a *new* feature! ;-)
Heh, heh - I meant "feature" as in the infamous Bill Gates interview with the German technology magazine, wherein he claimed that Windows has no bugs, only features that people do not understand. (You can't make this stuff up....)
The most interesting part to me is that the disk in question is a fixed drive in the case. On my CentOS boxes and laptops, these NEVER show up on the desktop (why would they?), only the removable media.
If it is truly a fixed drive, then I would suggest a look at the logs (dmesg and/or messages) to get it "identity" and then look at udev configuration scripts. IIUC, udev is assigned the task of identifying and classifying stuff correctly. Everything else at "higher" levels of abstraction would depend on those results.
I did a locate on udev and some promising things popped up.
/etc/udev /etc/sysconfig/modules/udev-stw.modules /etc/udev/devices /etc/udev/makedev.d /etc/udev/rules.d /etc/udev/udev.conf
Plus there's a bunch of docs about it up in /usr/share/doc/udev-095, including overview and writing-udev-rules. "man -k udev" offers some potential help too.
I hope there's an answer hidden in there somewhere.
Thanks, including for the chuckle.
Chuckles are free, grins @ $0.01.
I believe the problem is simple really.
fstab has the device listed as LABEL=misc, and HAL reports it as /dev/sdX, the Gnome file manager sees these as 2 separate devices and presents them as such.
If the "misc" is getting automounted, that would be a problem. But wasn't the "noauto" option tried (I can't remember)?
Find a way to have Gnome stop scanning the fstab file and have it rely completely on HAL, or have HAL ignore all devices listed in fstab.
-Ross
<snip sig stuff>
On Tue, Apr 29, 2008 at 12:43 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
If the "misc" is getting automounted, that would be a problem. But wasn't the "noauto" option tried (I can't remember)?
No, I want it automounted. I just don't want it to show up twice on my desktop.
I suppose I could just delete the file from my Desktop folder, but I'm not sure if that does anything detrimental or what....
mhr
On Tue, 2008-04-29 at 12:50 -0700, MHR wrote:
On Tue, Apr 29, 2008 at 12:43 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
If the "misc" is getting automounted, that would be a problem. But wasn't the "noauto" option tried (I can't remember)?
No, I want it automounted. I just don't want it to show up twice on my desktop.
You mean regardless of if desktop is started up? In that case, it sounds like System->Preferences->Removable Drives and Media settings need changing to *not* mount when hot-plugged.
I suppose I could just delete the file from my Desktop folder, but I'm not sure if that does anything detrimental or what....
mhr
<snip>
On Tue, Apr 29, 2008 at 12:59 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
You mean regardless of if desktop is started up? In that case, it sounds like System->Preferences->Removable Drives and Media settings need changing to *not* mount when hot-plugged.
At the risk of repeating myself: this is a fixed hard drive; it is NOT a removable drive nor a removable media drive. That is why this issue is so puzzling to me....
mhr
On Tue, 2008-04-29 at 13:15 -0700, MHR wrote:
On Tue, Apr 29, 2008 at 12:59 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
You mean regardless of if desktop is started up? In that case, it sounds like System->Preferences->Removable Drives and Media settings need changing to *not* mount when hot-plugged.
At the risk of repeating myself: this is a fixed hard drive; it is NOT a removable drive nor a removable media drive. That is why this issue is so puzzling to me....
Repeating is not an issue. Long threads promote forgetfulness. But I didn't forget. I'm just hazarding a guess that whatever the root cause is, changing those settings might get rid of the extra icon. That, in turn, gives a hint that might be useful. If it doesn't fix it, it also provides some help by eliminating some things... I hope.
I'm still hoping that the scan of the dmesg or messages log, in conjunction with a look a udev stuff might reveal the cause.
The settings suggestion was just a stab at getting rid of the icon, which was your stated goal.
mhr
<snip sig stuff>
William L. Maltby wrote:
On Tue, 2008-04-29 at 13:15 -0700, MHR wrote:
On Tue, Apr 29, 2008 at 12:59 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
You mean regardless of if desktop is started up? In that case, it sounds like System->Preferences->Removable Drives and Media settings need changing to *not* mount when hot-plugged.
At the risk of repeating myself: this is a fixed hard drive; it is NOT a removable drive nor a removable media drive. That is why this issue is so puzzling to me....
Repeating is not an issue. Long threads promote forgetfulness. But I didn't forget. I'm just hazarding a guess that whatever the root cause is, changing those settings might get rid of the extra icon. That, in turn, gives a hint that might be useful. If it doesn't fix it, it also provides some help by eliminating some things... I hope.
I'm still hoping that the scan of the dmesg or messages log, in conjunction with a look a udev stuff might reveal the cause.
The settings suggestion was just a stab at getting rid of the icon, which was your stated goal.
I wonder if anyone can duplicate the problem by creating a partition and having it mounted in fstab by volume label and see if it appears twice.
If you list it in fstab by /dev/sdXX and HAL announces it as /dev/sdXX then it will only appear once, but if it is listed in fstab as LABEL=XXXX and HAL announces it as /dev/sdXX then it would be listed as twice.
I believe /boot, /, LABEL=boot and LABEL=root, are typically ignored either in Gnome or HAL or both, so those won't dup.
-Ross
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
On Tue, 2008-04-29 at 16:46 -0400, Ross S. W. Walker wrote:
William L. Maltby wrote:
<snip>
I wonder if anyone can duplicate the problem by creating a partition and having it mounted in fstab by volume label and see if it appears twice.
Not quite the same, but I've a USB drive that I plugged in after removing "noauto" from the fstab entry.
$ grep 4 /etc/fstab LABEL=BkUp_4_5 /media/sdc1 ext2 defaults,noatime 0 0
Got a nice little message telling me (in Gnome desktop) that I wasn't priveleged to mount it. That's as I would expect since I was already logged in at my desktop. Mount showed it mounted.
$ mount /dev/sdc1 on /media/sdc1 type ext2 (rw,noatime)
Now I'll reboot and see what happens.
Rebooted. Prior to entering "telinit 5", did a "mount" and it was mounted. After logging onto graphical desktop, one icon on the desktop. As expected.
I'm led back to the conclusion that there is some oddity about the device definitions on Mark's problematic unit.
If you list it in fstab by /dev/sdXX and HAL announces it as /dev/sdXX then it will only appear once, but if it is listed in fstab as LABEL=XXXX and HAL announces it as /dev/sdXX then it would be listed as twice.
Not as far as I can tell. From dmesg:
device-mapper: multipath: version 1.0.5 loaded Vendor: Toshiba Model: USB2.0 Drive R00 Rev: 1.43 Type: Direct-Access ANSI SCSI revision: 00 SCSI device sdc: 195371568 512-byte hdwr sectors (100030 MB)
and
SELinux: initialized (dev sdc1, type ext2), uses xattr
From messages:
Apr 29 16:58:01 centos501 kernel: sd 2:0:0:0: Attached scsi disk sdc Apr 29 16:58:01 centos501 kernel: sd 2:0:0:0: Attached scsi generic sg2 type 0
Nothing of interest in /var/log/gdm/:0.log.
I believe /boot, /, LABEL=boot and LABEL=root, are typically ignored either in Gnome or HAL or both, so those won't dup.
That would be another good test.
-Ross
<snip sig stuff>
William L. Maltby wrote:
On Tue, 2008-04-29 at 16:46 -0400, Ross S. W. Walker wrote:
William L. Maltby wrote:
<snip>
I wonder if anyone can duplicate the problem by creating a partition and having it mounted in fstab by volume label and see if it appears twice.
Not quite the same, but I've a USB drive that I plugged in after removing "noauto" from the fstab entry.
$ grep 4 /etc/fstab LABEL=BkUp_4_5 /media/sdc1 ext2 defaults,noatime 0 0
Hmmm, and if the mount point were outside of /media?
Got a nice little message telling me (in Gnome desktop) that I wasn't priveleged to mount it. That's as I would expect since I was already logged in at my desktop. Mount showed it mounted.
$ mount /dev/sdc1 on /media/sdc1 type ext2 (rw,noatime)
Is that fixed or removable media?
Now I'll reboot and see what happens.
Rebooted. Prior to entering "telinit 5", did a "mount" and it was mounted. After logging onto graphical desktop, one icon on the desktop. As expected.
I'm led back to the conclusion that there is some oddity about the device definitions on Mark's problematic unit.
There could be, could you give it a try with another mount point outside of /media and with a fixed disk if it isn't already?
-Ross
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
On Tue, 2008-04-29 at 17:32 -0400, Ross S. W. Walker wrote:
William L. Maltby wrote:
On Tue, 2008-04-29 at 16:46 -0400, Ross S. W. Walker wrote:
William L. Maltby wrote:
<snip>
I wonder if anyone can duplicate the problem by creating a partition and having it mounted in fstab by volume label and see if it appears twice.
Not quite the same, but I've a USB drive that I plugged in after removing "noauto" from the fstab entry.
$ grep 4 /etc/fstab LABEL=BkUp_4_5 /media/sdc1 ext2 defaults,noatime 0 0
Hmmm, and if the mount point were outside of /media?
My suspicion is it won't matter. But Give me a couple and I'll try this and the other suggestions below.
Got a nice little message telling me (in Gnome desktop) that I wasn't priveleged to mount it. That's as I would expect since I was already logged in at my desktop. Mount showed it mounted.
$ mount /dev/sdc1 on /media/sdc1 type ext2 (rw,noatime)
Is that fixed or removable media?
It is an external. Got 2 at a deal from Tosh because I own one of their nice 17" Satellites.
Now I'll reboot and see what happens.
Rebooted. Prior to entering "telinit 5", did a "mount" and it was mounted. After logging onto graphical desktop, one icon on the desktop. As expected.
I'm led back to the conclusion that there is some oddity about the device definitions on Mark's problematic unit.
There could be, could you give it a try with another mount point outside of /media and with a fixed disk if it isn't already?
Will do. Give me a couple and I'll post again.
-Ross
<snip sig stuff>
On Tue, 2008-04-29 at 17:32 -0400, Ross S. W. Walker wrote:
William L. Maltby wrote:
On Tue, 2008-04-29 at 16:46 -0400, Ross S. W. Walker wrote:
William L. Maltby wrote:
<snip>
I wonder if anyone can duplicate the problem by creating a partition and having it mounted in fstab by volume label and see if it appears twice.
Not quite the same, but I've a USB drive that I plugged in after removing "noauto" from the fstab entry.
$ grep 4 /etc/fstab LABEL=BkUp_4_5 /media/sdc1 ext2 defaults,noatime 0 0
Hmmm, and if the mount point were outside of /media?
Drat! Changed that one to "noauto". I'll have to "ribit" and try that one again.
Got a nice little message telling me (in Gnome desktop) that I wasn't priveleged to mount it. That's as I would expect since I was already logged in at my desktop. Mount showed it mounted.
$ mount /dev/sdc1 on /media/sdc1 type ext2 (rw,noatime)
Is that fixed or removable media?
Now I'll reboot and see what happens.
Rebooted. Prior to entering "telinit 5", did a "mount" and it was mounted. After logging onto graphical desktop, one icon on the desktop. As expected.
I'm led back to the conclusion that there is some oddity about the device definitions on Mark's problematic unit.
There could be, could you give it a try with another mount point outside of /media and with a fixed disk if it isn't already?
]$ grep OLDh /etc/fstab # /dev/sda7 /mnt/OLDhardtolove ext2 noauto 0 0 LABEL=OLDhardtolove /mnt/OLDhardtolove ext2 defaults,ro 0 0
$ mount /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sdb1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) /dev/sda7 on /mnt/OLDhardtolove type ext2 (ro)
No icon on the desktop.
BTW. On the previous test, I could not umount the device from the desktop. That would be because it was mounted prior to GUI instantiation and so the GUI user was not the "owner" I guess.
-Ross
<snip>
On Tue, 2008-04-29 at 17:32 -0400, Ross S. W. Walker wrote:
William L. Maltby wrote:
On Tue, 2008-04-29 at 16:46 -0400, Ross S. W. Walker wrote:
William L. Maltby wrote:
<snip>
I wonder if anyone can duplicate the problem by creating a partition and having it mounted in fstab by volume label and see if it appears twice.
Not quite the same, but I've a USB drive that I plugged in after removing "noauto" from the fstab entry.
$ grep 4 /etc/fstab LABEL=BkUp_4_5 /media/sdc1 ext2 defaults,noatime 0 0
Hmmm, and if the mount point were outside of /media?
$ grep -i bk /etc/fstab LABEL=BkUp_4_5 /mnt/sdc1 ext2 defaults,noatime 0 0
$ mount /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sdb1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) /dev/sda7 on /mnt/OLDhardtolove type ext2 (ro) /dev/sdc1 on /mnt/sdc1 type ext2 (rw,noatime)
Only 1 icon on desktop. Again, I can't umount it, as expected.
As root, I can umount it, as expected. Icon then disappears.
<snip>
-Ross
<snip sig stuff>
On Tue, 2008-04-29 at 13:15 -0700, MHR wrote:
On Tue, Apr 29, 2008 at 12:59 PM, William L. Maltby CentOS4Bill@triad.rr.com wrote:
You mean regardless of if desktop is started up? In that case, it sounds like System->Preferences->Removable Drives and Media settings need changing to *not* mount when hot-plugged.
At the risk of repeating myself: this is a fixed hard drive; it is NOT a removable drive nor a removable media drive. That is why this issue is so puzzling to me....
BTW. Determination of device type/class is contained within the HAL/udev data bases (script, configs, hardware lists, ...). If your device is not there, or is there erroneously identified, ISTM that it could cause the system to believe it was removable media.
mhr
<snip sig stuff>