feat: Botón Guardar Todo en conceptos y mejoras Docker
Cambios realizados: - concept_view.php: Agregado botón 'Guardar Todo' arriba y abajo de la tabla, eliminado botón individual por fila - dashboard.php: Agregado endpoint save_all_concept_payments para guardar múltiples pagos - docker-entrypoint.sh: Corregidos permisos de volúmenes para ZimaOS/CasaOS (cambia dueño a www-data) - docker/Dockerfile: Corregida ruta del entrypoint - build-and-push.sh: Script interactivo para crear imagen Docker con opción de caché/sin caché Los cambios permiten guardar todos los pagos de conceptos de una sola vez y mejoran la compatibilidad con despliegues en ZimaOS.
This commit is contained in:
121
docker/registry/comandos_actualizar_grub.txt
Executable file
121
docker/registry/comandos_actualizar_grub.txt
Executable file
@@ -0,0 +1,121 @@
|
||||
COMANDOS PARA ACTUALIZAR GRUB DESPUÉS DE ELIMINAR WINDOWS
|
||||
========================================================
|
||||
|
||||
COMANDOS PARA EJECUTAR DESDE LIVE CD/UBUNTU LIVE
|
||||
================================================
|
||||
|
||||
PASO 1: IDENTIFICAR PARTICIÓN DE UBUNTU
|
||||
--------------------------------------
|
||||
sudo fdisk -l
|
||||
|
||||
Busca tu partición Linux (probablemente sda5 con formato ext4)
|
||||
|
||||
PASO 2: MONTAR PARTICIÓN DE UBUNTU
|
||||
----------------------------------
|
||||
sudo mkdir /mnt/ubuntu
|
||||
sudo mount /dev/sda5 /mnt/ubuntu
|
||||
|
||||
PASO 3: MONTAR PARTICIONES NECESARIAS PARA CHROOT
|
||||
---------------------------------------------------
|
||||
sudo mount /dev/sda1 /mnt/ubuntu/boot/efi # Partición EFI
|
||||
sudo mount --bind /dev /mnt/ubuntu/dev
|
||||
sudo mount --bind /proc /mnt/ubuntu/proc
|
||||
sudo mount --bind /sys /mnt/ubuntu/sys
|
||||
sudo mount --bind /run /mnt/ubuntu/run
|
||||
|
||||
PASO 4: ACTIVAR SWAP (si es necesario)
|
||||
-------------------------------------
|
||||
sudo swapon /dev/sda6
|
||||
|
||||
PASO 5: ENTRAR AL SISTEMA UBUNTU (CHROOT)
|
||||
-----------------------------------------
|
||||
sudo chroot /mnt/ubuntu
|
||||
|
||||
AHORA DENTRO DE TU SISTEMA UBUNTU (ya no estás en Live CD):
|
||||
=========================================================
|
||||
|
||||
PASO 6: ACTUALIZAR CONFIGURACIÓN DE GRUB
|
||||
---------------------------------------
|
||||
update-grub
|
||||
|
||||
Este comando buscará sistemas operativos y eliminará las entradas de Windows.
|
||||
|
||||
PASO 7: REINSTALAR GRUB EN EL DISCO
|
||||
------------------------------------
|
||||
grub-install /dev/sda
|
||||
|
||||
Esto reinstala GRUB correctamente después de los cambios de partición.
|
||||
|
||||
PASO 8: VERIFICAR CONFIGURACIÓN
|
||||
-------------------------------
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
|
||||
PASO 9: SALIR DEL CHROOT
|
||||
------------------------
|
||||
exit
|
||||
|
||||
PASO 10: DESMONTAR TODO CORRECTAMENTE
|
||||
-------------------------------------
|
||||
sudo umount -R /mnt/ubuntu
|
||||
sudo swapoff /dev/sda6
|
||||
|
||||
PASO 11: REINICIAR EL SISTEMA
|
||||
-----------------------------
|
||||
reboot
|
||||
|
||||
COMANDOS DE VERIFICACIÓN (OPCIONAL)
|
||||
==================================
|
||||
|
||||
PARA VERIFICAR ANTES DE REINICIAR (desde Live CD):
|
||||
-------------------------------------------------
|
||||
|
||||
1. Verificar particiones montadas:
|
||||
mount | grep /mnt/ubuntu
|
||||
|
||||
2. Verificar que se montó todo correctamente:
|
||||
ls -la /mnt/ubuntu/boot/efi
|
||||
|
||||
3. Verificar GRUB desde chroot:
|
||||
(chroot) dpkg -l | grep grub
|
||||
|
||||
TROUBLESHOOTING DESDE LIVE CD
|
||||
=============================
|
||||
|
||||
SI EL MONTAJE FALLA:
|
||||
-------------------
|
||||
- Intenta: sudo fsck -f /dev/sda5
|
||||
- Verifica que /dev/sda5 sea la partición correcta con: sudo blkid
|
||||
|
||||
SI CHROOT NO FUNCIONA:
|
||||
---------------------
|
||||
- Verifica que todas las monturas estén correctas:
|
||||
sudo mount | grep /mnt/ubuntu
|
||||
- Intenta montar /dev/pts también:
|
||||
sudo mount --bind /dev/pts /mnt/ubuntu/dev/pts
|
||||
|
||||
SI GRUB-INSTALL FALLA:
|
||||
--------------------
|
||||
- Intenta: grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu /dev/sda
|
||||
- O si usas BIOS: grub-install --target=i386-pc /dev/sda
|
||||
|
||||
SI UPDATE-GRUB NO DETECTA EL KERNEL:
|
||||
-----------------------------------
|
||||
- Desde chroot: apt update && apt install linux-image-generic
|
||||
|
||||
NOTAS CRÍTICAS PARA LIVE CD
|
||||
===========================
|
||||
|
||||
- TODOS los comandos PASOS 1-5 se ejecutan en Live CD
|
||||
- Los comandos PASOS 6-8 se ejecutan DENTRO del chroot
|
||||
- Si no estás seguro de la partición, ejecuta: sudo lsblk -f
|
||||
- La partición EFI siempre es /dev/sda1 (100MB)
|
||||
- Tu partición Linux debería ser /dev/sda5 después de redimensionar
|
||||
- Asegúrate de tener internet antes del chroot: sudo dhclient
|
||||
|
||||
VERIFICACIÓN FINAL
|
||||
=================
|
||||
|
||||
Después de reiniciar en Ubuntu normal, ejecuta:
|
||||
lsblk
|
||||
df -h
|
||||
grub-editenv list
|
||||
Reference in New Issue
Block a user