{"action":"created","issue":{"url":"https://api.github.com/repos/rear/rear/issues/544","labels_url":"https://api.github.com/repos/rear/rear/issues/544/labels{/name}","comments_url":"https://api.github.com/repos/rear/rear/issues/544/comments","events_url":"https://api.github.com/repos/rear/rear/issues/544/events","html_url":"https://github.com/rear/rear/issues/544","id":56539502,"number":544,"title":"rear does not support SUSE-specific 'gpt_sync_mbr' partition scheme (unable to recover when hybrid MBR found)","user":{"login":"roseswe","id":3810660,"avatar_url":"https://avatars.githubusercontent.com/u/3810660?v=3","gravatar_id":"","url":"https://api.github.com/users/roseswe","html_url":"https://github.com/roseswe","followers_url":"https://api.github.com/users/roseswe/followers","following_url":"https://api.github.com/users/roseswe/following{/other_user}","gists_url":"https://api.github.com/users/roseswe/gists{/gist_id}","starred_url":"https://api.github.com/users/roseswe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roseswe/subscriptions","organizations_url":"https://api.github.com/users/roseswe/orgs","repos_url":"https://api.github.com/users/roseswe/repos","events_url":"https://api.github.com/users/roseswe/events{/privacy}","received_events_url":"https://api.github.com/users/roseswe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rear/rear/labels/bug","name":"bug","color":"d7e102"},{"url":"https://api.github.com/repos/rear/rear/labels/cleanup","name":"cleanup","color":"DDDDDD"},{"url":"https://api.github.com/repos/rear/rear/labels/discuss","name":"discuss","color":"ffa500"},{"url":"https://api.github.com/repos/rear/rear/labels/enhancement","name":"enhancement","color":"02e10c"}],"state":"open","locked":false,"assignee":{"login":"jsmeix","id":1788608,"avatar_url":"https://avatars.githubusercontent.com/u/1788608?v=3","gravatar_id":"","url":"https://api.github.com/users/jsmeix","html_url":"https://github.com/jsmeix","followers_url":"https://api.github.com/users/jsmeix/followers","following_url":"https://api.github.com/users/jsmeix/following{/other_user}","gists_url":"https://api.github.com/users/jsmeix/gists{/gist_id}","starred_url":"https://api.github.com/users/jsmeix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsmeix/subscriptions","organizations_url":"https://api.github.com/users/jsmeix/orgs","repos_url":"https://api.github.com/users/jsmeix/repos","events_url":"https://api.github.com/users/jsmeix/events{/privacy}","received_events_url":"https://api.github.com/users/jsmeix/received_events","type":"User","site_admin":false},"milestone":null,"comments":18,"created_at":"2015-02-04T15:13:56Z","updated_at":"2015-11-02T14:48:28Z","closed_at":null,"body":"Output of rear recover\r\n:: cut ::\r\n````\r\n2015-02-04 15:07:13 Size of device sdi matches.\r\n2015-02-04 15:07:13 Looking for sdj...\r\n2015-02-04 15:07:13 Device sdj exists.\r\n2015-02-04 15:07:13 Size of device sdj matches.\r\n2015-02-04 15:07:13 Disk configuration is identical, proceeding with restore.\r\n2015-02-04 15:07:13 Including layout/prepare/default/30_map_disks.sh\r\n2015-02-04 15:07:13 Including layout/prepare/default/31_remove_exclusions.sh\r\n2015-02-04 15:07:13 Including layout/prepare/default/32_apply_mappings.sh\r\n2015-02-04 15:07:13 Including layout/prepare/default/40_autoresize_disks.sh\r\n2015-02-04 15:07:13 Including layout/prepare/default/50_confirm_layout.sh\r\n2015-02-04 15:07:13 Including layout/prepare/default/51_list_dependencies.sh\r\n2015-02-04 15:07:13 Including layout/prepare/default/52_exclude_components.sh\r\n2015-02-04 15:07:13 Including layout/prepare/default/54_generate_device_code.sh\r\n2015-02-04 15:07:13 ERROR: Partition number '' of partition  is not a valid number.\r\n=== Stack trace ===\r\nTrace 0: /bin/rear:249 main\r\nTrace 1: /usr/share/rear/lib/recover-workflow.sh:29 WORKFLOW_recover\r\nTrace 2: /usr/share/rear/lib/framework-functions.sh:70 SourceStage\r\nTrace 3: /usr/share/rear/lib/framework-functions.sh:31 Source\r\nTrace 4: /usr/share/rear/layout/prepare/default/54_generate_device_code.sh:52 source\r\nTrace 5: /usr/share/rear/lib/layout-functions.sh:35 create_device\r\nTrace 6: /usr/share/rear/layout/prepare/GNU/Linux/10_include_partition_code.sh:68 create_disk\r\nTrace 7: /usr/share/rear/layout/prepare/GNU/Linux/10_include_partition_code.sh:210 create_partitions\r\nTrace 8: /usr/share/rear/lib/layout-functions.sh:328 get_partition_number\r\nTrace 9: /usr/share/rear/lib/_input-output-functions.sh:132 StopIfError\r\nMessage: Partition number '' of partition  is not a valid number.\r\n===================\r\n/usr/share/rear/lib/layout-functions.sh: line 331: ((: <= 128 : syntax error: operand expected (error token is \"<= 128 \")\r\n2015-02-04 15:07:13 ERROR: Partition  is numbered ''. More than 128 partitions is not supported.\r\n=== Stack trace ===\r\nTrace 0: /bin/rear:249 main\r\nTrace 1: /usr/share/rear/lib/recover-workflow.sh:29 WORKFLOW_recover\r\nTrace 2: /usr/share/rear/lib/framework-functions.sh:70 SourceStage\r\nTrace 3: /usr/share/rear/lib/framework-functions.sh:31 Source\r\nTrace 4: /usr/share/rear/layout/prepare/default/54_generate_device_code.sh:52 source\r\nTrace 5: /usr/share/rear/lib/layout-functions.sh:35 create_device\r\nTrace 6: /usr/share/rear/layout/prepare/GNU/Linux/10_include_partition_code.sh:68 create_disk\r\nTrace 7: /usr/share/rear/layout/prepare/GNU/Linux/10_include_partition_code.sh:210 create_partitions\r\nTrace 8: /usr/share/rear/lib/layout-functions.sh:332 get_partition_number\r\nTrace 9: /usr/share/rear/lib/_input-output-functions.sh:132 StopIfError\r\nMessage: Partition  is numbered ''. More than 128 partitions is not supported.\r\n===================\r\n2015-02-04 15:07:13 Running exit tasks.\r\n2015-02-04 15:07:13 Finished in 71 seconds\r\n2015-02-04 15:07:13 Removing build area /tmp/rear.ZhlcnK9tviL0e8q\r\nrmdir: removing directory, `/tmp/rear.ZhlcnK9tviL0e8q/outputfs'\r\nrmdir: failed to remove `/tmp/rear.ZhlcnK9tviL0e8q/outputfs': No such file or directory\r\nrmdir: removing directory, `/tmp/rear.ZhlcnK9tviL0e8q'\r\n2015-02-04 15:07:13 End of program reached\r\n````\r\n\r\n\r\n\r\n\r\n\r\n````\r\n# fdisk -l /dev/sda\r\n\r\nWARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.\r\n\r\nDisk /dev/sda: 64.4 GB, 64424509440 bytes\r\n255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors\r\nUnits = sectors of 1 * 512 = 512 bytes\r\nSector size (logical/physical): 512 bytes / 512 bytes\r\nI/O size (minimum/optimal): 512 bytes / 512 bytes\r\nDisk identifier: 0x00000000\r\n\r\n   Device Boot      Start         End      Blocks   Id  System\r\n/dev/sda1   *        2048     2088959     1043456   83  Linux\r\n/dev/sda2         2088960   125804543    61857792   83  Linux\r\n/dev/sda4               1           1           0+  ee  GPT\r\n````\r\nPartition table entries are not in disk order\r\n\r\n````\r\n# parted -l\r\nModel: VMware Virtual disk (scsi)\r\nDisk /dev/sda: 64.4GB\r\nSector size (logical/physical): 512B/512B\r\nPartition Table: gpt_sync_mbr\r\n\r\nNumber  Start   End     Size    File system  Name     Flags\r\n 1      1049kB  1070MB  1068MB  ext3         primary  boot, legacy_boot\r\n 2      1070MB  64.4GB  63.3GB               primary  lvm\r\n````\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rear/rear/issues/comments/153039092","html_url":"https://github.com/rear/rear/issues/544#issuecomment-153039092","issue_url":"https://api.github.com/repos/rear/rear/issues/544","id":153039092,"user":{"login":"jsmeix","id":1788608,"avatar_url":"https://avatars.githubusercontent.com/u/1788608?v=3","gravatar_id":"","url":"https://api.github.com/users/jsmeix","html_url":"https://github.com/jsmeix","followers_url":"https://api.github.com/users/jsmeix/followers","following_url":"https://api.github.com/users/jsmeix/following{/other_user}","gists_url":"https://api.github.com/users/jsmeix/gists{/gist_id}","starred_url":"https://api.github.com/users/jsmeix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsmeix/subscriptions","organizations_url":"https://api.github.com/users/jsmeix/orgs","repos_url":"https://api.github.com/users/jsmeix/repos","events_url":"https://api.github.com/users/jsmeix/events{/privacy}","received_events_url":"https://api.github.com/users/jsmeix/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T14:48:28Z","updated_at":"2015-11-02T14:48:28Z","body":"The issue should be fixed with my above pull request https://github.com/rear/rear/pull/681\r\n\r\nThis minimal changes make it work for me.\r\n\r\nNevertheless the whole partitioning code looks fragile from my point of view but I think it is better to not do major changes here but to keep the fix for this particular issue minimal."}}