From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id CFDE413800E for ; Thu, 2 Aug 2012 15:04:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AB41E06BE; Thu, 2 Aug 2012 15:04:01 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [178.33.32.244]) by pigeon.gentoo.org (Postfix) with ESMTP id AF5B3E0683 for ; Thu, 2 Aug 2012 15:02:09 +0000 (UTC) Received: from weird.wonkology.org (xdsl-78-35-175-37.netcologne.de [78.35.175.37]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx.virtyou.com (Postfix) with ESMTPSA id 90DD6DC048 for ; Thu, 2 Aug 2012 17:02:08 +0200 (CEST) Date: Thu, 2 Aug 2012 17:02:07 +0200 From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Udev rules for identical hard drives Message-ID: <20120802170207.41780259@weird.wonkology.org> In-Reply-To: References: <20120802013404.3c67615a@weird.wonkology.org> <20120802024236.0c12da7c@weird.wonkology.org> <20120802112036.61631fa1@weird.wonkology.org> <20120802123857.38b050b8@weird.wonkology.org> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.11; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: f0013069-e16d-41f0-b7fd-1aaff663e1f9 X-Archives-Hash: febf8443035e25fdc50ac6e0ae6f499b Mark Knecht writes: > Check out the very nice 'lsdrv' script by Phil Turmel. Run it, save a > copy of the output for bad times. > > https://github.com/pturmel/lsdrv That doesn't work here, and I do not understand why. In line 305 it tries and fails to create /dev/block, which is already existing. if not os.path.exists('/dev/block'): os.mkdir('/dev/block', 0755) Uh, is this a python bug? It works fine with python 2.7, but not with 3.2. But os.path.exists() is quite a basic function, if that wouldn't work, I'd expect all things to break, including emerge. Nice script. Much similar to lshw I think, but it shows more stuff, like LVM names and UUIDS. Thanks! Wonko