Author Topic: what is the difference between device-mapper and udev?  (Read 704 times)

Offline mtonkinson

  • Jr. Member
  • **
  • Posts: 37
what is the difference between device-mapper and udev?
« on: January 11, 2010, 10:33:02 PM »
I am curious what the difference between device-mapper and udev is. I had a post I made earlier where I thought when I updated to KDE4 something happened that was causing troubles mounting an external and secondary hard drive. I now have determined that it appears to be device-mapper. I downloaded the dmsetup utility a while back and when I type dmsetup ls I get:
Code: [Select]
[root@localhost /]# dmsetup ls
1WD_6400AAK_External    (253, 0)
1WD_6400AAK_Externalp1  (253, 1)
SATA_WDC_WD2000JD-22WD-WCAL73024837     (253, 2)

and if I try to mount the drives or access them through Dolphin I get a message that the drives are busy or already mounted. If I enter dmsetup remove_all, this problem disappears. What is the purpose of device-mapper? Is there a way to remove device-mapper or a way to stop device-mapper from mapping my drives? From what it appears, device-mapper is having problems mapping the drives but udev is able to map and mount the drives.


Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: what is the difference between device-mapper and udev?
« Reply #1 on: January 11, 2010, 11:14:35 PM »
device mapper:
http://linuxgazette.net/114/kapil.html
This may be a bit technical but it's also very informative.

udev:
http://en.wikipedia.org/wiki/Udev

udev creates the device nodes but needs some assistance from
HAL:
http://en.wikipedia.org/wiki/Hardware_abstraction_layer
man hald
« Last Edit: January 11, 2010, 11:29:26 PM by blackbird »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D