LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-19-2007, 01:04 PM   #1
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Rep: Reputation: 15
PXE boot Knoppix - update ISO


Hello,

Currently we are running a boot server that mounts KNOPPIX_V5.0.1CD-2006-06-01-EN.iso.

I have downloaded KNOPPIX_V5.1.1CD-2007-01-04-EN.iso and have it in the appropriate directory.

We are using PXE to do the boot and then it does the mount.

On the boot server we have the /tftpboot directory with the miniroot.gz, vmlinuz, and pxelinux.cfg/default files.

What can I do to make the newer ISO mount?

Thanks

Last edited by sharptech; 04-19-2007 at 01:06 PM.
 
Old 04-19-2007, 03:17 PM   #2
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Now that I look at it closer - we have a mounted directory /knoppix and when I do a mount /knoppix and then ls into the directory it has the old ISO files.

I need to mount the files of the new ISO into this directory it looks like.

Any ideas?
 
Old 04-20-2007, 02:21 AM   #3
hapser
LQ Newbie
 
Registered: Apr 2007
Location: Utah
Distribution: Fedora Core 5 and 6
Posts: 5

Rep: Reputation: 0
I'm new with this so I might be wrong.

Sounds like you just need to mount the new ISO right?

In this case you would first unmount the old iso image:

umount /knoppix

Then you would mount the new one:

mount KNOPPIX_V5.1.1CD-2007-01-04-EN.iso -o loop /knoppix

This will mount the iso image and the files will be in /knoppix

hope this helps.
 
Old 04-20-2007, 08:32 AM   #4
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Hapser thanks - however that will not work and here is why.

The mounted directory for the ISO (/knoppix) is running on a xen virtual machine. The other ISO's are on a different xen machine.

The /knoppix directory is an nfs share.

I can't figure out when I mount /knoppix - where the files are coming from.

Thanks for the help.
 
Old 04-20-2007, 11:14 AM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
I'm not familiar with how Knoppix specifically does things, but I've done diskless netbooting with Debian.

I'd start looking at the pxelinux.cfg/default file in a text editor to see where it's mounting root from. Assuming it's using nfs, it might look something like this:

APPEND root=/dev/nfs initrd=initrd.img.netboot nfsroot=192.168.1.4:/mnt/hda5/yuki ip=dhcp rw

If Knoppix is doing something similar, then you'll be able to see somewhere what the mount point is (in this case, /mnt/hda5/yuki).

Next, I'd look at /etc/exports to confirm that this is indeed the location of the nfs share.

After that, I'd look at /etc/mtab and/or /etc/fstab to figure out what exactly this share is pointing to. It should be some sort of "cloop" or "loop" entry or something involving the .iso filename somehow.

I suspect that a quick and dirty way to make this work will be to change the /etc/fstab on the server to point to the new .iso file while keeping the same mount point.
 
Old 04-20-2007, 11:54 AM   #6
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Here are the config files mentioned:
pxelinux.cfg/defualt:

Code:
DEFAULT vmlinuz
APPEND nfsdir=172.20.1.29:/knoppixnfs lang=us ramdisk_size=100000 init=/etc/init apm=power-off nomce vga=791 initrd=miniroot.gz quiet BOOT_IMAGE=knoppix
TIMEOUT 300

PROMPT 1
DISPLAY boot.msg
LABEL knoppix
KERNEL vmlinuz
APPEND nfsdir=172.20.1.29:/knoppixnfs lang=us ramdisk_size=100000 init=/etc/init apm=power-off nomce vga=791 initrd=miniroot.gz quiet BOOT_IMAGE=knoppix
LABEL knoppix-txt
KERNEL vmlinuz
APPEND nfsdir=172.20.1.29:/knoppixnfs lang=us ramdisk_size=100000 init=/etc/init apm=power-off nomce vga=normal initrd=miniroot.gz BOOT_IMAGE=knoppix
LABEL expert
KERNEL vmlinuz
APPEND nfsdir=172.20.1.29:/knoppixnfs lang=us ramdisk_size=100000 init=/etc/init apm=power-off nomce vga=791 initrd=miniroot.gz BOOT_IMAGE=expert
LABEL fb1024x768
KERNEL vmlinuz
APPEND nfsdir=172.20.1.29:/knoppixnfs lang=us ramdisk_size=100000 init=/etc/init apm=power-off nomce vga=791 xmodule=fbdev initrd=miniroot.gz BOOT_IMAGE=knoppix
LABEL fb800x600
KERNEL vmlinuz
APPEND nfsdir=172.20.1.29:/knoppixnfs lang=us ramdisk_size=100000 init=/etc/init apm=power-off nomce vga=788 xmodule=fbdev initrd=miniroot.gz BOOT_IMAGE=knoppix
/etc/exports:

