LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   How do I disable a device that was enabled in udev? (http://www.linuxquestions.org/questions/slackware-14/how-do-i-disable-a-device-that-was-enabled-in-udev-630072/)

Woodsman 03-23-2008 04:45 PM

How do I disable a device that was enabled in udev?
 
I do not want or need the /dev/md0 device. That device is enabled in 50-udev.rules. I could comment that line, but if I understand correctly, that configuration file gets overwritten with updates. My understanding is to create a 99-local.rules file. But how to disable within that file after the device is enabled?

Thanks.

aus9 03-23-2008 07:49 PM

that is your raid device.

do you use raid?

if not in grub you can add noraid to your kernel line....should be able to do the same to lilo?

Woodsman 03-29-2008 05:23 PM

Quote:

that is your raid device. do you use raid?
No. I have disabled raid/lvm in my kernel build too. So I'm unsure why this device node is created.

Bruce Hill 03-29-2008 07:40 PM

What about the other 700+ devices created?
Code:

mingdao@silas:~$ ls -l /dev/ | wc
    759    7460  50576

:D

I use RAID/LVM in my kernel and don't have /dev/md0:
Code:

root@silas:~# ls -l /dev/md*
/bin/ls: cannot access /dev/md*: No such file or directory

mingdao@silas:~$ sudo /sbin/vgdisplay
  --- Volume group ---
  VG Name              vg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  4
  VG Access            read/write
  VG Status            resizable
  MAX LV                0
  Cur LV                3
  Open LV              3
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size              37.25 GB
  PE Size              4.00 MB
  Total PE              9536
  Alloc PE / Size      4864 / 19.00 GB
  Free  PE / Size      4672 / 18.25 GB
  VG UUID


aus9 03-29-2008 08:07 PM

slackware uses lilo last time I checked...try adding a append noraid option to it and rerun lilo

http://www.linuxquestions.org/questi...18#post3095418
is an example.

but I am not a lilo fan.

Woodsman 03-29-2008 09:03 PM

Huh. Well, never mind! Apparently my memory is not so good between weekends. Last weekend I recompiled my kernel without raid/lvm support, but I forgot to check on the existence of /dev/md0 with respect to this thread. The device no longer exists. In othr words: problem solved. My apologies for not being more methodical!


All times are GMT -5. The time now is 11:48 PM.