• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Help!!! Usb boot Fog

    Scheduled Pinned Locked Moved Unsolved
    General
    5
    31
    21.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      Eze84d
      last edited by

      Using dnsmasq is not an option …

      Basically what I need is a USB drive using the host to be routed directly to my server fog to download or upload pictures or from Niebla.

      Thank you very much !!

      1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        You’re asking for a network solution still (pointing a host to the FOG server using USB), so why isn’t dnsmasq a solution?

        Instead of simply discrediting dnsmasq, maybe if you explained a little more of you’re problem, it might be something that can easily be resolved.

        And for the USB bootable drive, you just need to copy the contents of /tftpboot on your FOG server to the flash drive, where the article says to put it. You could use TFTP, or you could mount a share on FOG and transfer the files over the network, or you could simply plug the flash drive in, mount it, and copy the files over.

        1 Reply Last reply Reply Quote 0
        • V
          VincentJ Moderator
          last edited by

          Alternative… Redo Backup or something else that is similar. boot off the machine and select the ‘image’ you want to make.

          FOG does not do what you want without modification. If you don’t know how to make the modification maybe you need an alternative solution.

          If you are good at modifying things… maybe you could take out the bits in the bootable image that contact the FOG server and put them onto another OS that is USB bootable, however I fail to see the advantage if you have to move to a PC either way.

          1 Reply Last reply Reply Quote 0
          • E
            Eze84d
            last edited by

            In response,

            In response, I will not disparage in any dnsmasq time, make it clear, and it Show me otherwise. For the configuration of the DHCP server that is currently running, simply discard it, which is very different to discredit.
            The dhcp currently already working a bootloader that raises an alternative desk working on dumb terminals, so to call them.
            For this reason, only you boot the pc in question by network Win up the image of this on the server.
            I can not disable the current dhcp, or deploy a parallel that would bring many conflicts on the network, and has gone on another occasion.
            Try to Syslinux a bootable USB … and within the / copy as is the / tftpboot the Mist, not willed, does absolutely nothing.
            CLARIFY THAT I AM A BEGINNER TOTAL WITH FOG AND LINUX.
            I hope I have understood a little more context.
            If anyone has already been able to boot to usb Foggy, I saw several queries about this, if I can help it would do me a great favor !!!
            Thank you very much !!!

            1 Reply Last reply Reply Quote 0
            • E
              Eze84d
              last edited by

              Within my USB drive, I have only
              ldlinux.sys a file and a folder called / tftpboot is copying / fog / tftpboot as is indicated above me …

              When booting from the USB, I displayed:

              SYSLINUX 4.04 …
              ERROR: NO CONFIGURATION FILE FOUND.
              NO DEFAULT CONFIGURATION UI DIRECTIVE OR FOUND.
              BOOT:

              According to the post [url]http://www.fogproject.org/wiki/index.php?title=Bootable_Media[/url]

              I have also copied the / tftpboot

              Then copy the file to the root /tftpboot/pxelinux.cfg/default of the usb stick and rename it to syslinux.cfg. This should be it, your drive Should Contain the following: \ fog \ syslinux.cfg

              Within / tftpboot appears not /pxelinux.cfg/default
              Thanks!

              1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman
                last edited by

                [CODE]wget https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-5.00.zip
                unzip syslinux-5.00.zip
                rm syslinux-5.00.zip
                cd linux[/CODE]

                Now, we must find the flash drive:
                [CODE]ls -l /dev/sd*[/CODE]

                [B]It IS NOT sda, sda1, sda2, etc.[/B]
                It’s probably sdb if your system only has one hard drive and one flash drive.

                [CODE]fdisk /dev/sdb
                d (enter)
                n (enter)
                (enter through default values)
                a (enter)
                w (enter)[/CODE]

                fdisk exits when done writing.

                Make the newly created partition (/dev/sdb1) into a FAT16 partition
                [CODE]mkdosfs -IF 16 /dev/sdb1[/CODE]

                Run syslinux
                [CODE]./syslinux -i /dev/sdb1[/CODE]

                Copy MBR info
                [CODE]cd …
                cd mbr
                dd conv=notrunc bs=440 count=1 if=mbr.bin of=/dev/sdb[/CODE]

                Copy /tftpboot to new partition
                [CODE]cp -dR /tftpboot /<FlashDriveMountName>[/CODE]

                Here’s where stuff gets fuzzy for me…
                You need to rename a bootfile in /tftpboot to /syslinux.cfg
                I assume you just rename the file you want to use… so we will use undionly.kpxe
                [CODE]cd /[/CODE]
                [CODE]cd <FlashDriveMountName>[/CODE]
                [CODE]cp /tftpboot/undionly.kpxe syslinux.cfg[/CODE]

                (some of the) Resources used:
                [url]http://www.fogproject.org/wiki/index.php?title=Bootable_Media[/url]
                [url]http://www.syslinux.org/wiki/index.php/HowTos[/url]
                [url]http://tldp.org/HOWTO/Partition/fdisk_partitioning.html[/url]
                [url]http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/how-do-i-format-an-sd-card-to-fat16-using-linux-so-that-i-can-use-it-on-my-pda-533725/[/url]
                [url]https://www.kernel.org/pub/linux/utils/boot/syslinux/[/url]

                NOTES: Ended up using syslinux 5.0 because the files that their how-to was refering to just didn’t exist in the latest version and I didn’t know what to do. I took a guess and picked 5 and the referenced files were there.

                Beware, I’ve not tested any of this yet, I merely went through the steps myself till I sort of figured it out… maybe. It’s late… going to bed…

                -.-

                1 Reply Last reply Reply Quote 0
                • J
                  jbsclm Developer
                  last edited by

                  Is this of use.
                  [url]http://fogproject.org/forum/threads/physical-boot-disk-for-imaging.12142/#post-40540[/url]
                  The CD just provides the boot stuff, everything else is pulled from the FOG Server.

                  You can make a bootable usb from the ISO, we used RUFUS

                  1 Reply Last reply Reply Quote 0
                  • E
                    Eze84d
                    last edited by

                    Thank you very much to all, as have some novelty’ll let you know !!!
                    Your understanding that if no answer is because someday I could do tests.
                    Again I thank all !!! I keep abreast !!!
                    Thank you !!!

                    1 Reply Last reply Reply Quote 0
                    • E
                      Eze84d
                      last edited by

                      [quote=“Wayne Workman, post: 45964, member: 28155”][CODE]wget https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-5.00.zip
                      unzip syslinux-5.00.zip
                      rm syslinux-5.00.zip
                      cd linux[/CODE]

                      Now, we must find the flash drive:
                      [CODE]ls -l /dev/sd*[/CODE]

                      [B]It IS NOT sda, sda1, sda2, etc.[/B]
                      It’s probably sdb if your system only has one hard drive and one flash drive.

                      [CODE]fdisk /dev/sdb
                      d (enter)
                      n (enter)
                      (enter through default values)
                      a (enter)
                      w (enter)[/CODE]

                      fdisk exits when done writing.

                      Make the newly created partition (/dev/sdb1) into a FAT16 partition
                      [CODE]mkdosfs -IF 16 /dev/sdb1[/CODE]

                      Run syslinux
                      [CODE]./syslinux -i /dev/sdb1[/CODE]

                      Copy MBR info
                      [CODE]cd …
                      cd mbr
                      dd conv=notrunc bs=440 count=1 if=mbr.bin of=/dev/sdb[/CODE]

                      Copy /tftpboot to new partition
                      [CODE]cp -dR /tftpboot /<FlashDriveMountName>[/CODE]

                      Here’s where stuff gets fuzzy for me…
                      You need to rename a bootfile in /tftpboot to /syslinux.cfg
                      I assume you just rename the file you want to use… so we will use undionly.kpxe
                      [CODE]cd /[/CODE]
                      [CODE]cd <FlashDriveMountName>[/CODE]
                      [CODE]cp /tftpboot/undionly.kpxe syslinux.cfg[/CODE]

                      (some of the) Resources used:
                      [url]http://www.fogproject.org/wiki/index.php?title=Bootable_Media[/url]
                      [url]http://www.syslinux.org/wiki/index.php/HowTos[/url]
                      [url]http://tldp.org/HOWTO/Partition/fdisk_partitioning.html[/url]
                      [url]http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/how-do-i-format-an-sd-card-to-fat16-using-linux-so-that-i-can-use-it-on-my-pda-533725/[/url]
                      [url]https://www.kernel.org/pub/linux/utils/boot/syslinux/[/url]

                      NOTES: Ended up using syslinux 5.0 because the files that their how-to was refering to just didn’t exist in the latest version and I didn’t know what to do. I took a guess and picked 5 and the referenced files were there.

                      Beware, I’ve not tested any of this yet, I merely went through the steps myself till I sort of figured it out… maybe. It’s late… going to bed…

                      -.-[/quote]

                      Dude, I followed your instructions to the letter, and nothing …

                      I still appears boot: the display … waiting an order …

                      Any ideas ??? Other help ???

                      Thank you very much!

                      1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman
                        last edited by

                        I never guaranteed that those instructions would work…

                        I tested the flash drive that I made and it also did not work. I’ll work on it more this weekend, I’ve got a 3 day weekend; took Monday off.

                        1 Reply Last reply Reply Quote 0
                        • cmlC
                          cml Moderator
                          last edited by

                          Disclaimer: I have only tested this on Lenovo laptops.

                          Go to this wiki entry: [url]http://www.fogproject.org/wiki/index.php/Building_undionly.kpxe[/url]

                          Follow steps until you get to ‘Build the undionly/ipxe files.’

                          Build ipxe.usb with this command: [CODE]make bin/ipxe.usb EMBED=ipxescript[/CODE]

                          Find your usb location (/dev/sdc for me): [CODE]ls -l /dev/sd*[/CODE]

                          Write ipxe.usb to the usb:[CODE]dd if=bin/ipxe.usb of=/dev/sdc[/CODE]

                          1 Reply Last reply Reply Quote 0
                          • E
                            Eze84d
                            last edited by

                            Thank you very much, I also am going to try the weekend !!!

                            1 Reply Last reply Reply Quote 0
                            • E
                              Eze84d
                              last edited by

                              Well guys, I was a little lost with this issue … and I wanted to revive …

                              I need you through a USB flash drive, if possible I ask for a ip and server redirect me where I have my fog.

                              I hope your answers !!!

                              Thanks !!!

                              1 Reply Last reply Reply Quote 0
                              • Wayne WorkmanW
                                Wayne Workman
                                last edited by

                                Ok. Let’s start over.

                                You’re using FOG 1.2.0.

                                What distribution and version of Linux?

                                E 1 Reply Last reply Reply Quote 0
                                • E
                                  Eze84d @Wayne Workman
                                  last edited by

                                  @Wayne-Workman

                                  Correct, fog 1.2.0 and 7.8.0 debian.

                                  1 Reply Last reply Reply Quote 0
                                  • Wayne WorkmanW
                                    Wayne Workman
                                    last edited by

                                    And you said you’d try dnsmasq if it was simple ?

                                    E 1 Reply Last reply Reply Quote 0
                                    • E
                                      Eze84d @Wayne Workman
                                      last edited by

                                      @Wayne-Workman

                                      I have no idea how it works dnmasq … if not bring me problems with what is already armed … there would be problems.

                                      My dhcp, currently assigned ips, and also has a boot loader for dumb terminals for remote desktop working … and it is not feasible to modify this …

                                      Therefore, I need “something” bootee via USB, take my dhcp ip, and be redirected to the server will boot directly fog … if by network normally reach a remote Windows desktop …

                                      I hope is clear, as I am using Google translator, not handle the English.

                                      Apologies and thank you very much for your help !!!

                                      1 Reply Last reply Reply Quote 0
                                      • Wayne WorkmanW
                                        Wayne Workman
                                        last edited by Wayne Workman

                                        Ok.

                                        I’ll work on a USB boot drive tonight, and if/when I get it going, I’ll provide an ISO copy.

                                        I want one for myself anyways.

                                        E 1 Reply Last reply Reply Quote 0
                                        • E
                                          Eze84d @Wayne Workman
                                          last edited by

                                          @Wayne-Workman

                                          Thank you very much for your help !!!

                                          If it is easier to teach and explain a dnsmask … and not generate problems will miss him … welcome received !!!

                                          The only bear with me … I’m a beginner with all this !!!

                                          1 Reply Last reply Reply Quote 0
                                          • Wayne WorkmanW
                                            Wayne Workman
                                            last edited by

                                            This post is deleted!
                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            153

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project