[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] nbd partitions and drives



On Thu, Jun 22, 2006 at 10:59:03AM +0200, Sascha Effert wrote:
> Dear all, 
> 
> I am trying to export a whole device via nbd and to access the partitions on 
> the device. I am able to open the device with fdisk and to see the 
> partitions, but they do not appear in /proc/partitions and they can not be 
> mounted. 
> 
> Is there a trick that I am missing? 

NBD does not support partitioning. If you want to access a single
partition exported through NBD, you need to run nbd-server on the
partition itself, rather than the whole blockdevice; e.g., 

nbd-server 1234 /dev/hda1

instead of

nbd-server 1234 /dev/hda

Alternatively, you may want to check out Peter T. Breuer's ENBD, to
which there's a link on the NBD homepage. ENBD requires you to patch
your kernel, and it's not possible to use ENBD and NBD devices in the
same kernel; however, ENBD does support partitioning of devices, and a
number of other things.

-- 
Fun will now commence
  -- Seven Of Nine, "Ashes to Ashes", stardate 53679.4



Reply to: