Règle udev

Top Page

Reply to this message
Author: Frédéric
Date:  
To: ML Guilde
Subject: Règle udev
Soit un disque dur externe :

scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
  Vendor:           Model:                   Rev:
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: test WP failed, assume Write Enabled
sda: assuming drive cache: write through
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: test WP failed, assume Write Enabled
sda: assuming drive cache: write through
 sda: sda1 sda2
sd 1:0:0:0: Attached scsi disk sda
usb-storage: device scan complete


Quelle règle udev ajouter pour que la partition 1 soit mappée
vers /dev/hyper/1, et la partition 2 vers /dev/hyper/2 ?

Pour info :

$ tree /dev/disk/
/dev/disk/
|-- by-id
| |-- ata-WDC_WD400VE-75HDT1_WD-WXE805152395 -> ../../hda
| |-- ata-WDC_WD400VE-75HDT1_WD-WXE805152395-part1 -> ../../hda1
| |-- ata-WDC_WD400VE-75HDT1_WD-WXE805152395-part2 -> ../../hda2
| |-- ata-WDC_WD400VE-75HDT1_WD-WXE805152395-part5 -> ../../hda5
| |-- ata-WDC_WD400VE-75HDT1_WD-WXE805152395-part6 -> ../../hda6
| |-- ata-WDC_WD400VE-75HDT1_WD-WXE805152395-part7 -> ../../hda7
| |-- ata-WDC_WD400VE-75HDT1_WD-WXE805152395-part8 -> ../../hda8
| |-- ata-WDC_WD400VE-75HDT1_WD-WXE805152395-part9 -> ../../hda9
| |-- usb-_____SANHO_UDMA_Storage_V1.10_000000000001 -> ../../sda
| |-- usb-_____SANHO_UDMA_Storage_V1.10_000000000001-part1 -> ../../sda1
| `-- usb-_____SANHO_UDMA_Storage_V1.10_000000000001-part2 -> ../../sda2

|-- by-path
| |-- pci-0000:00:1f.1-ide-0:0 -> ../../hda
| |-- pci-0000:00:1f.1-ide-0:0-part1 -> ../../hda1
| |-- pci-0000:00:1f.1-ide-0:0-part2 -> ../../hda2
| |-- pci-0000:00:1f.1-ide-0:0-part5 -> ../../hda5
| |-- pci-0000:00:1f.1-ide-0:0-part6 -> ../../hda6
| |-- pci-0000:00:1f.1-ide-0:0-part7 -> ../../hda7
| |-- pci-0000:00:1f.1-ide-0:0-part8 -> ../../hda8
| |-- pci-0000:00:1f.1-ide-0:0-part9 -> ../../hda9
| |-- pci-0000:00:1f.1-ide-0:1 -> ../../hdb
| |-- pci-0000:03:00.2-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sda
| |-- pci-0000:03:00.2-usb-0:1:1.0-scsi-0:0:0:0-part1 -> ../../sda1
| `-- pci-0000:03:00.2-usb-0:1:1.0-scsi-0:0:0:0-part2 -> ../../sda2

`-- by-uuid
    |-- 46AE-4DF4 -> ../../sda1
    |-- 88a2f859-40ab-4daa-a354-99e753986f84 -> ../../hda6
    |-- a674781c-2fb4-443b-b51f-74030786a4ce -> ../../hda1
    |-- b2437d17-9fca-41f8-9cfa-e69a5de7beb0 -> ../../sda2
    |-- bc59fef4-deec-4f28-adac-f4f887da2697 -> ../../hda5
    |-- c3de1c1c-f774-4b20-9b56-366e29df3f61 -> ../../hda8
    `-- e4f347f8-371b-49a4-9b31-05c63966faec -> ../../hda7


--
Frédéric

http://www.gbiloba.org