You are not logged in.

#1 2022-08-20 04:35:14

lulumeya
Member
Registered: 2022-08-20
Posts: 7

Created img with dd command for an archlinux system not booting

I created an img file with dd command.
if param was pointing archlinux drive like if=dev/nvme0n1

Then I flashed it to another ssd and booted with new ssd but it says
device 'PARTUUID=someuuid' not found. Skipping fsck.
mount : /new_root: can't find PARTUUID=someuuid.
You are now being dropped into an emergency shell.

I wish to share an image file of my whole archlinux system which contains all configurations and packages.

What should I do now?

Last edited by lulumeya (2022-08-20 05:29:48)

Offline

#2 2022-08-20 05:35:28

pfdint
Member
Registered: 2013-11-18
Posts: 43

Re: Created img with dd command for an archlinux system not booting

You made a perfect copy of your archlinux install.
Your archlinux install uses UUIDs to identify disks in middle and late parts of the boot process.
This is normal.
This will not work on different disks, as they will have different UUIDs.
You must adjust your boot parameters.
You must also adjust your /etc/fstab
I cannot help further since I do not know where your boot parameters might be.
They could be in UEFI or GRUB or something. It can vary.

Last edited by pfdint (2022-08-20 05:36:21)

Offline

#3 2022-08-20 06:08:33

lulumeya
Member
Registered: 2022-08-20
Posts: 7

Re: Created img with dd command for an archlinux system not booting

Thanks for reply.
I got the situation.

Then what is proper way to share my installation as easy as possible? The archiso could be?
Or Tell my friend to boot archlinux installation medium and I share whole script of configuration process?

Offline

#4 2022-08-20 16:24:03

pfdint
Member
Registered: 2013-11-18
Posts: 43

Re: Created img with dd command for an archlinux system not booting

To share an image of your archlinux install, I think you are on the right track.
You just need to adjust a few things about the image you created to not use UUIDs.
Whether this is possible or not, and how to do it, you will have to find out by reading the documentation for your boot system.

If you were sharing a physical drive, you could do an installation normally to that drive and share it.

I'm not familiar with archiso, but that sounds like the best option.

You could also give up and make an install script as you suggest, but this sounds like the worst option.
You would have to include ways to partition his drives or he would already need his drives partitioned correctly.

Offline

#5 2022-08-20 17:06:05

lulumeya
Member
Registered: 2022-08-20
Posts: 7

Re: Created img with dd command for an archlinux system not booting

Thanks.
I would try with archiso.
If I try with whole bunch of script, I would struggle with so many exceptions.
Thanks again!

Offline

#6 2022-08-20 17:06:44

ua4000
Member
Registered: 2015-10-14
Posts: 559

Re: Created img with dd command for an archlinux system not booting

pfdint wrote:

This will not work on different disks, as they will have different UUIDs.
You must adjust your boot parameters.

No, if you you use dd on the entire disk, you also copy the uuids and don't need to adjust them.
And you don't need to adjust the boot parameters in this case.

@lulumeya:
Did you copy only the the arch root partition with dd or the entire disk ?
This is a big difference, also for the bootloader
Sadly you didn't post the exact dd copy command line.

Also which bootloader ? And BIOS or EFI boot mode ?

Offline

#7 2022-08-21 03:16:40

lulumeya
Member
Registered: 2022-08-20
Posts: 7

Re: Created img with dd command for an archlinux system not booting

@ua4000
I targetted entire disk like /dev/nvme0n1 on dd command.
The command was like "dd if=/dev/nvme0n1 of=archlinux.img"
And the boot mode, as I know EFI mode.
There was something like minitcpio, systemd.
My installation uses mostly default selection of archinstall script.

Last edited by lulumeya (2022-08-21 03:17:53)

Offline

#8 2022-08-21 09:52:11

ua4000
Member
Registered: 2015-10-14
Posts: 559

Re: Created img with dd command for an archlinux system not booting

Does both machines have identical hardware, e.g. both boot from nvme ?
Try booting on 2nd system the initramfs fallback, the normal one may not have all drivers included.
Or boot the 2nd system with a live arch iso and regenerate initramfs.

Offline

#9 2022-08-21 12:56:22

lulumeya
Member
Registered: 2022-08-20
Posts: 7

Re: Created img with dd command for an archlinux system not booting

@ua4000
Yes the hardware was just same machine. Just different SSD and size also different but while flashing there was no error.
I want to try anything. If the hardware was same, then regenerate initramfs would be the better choice? I'll find some document. Thanks.

Offline

#10 2022-08-21 13:28:10

lulumeya
Member
Registered: 2022-08-20
Posts: 7

Re: Created img with dd command for an archlinux system not booting

I tried to boot live cd and chroot but lsblk listing new installation as just a disk not recognized as partition.

Offline

#11 2022-08-21 16:05:42

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,659

Re: Created img with dd command for an archlinux system not booting

lulumeya wrote:

I tried to boot live cd and chroot but lsblk listing new installation as just a disk not recognized as partition.

Can we get you to please post the output of lsblk -f  ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#12 2022-08-21 16:25:12

lulumeya
Member
Registered: 2022-08-20
Posts: 7

Re: Created img with dd command for an archlinux system not booting

https://github.com/lulumeya/lulumeya.gi … 19-04.jpeg

Please refer this image.

Last edited by V1del (2022-08-22 16:40:11)

Offline

#13 2022-08-22 16:41:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: Created img with dd command for an archlinux system not booting

please do not post huge images directly embedded, and post text as text: https://wiki.archlinux.org/title/List_o … n_services

Offline

#14 2022-08-22 16:44:36

ua4000
Member
Registered: 2015-10-14
Posts: 559

Re: Created img with dd command for an archlinux system not booting

ewaller asked for lsblk -f, can you share it too ?
The screenshot shows no partition - this does not match to your 1st post, where you stated you did a boot and ended up in emergency shell.
How could this work on an EFI system without EFI partition ? Something is missing here...

I think you have to start from scratch, show us all UUID from old system. partition layout, exact copy command, and the used copy command on for new nvme, also some data from the live-system when you put the image to the target nvme... How did you do it exactly ?

Offline

Board footer

Powered by FluxBB