Skip to contentSkip to conversation

device-mapper: : dm-linear: Device lookup failed

linux-lvm Dan Merillat 2 participants 3 messages Aug 11, 2004

lore
Share & tools
lore
#0 lore raw

I can't use my CD-rom as a device-mapper target, is this intended?

"0 2048 linear /dev/hda1 0" works, "0 2048 linear /dev/hdc 0" does not.

(I'm actually trying to do encrypted CD-roms, but it's reproducable using linear mappings as well.)

Right now I have to use a loopback device on the CD, then I can use it as a device-mapper target.

--Dan

#1 lore raw

Am Dienstag, den 10.08.2004, 21:17 -0400 schrieb Dan Merillat:

Quoted 3 lines

I can't use my CD-rom as a device-mapper target, is this intended?

"0 2048 linear /dev/hda1 0" works, "0 2048 linear /dev/hdc 0" does not.

You have to explicitly create a read-only mapping using -r.

#2 lore raw
Quoted 7 lines · Christophe Saout

Am Dienstag, den 10.08.2004, 21:17 -0400 schrieb Dan Merillat:

Quoted 3 lines

I can't use my CD-rom as a device-mapper target, is this intended?

"0 2048 linear /dev/hda1 0" works, "0 2048 linear /dev/hdc 0" does not.

You have to explicitly create a read-only mapping using -r.

Aha, that fixes it.

Ok, may be useful to return an error message like "read-write mapping requested on a read-only media", or just do like filesystem mounting:
demote it to read-only and report to the user.

--Dan