View Single Post
Old 04-11-2013, 01:27 AM   #8
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
this is just some added info on the nbd stuff:
My (Debian laptop) Server:
# apt-get install nbd-server

create a 128M file to be made into a filesystem later on
# dd if=/dev/zero of=/home/user/nbd_file bs=1024 count=128000

The default port 10809 will be used.

/etc/nbd-server/config:
[generic]
[export]
exportname = /home/user/nbd_file

# mke2fs /home/user/nbd_file
(answer yes it is to be a special block device)
# chmod 766 /home/user/nbd_file <-nbd-server runs as nbd user? whatever..
# nbd-server &
optional (make sure it's listening)
# netstat -ltn | grep 10809



Kindle (client):

I put the nbd.ko driver in /mnt/us and nbd-client in my PATH

[root@kindle us]# insmod nbd.ko
[root@kindle us]# nbd-client 192.168.15.201 /dev/nbd0 -name export
[root@kindle us]# mkdir nbd
[root@kindle us]# mount /dev/nbd0 nbd
[root@kindle us]# ls -al nbd

places I ripped info from:
https://forums.gentoo.org/viewtopic-...eecfdaa988ceef
http://www.thegeekstuff.com/2009/02/...mpstart-guide/

Last edited by brianinmaine; 04-11-2013 at 01:32 AM.
brianinmaine is offline   Reply With Quote