Can the nbd connection be automated during bootup?

58 views
Skip to first unread message

win...@295.ca

unread,
Apr 30, 2008, 7:18:26 PM4/30/08
to SC101 NBD Server
Hi,
I'm running Ubuntu 7.10 and will likely soon be upgrading to 8.04.

I've successfully connected to the SC101 device and I would like to
automate the connection.
Adding a line in the FSTAB file just causes a superblock error during
bootup because the UT attach command hasn't been run yet.

So in in order to make this work the UT attach command must be made
permanently.
I've added the nbd module to my kernel and that is working well but in
order for my FSTAB mount to be successful the UT attach command needs
to connect before the FSTAB mounts have been processed.

It's either that or a script file needs to be made so I can just click
the script or have the script load after login.

Iain Wade

unread,
Apr 30, 2008, 7:35:26 PM4/30/08
to win...@295.ca, SC101 NBD Server
There is an init script (for redhat) in the subversion trunk:

http://sc101-nbd.googlecode.com/svn/trunk/ut.init

It looks at a file called /etc/uttab and attaches to each entry.

my uttab file looks like this:

/dev/nbd0 260C6490-6C10-11DC-BA34-0010C6527A60
/dev/nbd1 A4790BD0-6C10-11DC-BA34-0010C6527A60

you'd need to stick the script in /etc/init.d, chmod 0755 it and
chkconfig it on.

I really must get around to updating the packages and docs soon.

Regards,
--Iain

Reply all
Reply to author
Forward
0 new messages