LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2011, 04:30 PM   #1
redjoy
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Rep: Reputation: 0
Question How do I create an NFS server that boots from CD?


I am new to linux but know enough to throw around terminology, install the OS, use the GUI, and the ls command from a terminal window.

Now I would like to boot any PC and make it work as an NFS Server.

I like the concepts of liveCDs as they usually have drivers to recognize current and prior hardware to some extent.

However, I do not need any GUI or any other services/applications; only what is required to run the NFS server and possibly copy/move files between exported folders from the command line.

My questions are
Does anyone already have such a CD?

Can a liveCD be modified with a script to boot up as an NFS Server based on the following list?

How do go about creating a bootable NFS Server based on the following list?


The NFS Server should do this upon boot:

- Check for NIC - eth0(?)
- if not present, stop booting with error message.
- if present, assign a specific IP address, mask, gateway.

- Check for existing harddrive.
- if not present, stop booting with error message.
- if present,
- Check for a specific folder to export, i.e., /data
- Ask if another folder should be created and exported.
- Defaults to no and should continue after 10 seconds.

- Give server a specific name.
- Root password would be the name of the server.

- Create a specific default user.
- Password would be defaulted to specific value.
- This user should be automatically logged in.


Thanks in advance.
 
Old 04-07-2011, 04:34 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,774
Blog Entries: 1

Rep: Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339Reputation: 1339
Quote:
Originally Posted by redjoy View Post
Now I would like to boot any PC and make it work as an NFS Server.
FreeNAS will do this, if you are interested in it.

http://sourceforge.net/projects/freenas/
 
1 members found this post helpful.
Old 04-07-2011, 04:45 PM   #3
redjoy
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks. I will check them out and return back next week.
 
Old 04-07-2011, 06:16 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Almost every live cd has the ability to be a nfs server so it is trivial to make a script to do what you want and add it in.

The tasks you need are easy to do if we either know a base that you wish to start with or a distro you want to modify.
 
Old 04-08-2011, 10:58 AM   #5
redjoy
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jefro View Post
Almost every live cd has the ability to be a nfs server so it is trivial to make a script to do what you want and add it in.

The tasks you need are easy to do if we either know a base that you wish to start with or a distro you want to modify.
I am not concerned so much as what base I would use or which distro as long as the script can be easily added as the default boot up by modifying the cd and burning it.

I am not familiar enough with creating such script. Also, I am willing to learn.


@szboardstretcher: I went to FreeNAS and it seems that all I need to do is install once, configure AND save from web interface, and then use the config.xml file for an embedded install.

Last edited by redjoy; 04-08-2011 at 11:14 AM.
 
Old 04-08-2011, 09:11 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
A script has to be exact to work. One for a debian distro may not work for OpenSuse.

If you want to see how a script works on knoppix then get almost any 3.x to 6.x cd or dvd and see the scripts that are run for knoppix terminal server. That sets up a nfs server tftp bootp and copies an image to be used to boot a pxe client.
 
Old 04-09-2011, 12:19 AM   #7
redjoy
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jefro View Post
A script has to be exact to work. One for a debian distro may not work for OpenSuse.
I know scripts are unique to a distro. What I meant was that I am concerned which distro to use. This opens up the question to anyone who may have or know how to write a specific script.
 
Old 04-09-2011, 05:32 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
The forum is full of folks that can help you on almost any task.

If you decide on a base then post that question singular. I and maybe others find it hard to follow posts that ask a few questions per thread.

I have used this list and others for maybe as long as it is been up. http://www.livecdlist.com/

Is there one that exactly meets your post. No. I don't think so.

There is no live cd made that can boot any system. So that part is out.

Can you make one a live cd? Yes. Easy to hard depending on the source. Some disto's let you built what you want with some automated program or web page. Others allow you a build setup locally and you plug in what you want. Others let you build from scratch using their docs.

Can you take one and modify it? Easily in almost all cases. Starting a nfs server is usually easy. Setting your settings are simple for the helpers online here.

NO gui , easy. Either start any common gui based in telint 3 or init 3 or get a non-gui distro.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create nfs server Elnegro8 Linux - Server 1 07-08-2010 04:17 AM
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 11:22 AM
LXer: Run your NFS server in the user address space with NFS-GANESHA LXer Syndicated Linux News 0 11-27-2008 05:40 AM
How do I create a boot disk that boots the CDROM? Omni Linux - General 2 07-06-2007 01:58 AM
Tried to create a partition on my harddrive and boots with a system restore BWhere Linux - Newbie 1 01-23-2006 01:44 AM


All times are GMT -5. The time now is 04:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration