Re: [Nbd] nbd partitions and drives
- To: Sascha Effert <fermat@...90...>
- Cc: nbd-general@lists.sourceforge.net, Brinkmann, André <brinkman@...92...>
- Subject: Re: [Nbd] nbd partitions and drives
- From: Wouter Verhelst <wouter@...3...>
- Date: Thu, 22 Jun 2006 12:58:15 +0200
- Message-id: <20060622105814.GB1389@...39...>
- In-reply-to: <200606221059.03972.fermat@...90...>
- References: <200606221059.03972.fermat@...90...>
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: