Results 1 to 3 of 3

Thread: Kernel device naming - changed from 10.3 ?

Hybrid View

  1. #1
    quadb0y NNTP User

    Default Kernel device naming - changed from 10.3 ?

    Hello,
    I have a 4GB USB flash disk that I boot from (containing my root filesystem) and 8x SATA disks I use in a RAID array. Under 10.3, the USB disk was always named /dev/sda and the SATA disks were named /dev/sdb and so on.

    Now under 11.0, the SATA disks get /dev/sda and so on .. then my USB flash disk gets the next free device node. I need to change this behaviour because if I add another SATA disk to my array while running, it will get a device name higher than my flash disk - then on reboot the USB flash disk will be shuffled up to be the last device again. This causes problems with my RAID array (using mdadm) as the member disks no longer match the config file after reboot.

    Is there any way I can influence the kernel name of this USB flash device to ensure it gets named _before_ any other SATA disks ? Reading up on udev, it seems to provide persistent device naming (via /dev/disk/by-id or helpful symlinks) _after_ the kernel has named the device already.

    Thanks in advance.

  2. #2

    Default Re: Kernel device naming - changed from 10.3 ?

    Yes, you just use nodes from /dev/disk/by-id/ instead of nodes from /dev. Simple as that.

  3. #3
    quadb0y NNTP User

    Default Re: Kernel device naming - changed from 10.3 ?

    Hello,
    I understand you to mean to refer to the devices in my array by their respective /dev/disk/by-id/ entries rather than traditional kernel device names.

    I had thought along this line earlier; perhaps using udev rules to reference serial numbers of disks - either way such an approach truly de-couples the disk from the order of it's attachment to the bus, thus solving my problem.

    Thanks !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •