On Thu, 24 Apr 2025 20:41:41 +0000
Pier Antonio Corradini <
pierantonio.corradini@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
-----BEGIN PGP SIGNATURE-----
iQGzBAEBCgAdFiEE86z15c6qwvuAkhy+zDIN/uu9BloFAmgLh9cACgkQzDIN/uu9 BlqNrgv/R30UR2FBSP3ntqn0xHe1LnJ90AdVOEqgSMprAuUnzdZwpAdp1EpiaxJ+ QCe4YGRdf2Fdr04zKlHi+eYiCjLZE8/RnRZCNtejiAzURt26xyrL+POkDtn8vwQp Ci/j2gKcJS9/UPlt9YSyrRc5vF4U3WQ52q8HUfsiXKGbDQ6z/AJdA9Mm3segw3sL WZGnR1n+h0NpkbWtZu9+6wQxVE39URJSEZy3j0zzahArsjyrRI8TRAf/rUP/s80b sL2vvg6CddH/8e0WbbV+m8KsIGtKC3Clc7B93zn0YblnOamgGHAdQB6nHnU/iGP0 Nv5ukiRiCUPZ4ayNRXFe8R7E2/ODtozt3TXo3vf6/Wbj2MrU8QkVOzn5h01ff9v0 iGSePt3YIHxeSCCoccbjIgESQhJ7xyakA8A8lETUwlC/ok3zjBv/ji6N+kmUPXE/ s6JR1E0SQ3PO73hADx4itDFFGugAaAEvcg1KrR4GouaUhIUAHEO86gEbGn5l6NOI
+5BGroi3
=N8cH
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)