1 (edited by Linuxator2 2012-12-14 13:44:16)

Topic: Booting the live CD with PXE, unknown filesystem

Hi !

I've set up my PXE server, can boot other things with it.

When i try GParted, i end with an:
Unknown filesystem type on /dev/loop0 (/live/image/live/filesystem.squashfs)

In the initramfs console, i can see that the squashfs module is not loaded.

ifconfig is ok.

My pxe cfg append:

append initrd=gparted/live/initrd.img boot=live config union=aufs noswap noprompt  nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.blacklist=yes fetch=tftp://10.0.0.1/gparted/live/filesystem.squashfs

2

Re: Booting the live CD with PXE, unknown filesystem

Which version of the GParted Live image are you using?

3

Re: Booting the live CD with PXE, unknown filesystem

The 0.14.0-1. I extracted the files from the .iso.

I'll try with the latest 0.14.1-1.

4

Re: Booting the live CD with PXE, unknown filesystem

Good idea.  Please let us know if that works.

5

Re: Booting the live CD with PXE, unknown filesystem

Have the same exact problem.

6

Re: Booting the live CD with PXE, unknown filesystem

Retried with different options, still not working.

7 (edited by Linuxator2 2012-12-16 22:57:48)

Re: Booting the live CD with PXE, unknown filesystem

removed/edited

I did all i can... still no luck hmm.
Maybe you should add a modprobe squashfs in the initrd, because even ocs_prerun="modprobe squashfs" doesn't do the trick ?

8

Re: Booting the live CD with PXE, unknown filesystem

The initrd from GParted live should work already, you do not have to modprobe squashfs manually.
I have tested to boot GParted live 0.14.1-1 using a PXE server, and works without any issue.
The PXE config I have here:
=========
label GParted-live
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL GParted Live 0.14.1-1 (Ramdisk)
  # MENU PASSWD
  KERNEL GParted-live-vmlinuz
  APPEND initrd=GParted-live-initrd.img boot=live config  noswap  ip=frommedia  nosplash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.blacklist=yes noprompt fetch=tftp://192.168.120.254/GParted-live-filesystem.squashfs

  TEXT HELP
  GParted Live 0.14.1-1 runs on RAM
  ENDTEXT
======================

Those files GParted-live-filesystem.squashfs  GParted-live-initrd.img
GParted-live-vmlinuz are copied from GParted live 0.14.1-1 iso file.

Steven.

9

Re: Booting the live CD with PXE, unknown filesystem

Tried with your exact same settings, i still have the Unknown filesystem type on /dev/loop0 (/live/image/live/filesystem.squashfs)
I encountered this recently for another thing because squashfs wasn't compiled with the recent xz support.

And the module isn't loaded...

The live.log ends with:
Begin: Running /scripts/live-realpremount ... done.

You took kernel/initrd from the /live directory ?

10

Re: Booting the live CD with PXE, unknown filesystem

Yes, I took the files from /live dir:
10594488  2012-12-13 03:34   live/initrd.img
  2503264  2012-12-13 03:34   live/vmlinuz
115421184  2012-12-13 03:34   live/filesystem.squashfs

You'd better to compare the files on the PXE server are the ones from the GParted live iso file. Otherwise there is no reason here I can boot while yours can't.

Besides, if xz module is an issue (in initrd), it will be a universal issue, not only for PXE, but also for CD or USB flash drive.

Steven.

11

Re: Booting the live CD with PXE, unknown filesystem

Ok, i will.

I can boot systemrecuecd which includes GParted, but i'd really enjoy to have the straight GP live.

Thx for you replies.

12 (edited by Linuxator2 2012-12-20 00:21:03)

Re: Booting the live CD with PXE, unknown filesystem

Md5sums are identical.

Tried with an older tftp (0.17) without success.

I noticed in the live.log that
rootpath:
is empty.
Is that normal ?

---EDIT: After manual tries i noticed that the problem is the -b 10240 option !!!

I retyped the live.log command character for character, and without this jackass -b 10240, i'm able to download the filesystem.squashfs.

So without further ado: how can i bypass this option ?

---EDIT: tried other values (^2), none worked.

My server is launched through inetd with these options:

tftp  dgram   udp     wait    root    /usr/sbin/in.tftpd  in.tftpd -s /tftpboot -r blksize

---EDIT: suppressed "-r blksize" from my server: it works, i can boot the live cd !!!

Maybe you should add this workaround to the pxe page:
http://gparted.sourceforge.net/livepxe.php

And maybe remove the "NOTE3: Do not use the parameter "ip=frommedia" in your PXE config file." because you seem to use it, and it also work here.

---EDIT: i don't know if removing "-r blksize" will harm my own setup.
Maybe the "useless" switch is the one in your initrd ?
I frankly don't know.

13

Re: Booting the live CD with PXE, unknown filesystem

As i edited a lot the previous post, i bump !

14

Re: Booting the live CD with PXE, unknown filesystem

The tftpd I am using on my Debian box is tftpd-hpa 5.0-18, and its config:
$ cat /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot/nbi_img"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"

It has been working for many years.... at least 3 years I believe.
Maybe it's because your tftpd is too old?

Steven.

15 (edited by Linuxator2 2013-01-02 18:11:17)

Re: Booting the live CD with PXE, unknown filesystem

Well, it could have been a version problem but it's not, it purely an option problem.

I corrected mine, and it seems my other PXE systems are not affected.
Thought, you should put this info on the PXE page, 'cause i didn't found anything on it on google, i just tried and found by myself.

16

Re: Booting the live CD with PXE, unknown filesystem

Sure, however, we have to identify the problem first.
For the modern GNU/Linux, the tftpd is the tftpd-hpa, and it works with GParted live well.
I found there is a Clonezilla live user reported the same issue here:
https://sourceforge.net/projects/clonez … dex/page/1
He mentioned "the problem was the tftp server which was into "PXE compatibility mode", changing it to "negotiate options" fixed this and other issues".
I'd like to know which versions of tftpd and OS you are using, so that we know how to describe them on the PXE page.

Steven.

17 (edited by Linuxator2 2013-01-04 15:46:14)

Re: Booting the live CD with PXE, unknown filesystem

Slackware ARM 14.0, tftp-hpa-0.49 unpatched.
Here's the build info: http://www.slackware.at/data/slackware- … /tftp-hpa/

I run it through inetd, with this default parameter:
tftp  dgram   udp     wait    root    /usr/sbin/in.tftpd  in.tftpd -s /srv/exports/tftpboot -r blksize

I had to remove "-r blksize" to make it work.