zash
February 9, 2023, 3:04pm
1
Hey Guys i would be glad if someone could help me out with this ,
Iβve got one SSD and one HDD
and using UEFI
I have already installed the Linux operating System on HDD .
Cloned the Root partition With clonezilla to the SSD.
Also Windows is already installed on this ssd.
Althought grub is already Working with booting From HDD
Now i want to " reSetup" the grub bootloader to dualboot and booting Into the cloned Partition from SSD.
And delete the old Linux Partition on the HDD.
info from parted:
Model: ATA SATA3 256GB SSD (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI system partition boot, esp
2 106MB 123MB 16,8MB Microsoft reserved partition msftres
3 123MB 215GB 215GB ntfs Basic data partition msftdata
4 215GB 256GB 41,3GB ext4
Model: ATA ST500DM002-1BD14 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 106MB 105MB fat32 EFI system partition boot, esp
2 106MB 123MB 16,8MB Microsoft reserved partition msftres
3 123MB 456GB 456GB ntfs Basic data partition msftdata
5 456GB 497GB 40,8GB ext4 root
4 500GB 500GB 573MB ntfs hidden, diag
sda3 is the windows partition
sdb5 was cloned to sda4 usind clonezilla
Hi and welcome to the forum
An operating system is not a single file or application you can βcopyβ, you would need to change some critical configurations in multiple places for the version on the SSD to work properly.
From the info you provided i am assuming your:
/dev/sdb5
is your old Linux install.
/dev/sda4
is your new/cloned Linux version.
If the above is correct please provide the recursive directory listing inside:
/dev/sdb1
Which is the ESP on your HD.
/dev/sda1
Which is the ESP on your SSD.
Lets first correct/change/adjust the above, then we can delve into the Linux partitions to make needed changesβ¦
Please check the Manjaro Wiki
Basically β¦ remove the HDD, boot with Live-USB, follow the Wiki.
Come back and ask when you encounter problems.
No need to make it sound so complicated.
Sounding complicated and stating the practical steps are two different things but with similar end-resultsβ¦
zash
February 9, 2023, 4:20pm
5
done the wiki
mounted root and efi from SSD
then chrooted with "manjaro-chroot /mnt /bin/bash "
"grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck "
"grub-mkconfig -o /boot/grub/grub.cfg "
HDD removedβ¦
now i am able to see the grub bootloader with manjaro and windows to boot
however when i am booting manjaro it says
/dev/sda4: clean, 387893/2523136 files, 3048105/10086400 blocks
[TIME ] Timed out waiting for device /dev/disk/by-uuid/E03F-1BE7.
[DEPEND] Dependency failed for File System Check on /dev/disk/by-id/E03F-1BE7. [DEPEND] Dependency failed for /boot/efi.
[DEPEND] Dependency failed for Local File Systems.
You are in emergency node. After logging in, type "journalctl -xb" to view systen logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default node.
Give root password for maintenance (or press Control-D to continue):
Thats why i said:
Check your fstab
, fix the entries to use the correct partitions and remake your initrd
β¦
1 Like
Well done, now please proceed with TriMoonβs suggestion.
1 Like
zash
February 9, 2023, 4:39pm
8
everything in sda1 and sdb1:
Documents/efisda1
βββ EFI
β βββ Boot
β β βββ bootx64.efi
β βββ manjaro
β β βββ grubx64.efi
β βββ Microsoft
β βββ Boot
β β βββ BCD
β β βββ BCD.LOG
β β βββ BCD.LOG1
β β βββ BCD.LOG2
β β βββ bg-BG
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ bootmgfw.efi
β β βββ bootmgr.efi
β β βββ BOOTSTAT.DAT
β β βββ boot.stl
β β βββ cs-CZ
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ da-DK
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ de-DE
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ el-GR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ en-GB
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ en-US
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ es-ES
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ es-MX
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ et-EE
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ fi-FI
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ Fonts
β β β βββ chs_boot.ttf
β β β βββ cht_boot.ttf
β β β βββ jpn_boot.ttf
β β β βββ kor_boot.ttf
β β β βββ malgun_boot.ttf
β β β βββ malgunn_boot.ttf
β β β βββ meiryo_boot.ttf
β β β βββ meiryon_boot.ttf
β β β βββ msjh_boot.ttf
β β β βββ msjhn_boot.ttf
β β β βββ msyh_boot.ttf
β β β βββ msyhn_boot.ttf
β β β βββ segmono_boot.ttf
β β β βββ segoen_slboot.ttf
β β β βββ segoe_slboot.ttf
β β β βββ wgl4_boot.ttf
β β βββ fr-CA
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ fr-FR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ hr-HR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ hu-HU
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ it-IT
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ ja-JP
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ kd_02_10df.dll
β β βββ kd_02_10ec.dll
β β βββ kd_02_1137.dll
β β βββ kd_02_14e4.dll
β β βββ kd_02_15b3.dll
β β βββ kd_02_1969.dll
β β βββ kd_02_19a2.dll
β β βββ kd_02_1af4.dll
β β βββ kd_02_8086.dll
β β βββ kd_07_1415.dll
β β βββ kd_0C_8086.dll
β β βββ kdnet_uart16550.dll
β β βββ kdstub.dll
β β βββ ko-KR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ lt-LT
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ lv-LV
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ memtest.efi
β β βββ nb-NO
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ nl-NL
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ pl-PL
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ pt-BR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ pt-PT
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ qps-ploc
β β β βββ memtest.efi.mui
β β βββ Resources
β β β βββ bootres.dll
β β β βββ de-DE
β β β β βββ bootres.dll.mui
β β β βββ en-US
β β β βββ bootres.dll.mui
β β βββ ro-RO
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ ru-RU
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ sk-SK
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ sl-SI
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ sr-Latn-RS
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ sv-SE
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ tr-TR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ uk-UA
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ winsipolicy.p7b
β β βββ zh-CN
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ zh-TW
β β βββ bootmgfw.efi.mui
β β βββ bootmgr.efi.mui
β β βββ memtest.efi.mui
β βββ Recovery
β βββ BCD
β βββ BCD.LOG
β βββ BCD.LOG1
β βββ BCD.LOG2
βββ grub
βββ System Volume Information
49 directories, 141 files
Documents/efisdb1
βββ EFI
β βββ Boot
β β βββ bootx64.efi
β βββ Manjaro
β β βββ grubx64.efi
β βββ Microsoft
β βββ Boot
β β βββ BCD
β β βββ BCD.LOG
β β βββ BCD.LOG1
β β βββ BCD.LOG2
β β βββ bg-BG
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ bootmgfw.efi
β β βββ bootmgr.efi
β β βββ BOOTSTAT.DAT
β β βββ boot.stl
β β βββ cs-CZ
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ da-DK
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ de-DE
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ el-GR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ en-GB
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ en-US
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ es-ES
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ es-MX
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ et-EE
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ fi-FI
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ Fonts
β β β βββ chs_boot.ttf
β β β βββ cht_boot.ttf
β β β βββ jpn_boot.ttf
β β β βββ kor_boot.ttf
β β β βββ malgun_boot.ttf
β β β βββ malgunn_boot.ttf
β β β βββ meiryo_boot.ttf
β β β βββ meiryon_boot.ttf
β β β βββ msjh_boot.ttf
β β β βββ msjhn_boot.ttf
β β β βββ msyh_boot.ttf
β β β βββ msyhn_boot.ttf
β β β βββ segmono_boot.ttf
β β β βββ segoen_slboot.ttf
β β β βββ segoe_slboot.ttf
β β β βββ wgl4_boot.ttf
β β βββ fr-CA
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ fr-FR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ hr-HR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ hu-HU
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ it-IT
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ ja-JP
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ kd_02_10df.dll
β β βββ kd_02_10ec.dll
β β βββ kd_02_1137.dll
β β βββ kd_02_14e4.dll
β β βββ kd_02_15b3.dll
β β βββ kd_02_1969.dll
β β βββ kd_02_19a2.dll
β β βββ kd_02_1af4.dll
β β βββ kd_02_8086.dll
β β βββ kd_07_1415.dll
β β βββ kd_0C_8086.dll
β β βββ kdnet_uart16550.dll
β β βββ kdstub.dll
β β βββ ko-KR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ lt-LT
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ lv-LV
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ memtest.efi
β β βββ nb-NO
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ nl-NL
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ pl-PL
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ pt-BR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ pt-PT
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ qps-ploc
β β β βββ memtest.efi.mui
β β βββ Resources
β β β βββ bootres.dll
β β β βββ de-DE
β β β βββ bootres.dll.mui
β β βββ ro-RO
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ ru-RU
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ sk-SK
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ sl-SI
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ sr-Latn-RS
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ sv-SE
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ tr-TR
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ uk-UA
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β βββ winsipolicy.p7b
β β βββ zh-CN
β β β βββ bootmgfw.efi.mui
β β β βββ bootmgr.efi.mui
β β β βββ memtest.efi.mui
β β βββ zh-TW
β β βββ bootmgfw.efi.mui
β β βββ bootmgr.efi.mui
β β βββ memtest.efi.mui
β βββ Recovery
β βββ BCD
β βββ BCD.LOG
β βββ BCD.LOG1
β βββ BCD.LOG2
βββ System Volume Information
47 directories, 140 files
zash
February 9, 2023, 5:25pm
9
yes this has done the trick thank you very much
1 Like
TriMoon
February 9, 2023, 5:28pm
10
Nice seems like we have nothing to worry about or to copy, because they look identical.
Except that there seems to be a /grub
subdir on sda1
which we will just ignore at momentβ¦
The fstab
file to edit is ofcourse located in the SSD partition for your Linux, and the partitions the entries refer to need to point to the partitions on the SSDβ¦
Seems i replied before i saw your reply above and solution markβ¦
Well done
1 Like
zash
February 9, 2023, 5:40pm
11
to summarize my doings and correct order to do successful booting
cloning root partition with clonezilla
generate new random UUID
adjust fstab
chroot into new root part.
regenerate initrd
reinstall grub
system
Closed
February 12, 2023, 7:41am
12
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.