Swap-partition failing when restoring from dd-image
Brought to you by:
steven_shiau
With latest DRBL live, network restoring (multicast) is failing for swap partition. The image was created with dd as backend because of https://sourceforge.net/p/clonezilla/bugs/230/
The same dd-image is successfully restored with latest Clonezilla (Wily).
Model: ATA ST500LM000-1EJ16 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 62.9GB 62.9GB primary xfs boot
3 62.9GB 492GB 429GB primary xfs
2 492GB 500GB 8590MB primary linux-swap(v1)
sda2 is thus last on disk. All partitions were created with gparted.
Could you please give DRBL live 2.4.2-23 a try?
http://drbl.org/download/
Please let us know the results. Thanks.
Steven.
This version behaved even worse. Besides not creating the swap, it did not create the boot sector either.
This was the last on screen:
Creating swap partition /dev/sda2...
mktemp: failed to create file via template '/tmp/parttable-ocs.XXXXXX': Read-only file system
/usr/share/drbl/sbin/ocs-functions: line 483: $partition_table: ambiguous redirect
Could you please:
1. Show us the image dir by running:
tree /home/partimag/$YOUR_IMAGE
2. Show the content of the file "sda-pt.parted.compact":
cat /home/partimag/$YOUR_IMAGE/sda-pt.parted.compact
3. The whole error messages on the screen, by taking a photo about that, then post it.
Please also post your steps in detail. It would be easier for us to reproduce the problem here.
Thanks.
Steven.
tree larar-elementary-dd
larar-elementary-dd/
├── blkdev.list
├── blkid.list
├── clonezilla-img
├── dev-fs.list
├── disk
├── Info-dmi.txt
├── Info-lshw.txt
├── Info-lspci.txt
├── Info-packages.txt
├── Info-saved-by-cmd.txt
├── parts
├── sda1.dd-img.aa
├── sda3.dd-img.aa
├── sda-chs.sf
├── sda-hidden-data-after-mbr
├── sda-mbr
├── sda-pt.parted
├── sda-pt.parted.compact
├── sda-pt.sf
└── swappt-sda2.info
cat sda-pt.parted.compact
Model: ATA ST500LM000-1EJ16 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 62.9GB 62.9GB primary xfs boot
3 62.9GB 492GB 429GB primary xfs
2 492GB 500GB 8590MB primary linux-swap(v1)
The error message
The error message I gave earlier in this thread was the full error message.
More details
The image was created with Clonezilla Alternative Testing (Wily). I had to pick Expert mode in order to pick dd as backend for Clonezilla. This was the only option I changed besides I picked xz as compression because dd takes quite a lot of space. The rest was default.
When restoring I booted DRBL live, started Clonezilla server and used Beginners mode for restoring through multicast.
So does this image work when restoring for Clonezilla live, not DRBL live client?
Steven.
Yes. It works with Clonezilla live. This problem only appears when I need to use DRBL because I need to clone many computers at once.
Sorry, I did not read this bug report before posting mine a few minutes ago: it is exactly the same issue.
Could you please give DRBL live 2.4.3-18 a try?
http://drbl.org/download/
There are many improvements about that.
Please let us know the results.
Thanks.
Steven.