LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-18-2011, 02:55 PM   #1
elili
LQ Newbie
 
Registered: Feb 2011
Posts: 8

Rep: Reputation: 0
Exclamation problem in making disk less image


Hi;
I am trying to make a diskless image from my client and then reboot my client from server through PXE server (net boot) on red hat 5.5.
when I am trying to use the Networking Booting Tool. I get an error which says: Required binary /sbin/mount.nfs , could not be found in client root/tmp/diskless/root.
the next error is couldnot find kernel None/boot/vmlinux-2.....elsmp
I was wondering if you could give me a hint.
Many thanks
 
Old 02-18-2011, 03:31 PM   #2
roreilly
Member
 
Registered: Aug 2006
Location: Canada
Distribution: Debian, Slackware
Posts: 106

Rep: Reputation: 28
did you configure the initramfs.conf to boot from the net and rebuild your initramfs?
Here is the section that needs to be edited: Change BOOT=local to BOOT=net
then update.

# BOOT: [ local | nfs ]
#
# local - Boot off of local media (harddrive, USB stick).
#
# nfs - Boot using an NFS drive as the root of the drive.
#

BOOT=nfs


Hope this helps.
 
1 members found this post helpful.
Old 02-18-2011, 04:07 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I think roreilly has it. The pxe image is usually special. GPXE may fix it but doubt it. I'd think about using a iSCSI target maybe.
 
Old 02-18-2011, 08:12 PM   #4
elili
LQ Newbie
 
Registered: Feb 2011
Posts: 8

Original Poster
Rep: Reputation: 0
I will try your idea Roreilly.
Jefro we use SATA and it cause lots of problems and there is no way for us to change the system or versions ...
the most of problems has been made by /sbin/mount.nfs
we tried to mount and add it manually and then make the image .
it start to boot the system but we get the error as follow:
/sbin/mount.nfs
error while loading shared libraries: requests glibc 2.5 or later dynamic linker.
many thanks for your help and idea.
 
Old 02-28-2011, 11:21 AM   #5
elili
LQ Newbie
 
Registered: Feb 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Hi
I was trying to check the initramfs.conf as Roreilly said , but I couldnt find the file ????????
if you dont mind would you please let me know where i can find the file on RedHat4 Update 8.

I tried to make the image and I can boot the system via net and I have command line interface but not GUI. I think the root file system has been mounted readonly not read/write. :-(
any clue ??
cheers
 
Old 03-01-2011, 08:53 AM   #6
roreilly
Member
 
Registered: Aug 2006
Location: Canada
Distribution: Debian, Slackware
Posts: 106

Rep: Reputation: 28
I use debian, and unfortunately don't have access to a Redhat system. On debian, the conf is in /etc/initramfs-tools.

if you have a full running system, then it sounds like it's nearly working. Check the mount points in your /etc/fstab on the netboot image,
as well as the permissions for any exports related to the image.

If you are getting errors at boot, please post them. Also, please post the fstab from the image as well as any nfs exports related to
the boot image.

Thanks.
 
Old 03-01-2011, 07:08 PM   #7
elili
LQ Newbie
 
Registered: Feb 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Hi ;
I managed to solve the problem, now I have GUI . there are couple of things which I experiment so far:
the port which is going to use for snapshot should be different as the port which do the NFS
also the directories which contains the root file system on the server should have the permission of 777 but the permission for the content of root directory shouldn't be changed . for exmple on my server i have followings /diskless/x86-64/redhat4/root/......
so all the permission from /diskless to /root should be 777 but after that they should be clients original files and permission without any change.
however thank you so much for the reply, I really really appreciate your time and help
Best wishes
 
Old 03-02-2011, 03:42 PM   #8
roreilly
Member
 
Registered: Aug 2006
Location: Canada
Distribution: Debian, Slackware
Posts: 106

Rep: Reputation: 28
Glad you got it up & working.

Can you please post your findings so others can benefit from your experience?
 
Old 03-03-2011, 12:29 PM   #9
elili
LQ Newbie
 
Registered: Feb 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Hi;
Actually I wrote on my previous post who did I approach.


first:
the Ethernet port which is going to use for snapshot would be different that the port doing NFS. on the network booting tool after creating the image, on the properties the Ethernet port should be changed


second: permission which has been set for the directories whom contain the client root file system should be 777 but you never should change the root file system permissions.
they are my understandings so far however i will update this thread whenever i get more info and notes.


Thanks indeed
 
  


Reply



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
problem of transfering disk image via ftp hahp Linux - Virtualization and Cloud 2 02-03-2010 08:51 PM
clonezilla clone disk to image, when restore from image to destination hdd problem. hocheetiong Linux - Newbie 3 05-06-2008 07:59 PM
Making a boot disk using rawritent need to know which image to put simmi Slackware 4 01-08-2006 04:43 PM
problem mounting a disk image zero79 Debian 2 05-03-2005 02:15 PM
Help making and ISO out of a boot disk image... Rikarus Linux - Software 2 05-20-2003 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 PM.

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
Open Source Consulting | Domain Registration