On Thu, 24 Apr 2025 20:41:41 +0000 Pier Antonio Corradini <pierantonio.corrad...@gmail.com> wrote: > > sudo pvcreate /dev/md0 (made /dev/md0) > sudo vgcreate myvg /dev/md0 (made Volume Group VG) > sudo lvcreate -L 50G -n lv_root myvg (made a logical volume lv_root, > 50 GB) > sudo mkfs.ext4 /dev/myvg/lv_root (made filesystem on lv_root) > sudo mkdir /mnt/root > sudo mount /dev/myvg/lv_root /mnt/root (so lv_root is mounted)
so far correct > sudo mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf (mdadm > configuration) This writes to your running system, not to the new installation which is supposed to be on the softraid harddisk later. You need at least a minimal system via debootstrap to chroot into and use this command within the chroot environment, after mdadm installation inside the chroot. > sudo update-initramfs -u (problem: "I: > update-initramfs is disabled (live system is running on read only > media")) You do not have any new system yet. You might want to debootstrap (which requires some experience) or you might want to boot an installer image and choose the detected softraid to install on. > sudo shutwown -h now (first session's end). Yes, the harddisk is prepared and now you can start the installation almost from scratch. > Question: It would be better if I would have made /boot too? This is a question of personal preference. I like to have a separated partition or softraid device for /boot even while not required by Linux or the bootloader GRUB. YMMV. > Tomorrow: Debian 12 Installation > ... > ... Hard disks Partition > Manual > make logical volumes for swap, home, log and var (and boot too?) > inside vg .... > .... > installation end > ... > open intaller shell > mount /dev/mapper/vg-lv_root /target > mount --bind /dev /target/dev > mount --bind /sys /target/sys > mount --bind /proc /target/proc > chroot /target > mdadm --detail --scan | tee -a /etc/mdadm/mdadm.conf > update-initramfs -u -k all > apt update > apt install --reinstall grub-pc > exit > umount /target/sys /target/proc /target/dev > umount /target > > Anything wrong? These steps look reasonable and should lead to a bootable system. Do not forget to set passwords for user and root accounts to be able to login once the machine has booted succesfully. -- kind regards Frank
pgpBSvXYSyWS4.pgp
Description: OpenPGP digital signature