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

    Solved Improved grub2 solution proposal

    Feature Request
    2
    2
    1015
    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.
    • F
      fractal13 Developer last edited by

      Updated versions of fog.download, fog.upload and funcs.sh to improve grub2 support.

      Short description: These changes capture the full “embedding area” (the space before the first partition), instead of just the first 63 sectors. It turns out that grub2 may use more than the 62 sectors, if they are available. With Windows 7, the first partition is usually at 2048, not 64.

      These scripts have been tested at least one full cycle of upload/download using a dual-boot (windows 7 & ubuntu 14.04) system, using grub2 and extended partitions for the ubuntu system.

      I tried to make it so that you can just replace the old files with these. I think I even got the tabs right.

      Let me know if you have any questions.

      Thanks!

      [url=“/_imported_xf_attachments/0/869_funcs.sh-grub2.txt?:”]funcs.sh-grub2.txt[/url][url=“/_imported_xf_attachments/0/870_fog.upload-grub2.txt?:”]fog.upload-grub2.txt[/url][url=“/_imported_xf_attachments/0/871_fog.download-grub2.txt?:”]fog.download-grub2.txt[/url]

      1 Reply Last reply Reply Quote 0
      • Tom Elliott
        Tom Elliott last edited by

        This has been added to inits and scripts.

        Had to modify the saveGRUB a little bit if the disk returns with 0, it can’t create the mbr because the count get’s offset by one sector. count can’t equal -1 or 0. At least in the case of 0 it generates a d1.mbr file, but there’s no data inside of it.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        177
        Online

        10.4k
        Users

        16.4k
        Topics

        150.5k
        Posts

        Copyright © 2012-2023 FOG Project