Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Udev rules for identical hard drives
Date: Thu, 02 Aug 2012 15:04:19
Message-Id: 20120802170207.41780259@weird.wonkology.org
In Reply to: Re: [gentoo-user] Udev rules for identical hard drives by Mark Knecht
1 Mark Knecht writes:
2
3 > Check out the very nice 'lsdrv' script by Phil Turmel. Run it, save a
4 > copy of the output for bad times.
5 >
6 > https://github.com/pturmel/lsdrv
7
8 That doesn't work here, and I do not understand why. In line 305 it tries
9 and fails to create /dev/block, which is already existing.
10
11 if not os.path.exists('/dev/block'):
12 os.mkdir('/dev/block', 0755)
13
14 Uh, is this a python bug? It works fine with python 2.7, but not with
15 3.2. But os.path.exists() is quite a basic function, if that wouldn't
16 work, I'd expect all things to break, including emerge.
17
18 Nice script. Much similar to lshw I think, but it shows more stuff, like
19 LVM names and UUIDS. Thanks!
20
21 Wonko

Replies

Subject Author
Re: [gentoo-user] Udev rules for identical hard drives Dale <rdalek1967@×××××.com>
Re: [gentoo-user] Udev rules for identical hard drives Mark Knecht <markknecht@×××××.com>