You are not logged in.

#1 2011-02-21 03:41:05

SeanM
Member
Registered: 2011-02-07
Posts: 25

Forcing uDev to scan loopback devices

Hey,

I was wondering if it was possible to force udev to enumerate partitions exposed on a loopback mounted device.

For context, imaging /dev/sda has 3 partitions (sda1, sda2, sda3). If we run:

dd if=/dev/sda of=/root/sdadump.bak

We get a dump of the entire drive. Now, if we want to mount partitions off of this "device" that is a normal file, how would we go about that? I know we can mount the file as /dev/loop0 as a loopback device with

losetup -f --show /root/sdadump.bak

but that doesn't seem to prompt a uevent to get it to scan the partition table for partitions to enumerate. fdisk /dev/loop0 will access the device no problems.

How do you prompt a scan of a specific device file to enumerate partitions?

Offline

#2 2011-02-21 03:42:53

SeanM
Member
Registered: 2011-02-07
Posts: 25

Re: Forcing uDev to scan loopback devices

Testing RSS monitoring... I'll be deleting this in a sec.

Edit: Can you delete posts? Huh... Don't think you can.

Last edited by SeanM (2011-02-21 06:05:04)

Offline

Board footer

Powered by FluxBB