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

    Partclone "error exit" on older PCs

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    3
    670
    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.
    • N
      nikolay_semov
      last edited by

      Re: Partclone won't image our Dells

      ubuntu 14.04
      Fog 1.2.0

      In our case, a debug download revealed a message immediately after partclone exists with the “error exit” message: /dev/sda1 not found. The partition did not exist. Why?

      For WIndows XP, fog writes a boot sector to the hard drive (that’s Stage 1 preparation). The boot sector being written is from a file /usr/share/fog/mbr/xp.mbr inside the init.xz image. That boot sector has a partition table containing a single partition starting at 32.3kB and ending at 80.0GB. If you hard drive is 79.99GB instead – as may be the case with older computers – that partition goes beyond the end of the disk, thus making the partition table invalid. Hence /dev/sda1 isn’t there and partclone fails.

      Here’s how we solved it:
      – Find the init.xz image (/var/www/fog/service/ipxe/init.xz)
      – Unpack and mount the image (https://wiki.fogproject.org/wiki/index.php/Modifying_the_Init_Image)
      – Use dd to copy xp.mbr onto an HDD (in this case, an additional, say 200 GB, virtual HDD)
      (e.g. dd if=xp.mbr of=/dev/sdc bs=512 count=1)
      – Use parted on that HDD (resizepart 1 35.0GB) – should be larger than your largest image, but smaller than your smallest HDD
      – Use dd to copy the boot sector from the HDD back into the xp.mbr file
      – Unmount and repack init.xz

      Done.

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

        If the image was made with anything before 1.0.0 released its most likely the image is still in part image format, but the install of 1.2.0 was likely performed, then the old data imported to the 1.2.0 server. I would see about changing the image format from partclone to partimage and see if it starts working. What is the image type as well? If it’s xp/vista I’m aware there was a problem with 1.2.0 which was fixed shortly after release but only performed on the development release.

        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 1
        • N
          nikolay_semov
          last edited by

          Confirmed Windows XP.

          Image was created with Fog 1.2.0 from a reference machine. I know there’s been talk about a fix, but I posted here for the benefit of folks who use the released 1.2.0 and are trying to image older computers with smaller HDDs.

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

          186

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project