Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to make a part of a block device to be seen as a separate block device (in a similar way block 'devices' are created for partitions)? Unfortunately, I can't mount it through loop device due to poor performance. Also, I can't add a partition table to the disk. Hardcoding necessary information into the kernel is a possible option if someone shows where to put what.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Use addpart (from util-linux) to tell the kernel about partitions on a device.

SYNOPSIS
   addpart device partition start length

DESCRIPTION
   addpart is a program that informs the Linux kernel of new par‐
   tition.

   This command doesn't manipulate partitions on hard drive.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.