From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Huttley Date: Thu, 10 Jul 2008 23:36:29 +0000 Subject: Re: Udev-124, USB tape drive Message-Id: <48769CFD.1030607@mib-infotech.co.nz> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------010509090902010108030907" List-Id: References: <48757C12.7020201@mib-infotech.co.nz> In-Reply-To: <48757C12.7020201@mib-infotech.co.nz> To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. --------------010509090902010108030907 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Ok, attached is my 60-persistent-storage-tape.rules adding |nst*[0-9] seems to have fixed the issue. my tape/by-id/ looks like HP-C7438A-4855310710385844 -> ../../st4 HP-C7438A-4855310710385844-nst -> ../../nst4 HP-Ultrium_1-SCSI-HU84H06998 -> ../../st3 HP-Ultrium_1-SCSI-HU84H06998-nst -> ../../nst3 HP-Ultrium_2-SCSI-HUL3K02633 -> ../../st2 HP-Ultrium_2-SCSI-HUL3K02633-nst -> ../../nst2 QUANTUM-DLT8000-PXB23P0605 -> ../../st1 QUANTUM-DLT8000-PXB23P0605-nst -> ../../nst1 QUANTUM-DLT8000-PXB23P0632 -> ../../st0 QUANTUM-DLT8000-PXB23P0632-nst -> ../../nst0 STK-L80-LLC02205205 ->../../sg1 which in my opinion is a huge improvement, since I can see which drive is which and the serial number matches up with the serial number shown by tapeinfo. I think that should be the standard. The USB drive (C7438A) is now consistent between st and nst, however the serial number is HU107108XD not 4855310710385844. I have no idea how to fix that since the rules now use things like bsg and usb_id %p which are entirely undocumented. Regards, John Kay Sievers wrote: > On Thu, Jul 10, 2008 at 05:03, John Huttley wrote: >> Now my scsi tape drives are all identified nicely, (thankyou) >> I'm looking at my USB tape drive. >> >> Its st and nst incarnations are getting different /by-id/ info. >> >> HP-C7438A-4855310710385844 -> ../../st4 >> HP-C7438A-HU107108XD-nst -> ../../nst4 >> >> The problem seems to be >> KERNEL=="st*[0-9]", ENV{ID_SERIAL}!="?*", SUBSYSTEMS=="usb", >> IMPORT{program}="usb_id --export %p" >> >> >> but that won't pick up nst*, as the later rules do. >> Also applys to the 1394 tape drives. > > Care to adapt the rules to work on your box, then we can start from there? > > Thanks a lot, > Kay > -- > To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > --------------010509090902010108030907 Content-Type: text/plain; name="60-persistent-storage-tape.rules" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="60-persistent-storage-tape.rules" IyBkbyBub3QgZWRpdCB0aGlzIGZpbGUsIGl0IHdpbGwgYmUgb3ZlcndyaXR0ZW4gb24gdXBk YXRlCgojIHBlcnNpc3RlbnQgc3RvcmFnZSBsaW5rczogL2Rldi90YXBlL3tieS1pZCxieS1w YXRofQoKQUNUSU9OIT0iYWRkfGNoYW5nZSIsIEdPVE89InBlcnNpc3RlbnRfc3RvcmFnZV90 YXBlX2VuZCIKCiMgdHlwZSA4IGRldmljZXMgYXJlICJNZWRpdW0gQ2hhbmdlcnMiCktFUk5F TD09InNnWzAtOV0qIiwgU1VCU1lTVEVNUz09InNjc2kiLCBBVFRSU3t0eXBlfT09IjgiLCBJ TVBPUlR7cHJvZ3JhbX09InNjc2lfaWQgLS1zZy12ZXJzaW9uPTMgLS1wYWdlPTB4ODAgLS1l eHBvcnQgLS13aGl0ZWxpc3RlZCAtZCAkdGVtcG5vZGUiLCBTWU1MSU5LKz0idGFwZS9ieS1p ZC8kZW52e0lEX1ZFTkRPUn0tJGVudntJRF9NT0RFTH0tJGVudntJRF9TRVJJQUxfU0hPUlR9 IgoKU1VCU1lTVEVNIT0ic2NzaV90YXBlIiwgR09UTz0icGVyc2lzdGVudF9zdG9yYWdlX3Rh cGVfZW5kIgoKS0VSTkVMPT0ic3QqWzAtOV18bnN0KlswLTldIiwgQVRUUlN7aWVlZTEzOTRf aWR9PT0iPyoiLCBFTlZ7SURfU0VSSUFMfT0iJGF0dHJ7aWV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