LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-20-2009, 09:24 AM   #1
lievendp
Member
 
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111

Rep: Reputation: 27
start xfce4 from nfs mounted partition via pxeboot.


Hi folks,

currently, I'm working on some kind of kiosk project. I looked into the ltsp project but that't not exactly what I want.

I want to pxe boot a client, the client then gets it's root partition from nfs. This works fine as long as the nfs partition is exported "read-write" "/data/kiosk 10.0.2.* (rw,no_root_squash,subtree_check,sync)"

When I change the option "rw" to "ro" then I get this error while booting the pxe client: /usr/bin/startxfce4 could not create lock file in /tmp

the boot options in /var/lib/tftboot/pxelinux.cfg are as follows:
"DEFAULT vmlinuz append vga-normal initrd=initrd.img ramdisk_size=256000 root=/dev/nfs nfsroot=10.0.2.147:/data/kiosk rw noapic hpet=disable --"

I see that the <server-nfs>/data/kiosk/etc/fstab mounts /tmp as a tmpfs folder which should be writable, right?


So I'm confused why I cannot create the lock file in the /tmp.


Is it possible that the error is not from the /tmp in the normal root but comes from the initial root that is created during the early stages of the system startup by initrd?

How can change this behavior? I am not very familiar with the boot sequence of linux. I only know it basicly as follows:

1) bootloader loads kernel and initrd in ram. (in this case, the initrd and vmlinuz that are in the /var/lib/tftpboot/ folder.

2) The kernel loads and then a ramdevice is created in which the contents of initrd are copied.

3) the ramdev is mounted r/w by the kernel and becomes an initial root.

4) linuxrc in the initial root is executed. (How can I change or even view this linuxrc file? I think it is somewhere in the initrd. How can I mount this initrd and edit it's contents? - It seems to be a gzipped file but gunzipping it fails)
-> If I manage to edit this initrd file, can I make it mount a /tmp as readwrite?
-> Is it uberhaupt here that the nfs-root is mounted??

5) after linuxrc is done with it's abrahcadabrah, the root is then switched from the initial root to a definitive root on the nfs mounted system. (I think)

6) the init scripts from the newly mounted root do their thing. I found the startxfce4 in <server-nfs>/data/kiosk/usr/bin/startxfce4.


I wonder: where can I mount the /tmp folder read-writable even if the rest of the system is mounted readonly via nfs.

My thinking is that maybe it's possible to mount /tmp as rw and then unionfs it with the ramdisk as is the case in knoppix. but... HOW?


Any hints are appreciated. Sorry in advance for my long blahblah. I would gladly clarify if something is not clear.

thanks.

ps: I'm thinking that maybe a ramdisk howto might help me further: http://jootamam.net/howto-initramfs-image.htm But I'm not sure that's the right track to follow.

Last edited by lievendp; 03-20-2009 at 09:25 AM.
 
  


Reply

Tags
initrd, nfs, unionfs


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
A loop device mounted within an NFS share is not accessible via NFS? srikanthnv Linux - Software 17 12-18-2011 09:31 AM
export NFS mounted file system via NFS smkamene Linux - Networking 3 02-10-2009 03:12 PM
help placing driver module in initrd.img for remote tftp/nfs/pxeboot radiance29 Linux - Kernel 1 08-13-2008 01:07 PM
PXEboot for slackware 11 - cannot mount NFS root +Yan Linux - Server 0 04-11-2007 09:05 AM
nfs mounted partition giving error "no space left" niranjan_mr Linux - Software 4 01-03-2007 05:01 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration