You are not logged in.

#1 2014-12-31 06:58:41

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

[SOLVED] clear old entries from /dev/disks/by-uuid

I have a few external USB harddisks with LVM partitions. After unmounting them and disconnecting the cables, the UUID entries persist in /dev/disks/by-uuid. This is problematic because  one of my scripts scans that directory to determine if a given disk is present and currently generates false positives.

Is there a way to "refresh" the list of UUIDs to remove old entries? I was not able to find anything relevant via searching. Most questions related to missing entries.

Last edited by Xyne (2014-12-31 07:11:25)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#2 2014-12-31 07:06:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] clear old entries from /dev/disks/by-uuid

Does udevadm trigger help?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-12-31 07:11:07

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] clear old entries from /dev/disks/by-uuid

jasonwryan wrote:
udevadm trigger

That did the trick. Thanks!


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB