stevenshiau / clonezilla

Clonezilla is a partition or disk clone tool similar to Norton Ghost®. It saves and restores only used blocks in hard drive. Two types of Clonezilla are available, Clonezilla live and Clonezilla SE (Server Edition).
GNU General Public License v2.0
618 stars 95 forks source link

Live CD installation failed to be installed on hard disk in arm64 #106

Open huangshenrong opened 7 months ago

huangshenrong commented 7 months ago

base on https://clonezilla.org/livehd.php

menuentry "clonezilla-live" {
ISO="/clonezilla-live-3.1.2-6-arm64.iso"
search --set -f $ISO
loopback loop $ISO
linux (loop)/live/vmlinuz boot=live union=overlay username=user config components quiet noswap edd=on nomodeset locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=791 ip= net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1 findiso=$ISO
initrd (loop)/live/initrd.img
}
JonnyTech commented 7 months ago

From https://clonezilla.org/livehd.php

Download clonezilla live zip file

So try the .zip file and report back

huangshenrong commented 7 months ago

use zip cant working too

menuentry "Clonezilla Live 3.1.2-6" {

    echo "now root is ${root}"
    set root=(hd1)

    echo "now root is ${root}"

linux /live-hd/vmlinuz boot=live union=overlay username=user config components quiet noswap nolocales edd=on nomodeset ocs_live_run=\"ocs-live-general\" ocs_live_extra_param=\"\" keyboard-layouts= ocs_live_batch=\"no\" locales= vga=788 ip=frommedia nosplash live-media-path=/live-hd bootfrom=/dev/vdb toram=live-hd,syslinux,EFI

initrd /live-hd/initrd.img

}

# file

vdb                252:16   0   20G  0 disk /mnt
[root@localhost ~]# ls /mnt/
arm64-release.txt  boot  clonezilla-live-3.1.2-6-arm64.zip  Clonezilla-Live-Version  EFI  GPL  home  live-hd  lost+found  utils

# uname -r
5.10.0-182.0.0.95.oe2203sp3.aarch64

# os 
https://www.openeuler.org/en/download/?version=openEuler%2022.03%20LTS%20SP3
JonnyTech commented 7 months ago

set root=(hd1)

This looks incorrect, it should be (drive,partition) for example (hd1,4)

Also please show what kind of error you a getting as you have provided no details

huangshenrong commented 7 months ago

(hd1) There is no partition of the disk

lsblk 
NAME               MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sr0                 11:0    1  3.1G  0 rom  
vda                252:0    0   80G  0 disk 
├─vda1             252:1    0  600M  0 part /boot/efi
├─vda2             252:2    0    1G  0 part /boot
└─vda3             252:3    0 78.4G  0 part 
  ├─openeuler-root 253:0    0   50G  0 lvm  /
  ├─openeuler-swap 253:1    0    4G  0 lvm  [SWAP]
  └─openeuler-home 253:2    0 24.4G  0 lvm  /home
vdb                252:16   0   20G  0 disk 

how to get more logs

JonnyTech commented 7 months ago

I see that you have two drives, vda and vdb.

You can create a new partition on vda and use that, assuming that it already has grub installed because there is already a Linux system installed there.

Or create a partition on vbd and add the relevant entry in you grub configuration file.

how to get more logs

For starters please submit as much information into bug reports as possible.

You are installing on virtual drives? Why did you not include these details earlier?

Depending on your version of grub then things can vary but try something like /var/log/boot.log.

But "Live CD installation failed to be installed on hard disk in arm64" tells us nothing about the error.

huangshenrong commented 7 months ago

i get error image

JonnyTech commented 7 months ago

EFI stub: ERROR: FIRMWARE BUG: kernel image not aligned on 64k boundary

This may be an image with your VM host.

Seeing are you are still not providing any details at all about your setup (:sigh:) it looks like I am going to have to ask specific questions:

huangshenrong commented 7 months ago

I found the key parameters need add console=tty0

menuentry "Recovey-General" {

  set ISO="/clonezilla-live-3.0.0-25-arm64.iso"
  search --set -f $ISO
  loopback loop $ISO

  linux (loop)/live/vmlinuz boot=live union=overlay console=tty0 username=user config components loglevel=6 noswap edd=on nomodeset locales= timezone=Asia/Shanghai keyboard-layouts=us ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" vga=788 ip= net.ifnames=0 splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1 findiso=$ISO

  initrd (loop)/live/initrd.img

}

but the "vga=788" cant work on my physical machine which use 1080p screen

nhermosilla14 commented 1 month ago

Why are you setting the resolution that way? I'd say it should work just fine without "vga=788", maybe you need to also remove the "nomodeset" to make it find the proper resolution (it might cause issues on NVIDIA graphics, though, but that shouldn't be an issue in a 100% virtualized environment).