On Thu, Apr 22, 2021 at 1:41 PM Michael Hennebry
<henne...@web.cs.ndsu.nodak.edu> wrote:
>
> I'm trying to move my root directory from sda5 to sda3.

This is much harder to do without LVM or Btrfs. For LVM there's more
steps but basically it depends on 'pvmove'. And for Btrfs it's 'btrfs
replace' - both are live migrations and so long as /boot is separate,
nothing else needs to be changed or updated.

> After running grub2-install and grub2-mkconfig,

If the computer has BIOS firmware, then grub2-install to a whole block
device is indicated. If it's UEFI firmware, then grub2-install
shouldn't be used. Instead use:

sudo dnf reinstall grub-* shim-*

Also note starting with Fedora 34 that UEFI and BIOS have
/boot/grub2/grub.cfg now due to feature:
https://fedoraproject.org/wiki/Changes/UnifyGrubConfig





> my machine will not boot.
> I performed the changes using a F33 live DVD which also fails to boot.
> After plugging in a USB-connected SD card with Centos 7 on it,
> the F33 live DVD decided to boot.
> It is what I am running now.
> The complaint is UUID 2b82edc2-4eb2-44a0-8b5b-c71da0de9b3a not found.
> While running F33 live DVD I get
> blkid | grep 2b82edc2-4eb2-44a0-8b5b-c71da0de9b3a
> /dev/loop1: LABEL="Anaconda" UUID="2b82edc2-4eb2-44a0-8b5b-c71da0de9b3a"

Sounds like /etc/fstab has the wrong UUID.


> I backed up sda5 with rsync -auHAXUUx .
> I copied from the backup with the same flags.
> I edited the new etc/fstab to point at sda3,
> actually LABEL=local3slash .

OK but did  you label the file system 'local3slash' at mkfs time?


>
> As root:
> grupb2-install

This is missing a block device.

> grub2-mkconfig -o .../local3slash/boot/grub2/grub/cfg

That's probably only going to work in a chroot where everything is
properly assembled in advance. The easiest way to get it properly
assembled for you is the rescue option in the troubleshooting menu on
netinstall media.

And since /boot is a dir in the copied sysroot... yeah dracut.

A neat hint is to search a live install's program.log for 'rsync' to
see what command is used for a live install.

08:18:29,672 INF program: Running... rsync -pogAXtlHrDx --exclude
/dev/ --exclude /proc/ --exclude /tmp/* --exclude /sys/ --exclude
/run/ --exclude /boot/*rescue* --exclude /boot/loader/ --exclude
/boot/efi/loader/ --exclude /etc/machine-id /run/install/source/
/mnt/sysroot

A lot of that does translate into -a option.



-- 
Chris Murphy
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to