Code:
/knoppixnfs 172.20.1.0/24(ro,no_root_squash,async)
/ddimagesnfs 172.20.1.0/24(rw,fsid=0,no_root_squash,insecure,no_subtree_check,sync,anonuid=65534,anongid=65534)
/etc/fstab:

Code:
/dev/sda1               /                       ext3    defaults 1 1
/dev/sda3               /knoppixnfs             iso9660 rw     1 1
/dev/sda4               /ddimagesnfs            ext3    rw,acl 1 1
none                    /dev/pts                devpts  gid=5,mode=620 0 0
none                    /dev/shm                tmpfs   defaults 0 0
none                    /proc                   proc    defaults 0 0
none                    /sys                    sysfs   defaults 0 0
This is what we have to work with. Any suggestions on what to do?

Thank you.
 
Old 04-20-2007, 12:03 PM   #7
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Okay, it looks to me like the root file system is mounted on the server at /knoppixnfs, and /etc/exports confirms this. I'm a little confused about the use of "nfsdir" instead of "nfsroot"; as far as I know they may be equivalent. I'm no expert.

However, the /etc/fstab entry is a little strange. It looks to me like the server thinks /knoppixnfs is an actual CD drive. But it's not really an actual CD drive, right? It has something to do with your xen virtual machine stuff, right? Well, you've just got to figure out how to virtually "insert" the new CD into this virtual CD drive. I'm completely unfamiliar with Xen, so that's as far as my advice can go.
 
Old 04-20-2007, 12:08 PM   #8
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by IsaacKuo
However, the /etc/fstab entry is a little strange. It looks to me like the server thinks /knoppixnfs is an actual CD drive. But it's not really an actual CD drive, right? It has something to do with your xen virtual machine stuff, right? Well, you've just got to figure out how to virtually "insert" the new CD into this virtual CD drive. I'm completely unfamiliar with Xen, so that's as far as my advice can go.
Thats exactly it! There is no actual CD - it has to do with the Xen virtual machine - and that is the part that I can not figure out myself.
 
Old 04-20-2007, 12:19 PM   #9
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Well I figured it out.

I went to the xen machine that had the config file for the bootserver and had to change the ISO file name in the config. I then rebooted the system and it was good to go.

Thnaks for the help getting me there - very much appreciated.
 
Old 05-01-2007, 10:06 AM   #10
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Hello,

Update to the Knoppix server.

This works on all my laptops except the ones with a 57xx broadcom ethernet nic.

Anything I can try to get these laptops to boot to the network using this adapter card?

I will post error message in one minute.
Edit: error message is this:

Welcome to the Knoppix Terminal Client!

Can't mount NFSmount KNOOPIX filesystem, sorry. Dropping you to a very limited shell.

Modules loaded (Shows all of them)

ifconfig shows 127.0.0.1

it looks like the modules for the nic are not being loaded.
Thanks

Last edited by sharptech; 05-01-2007 at 10:11 AM.
 
Old 05-01-2007, 10:35 AM   #11
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
The terminal server is essentially running of a virtual CD, right? I somehow doubt that you can make any changes, because for all intents and purposes the virtual CD is read-only.

I assume that if you try to boot up with a real Knoppix CD on the laptops in question, the nic isn't recognized. Is this right?
 
Old 05-01-2007, 12:18 PM   #12
sharptech
Member
 
Registered: Nov 2006
Posts: 104

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by IsaacKuo
The terminal server is essentially running of a virtual CD, right? I somehow doubt that you can make any changes, because for all intents and purposes the virtual CD is read-only.

I assume that if you try to boot up with a real Knoppix CD on the laptops in question, the nic isn't recognized. Is this right?
Yes it is a virtual CD (ISO image).

The Network Admin took a look and updated the files on the server in the /tftboot directory and all is well.

Thanks
 
  


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
pxe boot "PXE-T01 file not found" ssharma_02 Linux - Networking 16 05-18-2011 03:21 PM
PXE booting Knoppix - NFS problem royceH Linux - Networking 25 12-21-2006 01:28 PM
How to update the pxe network install initrd.img and vmlinuz ? lets-eat-gary Linux - Networking 3 08-20-2006 03:45 PM
boot for Knoppix 3.6 iso suguru Debian 3 10-21-2004 03:11 PM
KNOPPIX q's: *SwapSpace *AddSoftware *boot Iso on /dev/hda1 qwijibow Linux - Distributions 1 02-26-2004 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:51 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
Open Source Consulting | Domain Registration