Questions tagged [device-mapper]

35 questions
10
votes
4 answers

TRIM support via dm-crypt/device-mapper

Getting a new laptop with SSD tomorrow. I need to know about the current status of dm-crypt and TRIM. I have seen several conflicting reports and most activity around this question seems to be > 1 year old. Some say that dm-crypt TRIM passthrough…
8
votes
1 answer

The naming convention of folders in `/sys/bus/usb/devices/`

I am trying to understand the relation between the Linux folder names in /sys/bus/usb/devices/ and the output of lsusb -t. On my machine, the lsusb shows this: In the /sys/bus/usb/devices/, there are: What's the naming convention of these…
smwikipedia
  • 713
  • 2
  • 17
  • 34
6
votes
3 answers

"DOS Devices" to directory (aka permanent SUBST) not honored after Windows 21H1 update

Previously, a device mapping had been established using HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices to add an alias from D:\ to C:\Build. This approach discussed in the wikipedia SUBST article and similar. After…
3
votes
1 answer

How to Create Virtual Block Devices

I want to create multiple virtual block devices like /dev/sda and then use them to create an md device for test purpose. I have mounted my root filesystem on /dev/sda1 and don't have extra space to create new physical partitions. Therefore, I am…
ARH
  • 133
2
votes
1 answer

Can I make a encrypted image by using openssl encrypt tools instead of dmsetup?

Generally, I can create a encrypted ext4 image by do this: fallocate -l 6553600 encrypt.img losetup -f encrypt.img dmsetup create encrypt_disk --table "0 12800 crypt aes 32BYTEKEY 0 /dev/loop0 0" mkfs.ext4 /dev/mapper/encrypt_disk Then I can mount…
shuofei
  • 21
2
votes
0 answers

How to mount USB disk with LVM/LUKS crypted volumes on a Mac?

Possible Duplicate: How to mount an encrypted ext3 filesystem under OS X? I have a USB disk that I've partitioned with LVM and encrypted some of the volumes with LUKS. This is all Linux/Device Mapper stuff, so how can I use it on a Mac?
Jasiu
  • 171
2
votes
1 answer

How to know which is the real drive behind the mapped block device?

I configured my box to boot from an alternative disk through modifying the existing os. However, some partitions are still being mounted from the internal storage. In the case of the /home partition, I’ve /dev/dm-0 which is used to decrypt the…
user2284570
  • 2,020
1
vote
1 answer

How can I export a /dev/mapper mounted filesystem via NFS?

I have a server "pr-cl-n1" that mounts /usr via /dev/mapper like this: # mount [...] /dev/mapper/pr--cl--n1-usr on /usr type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered) The root of the server is exported via NFS. My /etc/exports…
1
vote
1 answer

dmsetup status fields explained?

I am not new to linux, but I am new to the underlying guts of it, and I don't know anything about LVM or device-mapper. I'm trying to troubleshoot a livecd mounting its live-rw (dm-0) file system as read only during operation, and it's been…
Locane
  • 401
1
vote
1 answer

How to autodetect device name in Linux

I have an encrypted USB dongue with cryptosetup, to mount it I have to execute a script that has hardcoded (or admits it as a parameter) the device name of that dongue that previously you had to search. I wonder is there is any way via bash…
CastleDweller
  • 671
  • 1
  • 6
  • 14
1
vote
0 answers

Udev rule for changing owner of Linux LVM device nodes

I'm having some trouble changing the owner of a Linux LVM logical volume on my Debian wheezy system. I added the following udev rule to both the initramfs and the real root file…
Nikratio
  • 389
1
vote
0 answers

Moxa - NPort 5110 as HTTP Server or similar

I have a NPort 5110 Serial Device Server connecting our Automation Control Box to the LAN so we can communicate with it from a non-local pc via mapped com port. (if you are unfamiliar with the device I can go into more detail about this) The NPort…
rlemon
  • 697
1
vote
6 answers

Is there some utility that will allow me to see all devices physically connected to my laptop, regardless of whether they have a driver or not?

Upgraded Vista to 7 last day and my wireless laptop adapter is behaving funny. First it was killing me with resource conflict issues, but I just did a fresh Win 7 installation and the thing just does not seem to register now - as if it were not…
1
vote
0 answers

Docker DeviceMapper Driver not Freeing Space RHEL 7

I searched around a bit a while back and found stuff about using loop device, which we are not, and using fstrim to free space. I ended up just rebuilding my kubernetes working nodes to clear the space back up last time and switching from XFS to…
1
vote
0 answers

lvconvert creating cached LV - results in device-mapper: reload ioctl on (254:0) failed: Invalid argument

On Sles15, after successfully creating the Meta and Cache LVs and combining them with lvconvert, I then go to associate the Cachepool with the slow LV and get the following error: lvconvert --type cache --cachepool vgVMs9/VMs9Cache vgVMs9/VMs9 Do…
1
2 3