WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Can I use cifs shares with netboot?  (Read 4003 times)

Offline gmc

  • Full Member
  • ***
  • Posts: 141
[SOLVED] Can I use cifs shares with netboot?
« on: May 31, 2013, 01:29:22 AM »
Greetings.

I would like to use a network share to access image files for netbooting PXE clients.  I currently connect to the NAS server from the PXE server using cifs.  This is done at boot time using the proper command in the bootlocal file and is working fine.

Is it possible to use the mounted share from the NAS server for PXE clients?  For example, on the NAS server I have the share:

//192.168.0.7/Disk 1

and the local mount point is:

/mnt/disk1

On NAS Disk 1 I have a directory named tftpboot, containing the various image directories and files.  I tried using a symlink in /netboot pointing to a specific shared directory on the NAS server but that did not work.

Any tips, pointers, advice welcome, even if it is just to let me know that this won't work.
« Last Edit: June 02, 2013, 12:25:09 AM by gmc »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Can I use cifs share with netboot?
« Reply #1 on: May 31, 2013, 06:05:20 AM »
So to recap, you want to keep the files in /mnt/disk1/netboot instead of /netboot?

That directory is specified in the start command for the TFTP server, so you should be able to edit that to point to where-ever needed.
« Last Edit: May 31, 2013, 06:09:10 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline gmc

  • Full Member
  • ***
  • Posts: 141
Re: Can I use cifs share with netboot?
« Reply #2 on: May 31, 2013, 10:29:05 PM »
So to recap, you want to keep the files in /mnt/disk1/netboot instead of /netboot?

That directory is specified in the start command for the TFTP server, so you should be able to edit that to point to where-ever needed.

That did it!  It works great.  Better than great.  Awesome!  Perfect!  Delightful!

Thank You!!!

This is the capstone, the final piece of the puzzle, the exclamation mark at the end of the sentence!  This solves my problem with lack of storage space on the thin client PXE server (now there's an oxymoron for you - a thin client acting as a server!) and the slow backup times at restart/shutdown and the extra write cycles on the flash drive, etc.

I am now using my NSLU2 NAS server to supply the PXE boot images to the PXE clients through an HP/Neoware thin client PXE server with only 113MB of available flash drive storage and 248MB of available RAM, using a 400MHz Atom processor.  And PXE boots are fast.

I learn best by example, and this step-by-step process has taught me a lot.  Thanks to all of you for your wonderful support.  I've said it before, I'll say it again.  This is the finest support forum I have every encountered.

P.S.  I'm sure that some readers here will know that the NSLU2 can be re-imaged with 3rd party software that allows it to act as a PXE server directly (and much, much more!).  I have chosen not to go this route for a couple of reasons.
1.  The NSLU2 is no longer available in the retail marketplace.  If something goes wrong with the process I could end up with a brick instead of a server.  I don't have the money to go out and buy a new NAS server.
2.  If something were to go wrong, I don't want to lose access to the terabytes of data on that server.
3.  It just works.  It is very reliable.  So why mess with something that just sits in the background and does what it is suppoed to do?

Have a great day!

Glen

Offline genec

  • Full Member
  • ***
  • Posts: 240
Re: Can I use cifs share with netboot?
« Reply #3 on: June 01, 2013, 10:57:38 AM »
I tried using a symlink in /netboot pointing to a specific shared directory on the NAS server but that did not work.

As I already told you here, it depends.  It's not uncommon for this to occur.

Offline gmc

  • Full Member
  • ***
  • Posts: 141
Re: Can I use cifs share with netboot?
« Reply #4 on: June 02, 2013, 12:23:04 AM »
I tried using a symlink in /netboot pointing to a specific shared directory on the NAS server but that did not work.

As I already told you here, it depends.  It's not uncommon for this to occur.
Yes, I remembered your posting.  I did not expect it to work right off but had to give it a try.  Making the path change in the server start-up was a much better way for me to go.