convert_root_to_lvm_partition
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| convert_root_to_lvm_partition [2023/01/17 15:23] – oso | convert_root_to_lvm_partition [2024/10/17 21:42] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Convertir root (/) a LVM ====== | ====== Convertir root (/) a LVM ====== | ||
| + | |||
| + | <WRAP center round alert 80%> | ||
| + | ===== Esto nunca funcionó!! ===== | ||
| + | Terminé reinstalando Ubuntu (no venía mal) y habilitando LVM para agregar otro SSD. | ||
| + | Llegué hasta el bind mount para crear el initramfs. Tal vez otro día lo retome usando una VM en vez de hacerlo sobre la PC principal. | ||
| + | </ | ||
| Se puede crear una partición lógica con '' | Se puede crear una partición lógica con '' | ||
| Line 51: | Line 57: | ||
| <code bash>/ | <code bash>/ | ||
| - | <code bash> </ | + | hacer un bind mount entre lo actual y lo que se copió |
| - | <code bash> </ | + | <code bash>mount --bind / / |
| + | <WRAP center round info 60%> | ||
| + | A bind mount is an alternate view of a directory tree. Classically, | ||
| + | |||
| + | For example, after issuing the Linux command- | ||
| + | |||
| + | mount --bind /some/where / | ||
| + | |||
| + | the directories /some/where and /else/where have the same content, which is the content of / | ||
| + | |||
| + | Unlike a hard link or symbolic link, a bind mount doesn' | ||
| + | </ | ||
| + | |||
| + | //we have to change the root to the new file system, followed by creating initrd with raid as well as lvm support// | ||
| + | tocar el nuevo direectrio con '' | ||
| + | <code bash># chroot / | ||
| + | <WRAP center round info 60%> | ||
| + | A chroot is an operation that changes the apparent root directory for the current running process and their children. A program that is run in such a modified environment cannot access files and commands outside that environmental directory tree. This modified environment is called a chroot jail. | ||
| + | </ | ||
| + | |||
| + | |||
| + | <code bash># mount -t proc /proc /proc </ | ||
| + | |||
| + | <code bash># mount -t sysfs /sys /sys </ | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | volver a la nornalidad, fuera de chroot | ||
| + | <code bash> | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | <code bash> | ||
| + | |||
| ===== Para borrar el LV ===== | ===== Para borrar el LV ===== | ||
convert_root_to_lvm_partition.1673969026.txt.gz · Last modified: 2024/10/17 21:42 (external edit)
