Results 1 to 6 of 6

Thread: nbd in knoppix 6.7.1 (boot: knoppix64)

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    18

    nbd in knoppix 6.7.1 (boot: knoppix64)

    I would like to mount a kvm qcow2 image (Windows XP) via nbd, but 'modprobe nbd' returns nil. Nothing obvious (to me ) in debian package repository for the missing kernel module. Pointers (instructions, reading materials) on how to achieve the image mount would be greatly appreciated. thanks in advance.

  2. #2
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    If you look inside the the kernel's configuration file, you will see that the support for network block devices was already compiled into the Knoppix kernel. There is no need to load a kernel module using modprobe. The device names are /dev/nbd[0..15].

    I do not use network block devices myself, but I found a short tutorial on the Debian Administration web site: Working with network block devices

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    18
    Thank you very much Klaus for the details on nbd, and also the tutorial (which would help bridge the gaps in my knowledge and get me going). Very much appreciated.

  4. #4
    Junior Member
    Join Date
    Oct 2011
    Posts
    18
    Continuing on getting nbd to work in Knoppix 6.7.1 (boot:knoppix64) - now with the knowledge that kernel has nbd -

    the nbd server appears to start OK ("kvm-nbd -c /dev/nbd0 xp-disk.qcow2"), and fdisk shows partition 1 (as expected for the disk image xp-disk.qcow2). however, the device fails to mount ~ "mount /dev/nbd0p1 /mnt/xp-disk" gives the error message "mount: special device /dev/nbd0p1 does not exist").

    A quick search points to the max_part parameter for nbd devices: "cat /sys/module/nbd/parameters/max_part" gives 0 (thus the failed mount). Had nbd been compiled as a module, it is said that "rmmod nbd" followed by "modprobe nbd max_part=16" would re-set the max_part parameter for mount to proceed. Given that nbd is compiled into the kernel in x86_64 in Knoppix 6.7.1, is it possible to change the parameter, and how? (it couldn't be editing directly the file in /sys/module/nbd/parameters/ - could it?)

  5. #5
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by boryeu.mao View Post
    Had nbd been compiled as a module, it is said that "rmmod nbd" followed by "modprobe nbd max_part=16" would re-set the max_part parameter for mount to proceed. Given that nbd is compiled into the kernel in x86_64 in Knoppix 6.7.1, is it possible to change the parameter, and how?
    You can set the parameter using this "nbd.max_part=16", and this can be specified when you are prompted at boot parameter (in the exact same manner as you specify a cheatcode ), or you can specify it inside the file /mnt-system/boot/syslinux/syslinux.cfg.

    Have fun with nbd, though I haven't used it before !

  6. #6
    Junior Member
    Join Date
    Oct 2011
    Posts
    18
    Thanks much for the solution(s) - and the help in improving my knowledge on all things kernel. It makes sense to have to reboot since the parameter is meant for the kernel. My first encounter with nbd as well. PS - correcting myself, max_part ought to be 15 (and not 16).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Supermicro X10SRW-F Server picture

Supermicro X10SRW-F Server

$169.99



Supermicro 815-6 4-Bay Server picture

Supermicro 815-6 4-Bay Server

$239.99



HP ProLiant Xeon E3-1220L V2 16 GB RAM 2.30 GHz MicroServer Gen8 NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 16 GB RAM 2.30 GHz MicroServer Gen8 NO DRIVES

$174.99



HPE PROLIANT MICROSERVER GEN10 PLUS MICRO TOWER SERVER - USED picture

HPE PROLIANT MICROSERVER GEN10 PLUS MICRO TOWER SERVER - USED

$550.00



HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ* picture

HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*

$94.99



HPE Proliant Microserver Gen10 X3421 Perf AMS,  P03698-S01, 16GB Ram picture

HPE Proliant Microserver Gen10 X3421 Perf AMS, P03698-S01, 16GB Ram

$299.00



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



Supermicro Server Tower Xeon BOOTS E5-2620 v4 2.10GHz 64GB RAM NO HDD NO OS picture

Supermicro Server Tower Xeon BOOTS E5-2620 v4 2.10GHz 64GB RAM NO HDD NO OS

$199.99



1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00



2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture

2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL

$299.00