Add additional loop device on Linux

  • mknod created a new device.
  • -m660 sets the mode to 660 for the filesystem.
  • /dev/loop8 specifies the device to create.
  • b sets the device as a block device.
  • 7 and 8 are major and minor device numbers.

So this creates on a standard Linux the eighth loopback device.

mknod -m660 /dev/loop8 b 7 8
chown root.disk /dev/loop8
chmod 666 /dev/loop8

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: