• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Xibeaga
    3. Posts
    X
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 40
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by Xibeaga

    • capture computrer crashed - file system compressed and corrupt

      Hi!
      I captured a linux computer (debian 12, ext4).
      Unfortunately the power failed during the capture process.
      At the beginning of the process the disk was compressed, then the capture started, then the power failed. Now the filesystem has not been uncompressed.
      Is there anything I can do ?
      (I use FOG since v0.9something and this problem NEVER occured)
      Thanks!
      Xibeaga

      posted in Linux Problems
      X
      Xibeaga
    • RE: Cloning loops forever

      Hello Sebastian!
      Cloning works again, maybe some sun flares 😉

      Your kernel-params for sercon are working great!
      Thanks a lot for your help!

      Best regards,
      R.

      posted in Linux Problems
      X
      Xibeaga
    • RE: Cloning loops forever

      Dear Sebastian!

      Wow! Any kind of display at headless machines would be great!
      It is an APU-Board.
      https://www.pcengines.ch/apu3c4.htm

      enabling the sserial console withj kernel params would be cool!

      Your guess: single disk multi partitions is correct

      Your suggestion lead to this: Everything went fine. In debug-mode the clone was successful.

      After the successful cloning in debug-mode
      I tried again with non-debug but did not change the moidified ramdisk back, cloning worked

      After the successful cloning I re-did with the original ramdisk: cloning worked

      I have no idea whats going on.
      thx!
      R

      root@1stNAS:/images/dev/000db94a39a8# file d1p1.img.000 
      d1p1.img.000: gzip compressed data, last modified: Sun Nov 25 20:22:26 2018, from Unix
      
      cat d1.partitions 
      label: dos
      label-id: 0x42d3de51
      device: /dev/sda
      unit: sectors
      
      /dev/sda1 : start=        2048, size=   449218560, type=83
      /dev/sda2 : start=   449220608, size=    39176560, type=82
      

      And here comes the log:

      [Sun Nov 25 root@fogclient ~]# fog
       * Running post init scripts.........................Done
       * Press [Enter] key to continue
      
      
         ==================================
         ===        ====    =====      ====
         ===  =========  ==  ===   ==   ===
         ===  ========  ====  ==  ====  ===
         ===  ========  ====  ==  =========
         ===      ====  ====  ==  =========
         ===  ========  ====  ==  ===   ===
         ===  ========  ====  ==  ====  ===
         ===  =========  ==  ===   ==   ===
         ===  ==========    =====      ====
         ==================================
         ===== Free Opensource Ghost ======
         ==================================
         ============ Credits =============
         = https://fogproject.org/Credits =
         ==================================
         == Released under GPL Version 3 ==
         ==================================
         Version: 1.5.5
       * Press [Enter] key to continue
      
       * Verifying network interface configuration.........Done
       * Press [Enter] key to continue
      
       * Checking Operating System.........................Windows XP
       * Checking CPU Cores................................4
       * Send method.......................................NFS
       * Attempting to check in............................Done
       * Press [Enter] key to continue
      
       * Mounting File System..............................Done
       * Press [Enter] key to continue
      
       * Checking Mounted File System......................Done
       * Press [Enter] key to continue
      
       * Checking img variable is set......................Done
       * Press [Enter] key to continue
      
       * Preparing to send image file to server
       * Preparing backup location.........................Done
       * Press [Enter] key to continue
      
       * Setting permission on /images/000db94a39a8........Done
       * Press [Enter] key to continue
      
       * Removing any pre-existing files...................Done
       * Press [Enter] key to continue
      
       * Using Image: nsa193_ssd_msata
       * Looking for Hard Disk.............................Done
       * Press [Enter] key to continue
      
       * Reading Partition Tables..........................Done
       * Press [Enter] key to continue
      
       * Using Hard Disk: /dev/sda
       * Now FOG will attempt to capture the image using Partclone
       * Press [Enter] key to continue
      
       * Processing Hard Disk: /dev/sda
       * Saving original disk/parts UUIDs
       * Press [Enter] key to continue
      
      
       * Saving Partition Tables (MBR).....................Done
       * Press [Enter] key to continue
      Done
       * Press [Enter] key to continue
      
       * Processing Partition: /dev/sda1 (1)
       * Press [Enter] key to continue
      
       * Using partclone.extfs
       * Press [Enter] key to continue
      
      Cloned successfully.
       * Image Captured
       * Press [Enter] key to continue
      
       * Processing Partition: /dev/sda2 (2)
       * Press [Enter] key to continue
      
       * Saving swap partition UUID
       * Saving UUID (bf7eaf1e-a5fc-4a3a-aa1d-3fc55096e747) for (/dev/sda2)
       * Stopping FOG Status Reporter......................Done
       * Press [Enter] key to continue
      
       * Task Complete
       * Updating Database.................................
      Done
       * Press [Enter] key to continue
      [Sun Nov 25 root@fogclient ~]# 
      

      @Sebastian-Roth said in Cloning loops forever:

      ssh -o “UserKnownHostsFile=/dev/null” -o “StrictHostKeyChecking=no” root@

      posted in Linux Problems
      X
      Xibeaga
    • RE: Cloning loops forever

      Dropbox 🙂
      here ii is:
      https://www.dropbox.com/s/8iuhvmlwuepwihw/fog.webm?dl=0

      posted in Linux Problems
      X
      Xibeaga
    • RE: Cloning loops forever

      Hi There!

      Uh! It took me a while to make a video.

      Since i installed 1.5.5 the behaviour changed a bit: now the computer reboots everyx time it wants to get a new clone, but loops anyway.

      Where can I put it? Its got 80MB. Maybe i can send it by “wetransfer.com”?

      Here is the description:

      you can see 3 Windows:
      upper left: serial console to the computer that shall be captured
      upper rigth: „watch -la /images/dev/00
“

      these are the events at specific timestamps:
      0:29 computer boots (its headless, only serial console is available to watch it)
      1:47: directories+files are created
      1:50: clone starts
      3:28 reboot
      4:54 ftp test

      posted in Linux Problems
      X
      Xibeaga
    • Cloning loops forever

      Hi!

      My clone (capture) loops forever.

      I tried these 3 things - more than once 😉

      1st) i checked all passwords, I walked through https://wiki.fogproject.org/wiki/index.php/Troubleshoot_FTP

      2nd) i installed 1.5.5 over 1.5.0

      3rd) i checked all passwords - incl. the linux-user “fog”

      What happens:

      when clone is finished, it starts from beginning. Computer does NOT(!) reboot, it simply starts to clone again.

      the /images/dev/00
 looks like:
      drwxrwxrwx 2 fog root 96 Nov 20 22:56 .
      drwxrwxrwx 4 fog root 4096 Nov 20 22:04 

      -rw-r–r-- 1 root root 0 Nov 20 22:56 d1.has_grub
      -rw-r–r-- 1 root root 1048576 Nov 20 22:56 d1.mbr
      -rw-r–r-- 1 root root 20 Nov 20 22:56 d1p1.img.000
      -rw-r–r-- 1 root root 182 Nov 20 22:56 d1.partitions

      Give attention to the d1p1.img.000 entry.
      It starts with size 0, then goes to 20, and thats it. it never grows bigger.
      i can change whatever permissions what ever i want, no change.

      when ist starts over, the MAC-Dir is deleted and newly made with root:root and thats it.

      Any help is welcome!
      regards

      posted in Linux Problems
      X
      Xibeaga
    • RE: PartClone Error

      @tom-elliott
      Nice move! Thanks a lot!
      i give it a try!

      posted in FOG Problems
      X
      Xibeaga
    • RE: PartClone Error

      @tom-elliott
      I think i will change the FS of the disk, so it will become cloneable.

      have a nice day and thanks a lot for your help!
      can you mark the thread solved?

      posted in FOG Problems
      X
      Xibeaga
    • RE: PartClone Error

      @tom-elliott
      Hi!

      i just saw, that FOG uses partclone 0.2.89 but 0.3.10 is actual.
      BTRFS seems to be an issue with partclone.

      Is there a way to upgrade partclone to 0.3.10 in a debian installation of fog ?

      thx!

      posted in FOG Problems
      X
      Xibeaga
    • RE: PartClone Error

      @tom-elliott
      Okay, clonezille (live) crashed too.
      it terminates without any error-message or exit-code.

      the only solution I came up at the moment is:
      running fog DEBUG and boot into a shell
      then mount the fog nfs share
      then dd both disks onto that share

      so, at least i have a backup 😉

      if you have any better idea, you are welcome!

      best regards,
      Xibeaga

      posted in FOG Problems
      X
      Xibeaga
    • RE: PartClone Error

      @tom-elliott
      hey, no problem at all! :)))

      Okay, ic. I suspected partclone too.

      I never used clonezilla, I just know it exists. I use fog since 0.98 or so
 😉
      Ok, I will try clonezilla on this.
      Hm, maybe i should try fog with dd first?

      posted in FOG Problems
      X
      Xibeaga
    • RE: DHCP Reservations

      Hi!

      1. Search for dhcp.conf or dhcp3.conf or something in /etc
      2. edit this file with nano or vi
      3. for each host you need an entry of this form:

      host MYCOOLHOST {
      hardware ethernet 00:00:00:00:00:00;
      fixed-address 1.2.3.4;
      }

      1. Replace the 00:00:00:00:00:00 hosts MAC
      2. Replace 1.2.3.4 with your desired IP
      3. restart dhcp service or simply reboot

      hth
      xibeaga

      posted in FOG Problems
      X
      Xibeaga
    • RE: PartClone Error

      @tom-elliott

      Here you can see the mount and fdisk output:

      root@uhura:~# mount | grep “sd[a|b]”
      /dev/sdb1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      /dev/sda1 on /harddisk type btrfs (rw,relatime,ssd,space_cache,subvolid=5,subvol=/)

      root@uhura:~# fdisk -l /dev/sdb /dev/sda
      Medium /dev/sdb: 14,9 GiB, 16013942784 Bytes, 31277232 Sektoren
      Einheiten: sectors von 1 * 512 = 512 Bytes
      SektorengrĂ¶ĂŸe (logisch/physisch): 512 Bytes / 512 Bytes
      I/O GrĂ¶ĂŸe (minimal/optimal): 512 Bytes / 512 Bytes
      Typ der Medienbezeichnung: gpt
      Medienkennung: FBF13E8A-6828-4DF5-93D2-F3781739F721

      GerĂ€t Start Ende Sektoren GrĂ¶ĂŸe Typ
      /dev/sdb1 2048 31277055 31275008 14,9G Linux filesystem

      Medium /dev/sda: 894,3 GiB, 960197124096 Bytes, 1875385008 Sektoren
      Einheiten: sectors von 1 * 512 = 512 Bytes
      SektorengrĂ¶ĂŸe (logisch/physisch): 512 Bytes / 512 Bytes
      I/O GrĂ¶ĂŸe (minimal/optimal): 512 Bytes / 512 Bytes
      Typ der Medienbezeichnung: gpt
      Medienkennung: 945D3E9A-EC7B-4ECA-80E2-CED391F83CB7

      GerĂ€t Start Ende Sektoren GrĂ¶ĂŸe Typ
      /dev/sda1 2048 1875384974 1875382927 894,3G Linux filesystem

      posted in FOG Problems
      X
      Xibeaga
    • RE: PartClone Error

      Hi Tom!

      Ah, sdA is data, i boot from sdB:

      sdb = ext4 = boot disk 😉
      sda = btrfs = data

      so, the problem persists. Any idea about it?
      Maybe BTRFS is the problem?

      thx!
      Regards,
      Xibeaga

      posted in FOG Problems
      X
      Xibeaga
    • PartClone Error

      Hi!

      I get this error:
      set block XXX out of boundary(XXXX)

      The Image: MultiDisk/Mulktipartition
      Disk1: ext4 (boot-disk)
      Disk2: btrfs (data-disk)
      partclone uncompressed

      I do clone lot of disks, even headless embedded devices (works great!!) but this Lenovo Laptop makes problems 😞

      As you can see on the pic: error is even in debug-mode

      Any help is welcome!

      regards,
      Xibeaga
      0_1524994519474_fog_error.jpg

      posted in FOG Problems
      X
      Xibeaga
    • RE: Boot.php permissiondenied

      Hey, konw I know lots more about fog than i used to know, and i use it since 0.30 or so 😉

      posted in FOG Problems
      X
      Xibeaga
    • RE: Boot.php permissiondenied

      I Found it!
      *** OUCH ***
      The apache-log revealed it: HTTP 401 is the problem. 401 -> user authorization required!!!
      /var/www was protected by .htaccess sigh

      I am really sorry to have bothered you with this, on the other hand: I would have had no chance to figure it out without your hint to check the apache-log 😉

      THANKS A LOT !!!
      Best regards!
      Xibeaga

      posted in FOG Problems
      X
      Xibeaga
    • RE: Boot.php permissiondenied

      Okay, i did. no change to the behaviour.

      I recognized that dir ipxe is not owned by “www-data” but by “fog”, the contents of ipxe are also owned by “fog”
      everything else is owned by “www-data” it seems.

      And YES this appears on all clients, also with different hardware

      How i generated the logfile:

      1. I stopped apache
      2. i deleted all logs
      3. i launched apache
      4. i pxebooted a client
      5. stopped apache
        Unfortunately ther is exactly 1 line in the logfile:

      172.16.3.51 - - [27/Nov/2014:22:15:43 +0100] “POST /fog/service/ipxe/boot.php HTTP/1.1” 401 722 “-” “iPXE/1.0.0+ (3a02)”

      posted in FOG Problems
      X
      Xibeaga
    • RE: Boot.php permissiondenied

      Okay, here is a screenshot, maybe this helps.

      [url=“/_imported_xf_attachments/1/1524_fogerror.png?:”]fogerror.png[/url]

      posted in FOG Problems
      X
      Xibeaga
    • RE: Boot.php permissiondenied

      this: IP looks fine

      #!ipxe
      cpuid --ext 29 && set arch x86_64 || set arch i386
      params
      param mac0 ${net0/mac}
      param arch ${arch}
      isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
      isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
      :bootme
      chain [url]http://172.16.3.93/fog/service/ipxe/boot.php##params[/url]

      posted in FOG Problems
      X
      Xibeaga
    • 1 / 1