Revisión de Adding-Persistence-to-live-USB de Sáb, 03/22/2025 - 17:36

La revisión le permite rastrear las diferencias que hay entre distintas versiones de una entrada.

Aquí hay un tutorial con los pasos para crear una unidad USB Ventoy con persistencia para Trisquel: =============================================

Para estos pasos, mi nombre de usuario, el número de versión de Trisquel y el número de versión de Ventoy son los siguientes, el tuyo posiblemente será diferente: Nombre de usuario: trisquel Versión de Trisquel: trisquel_11.0.1_amd64 Versión de Ventoy: ventoy-1.1.02

0. Descargue la última ISO de Trisquel de https://trisquel.info/en/download a su carpeta ~/Downloads/. En mi caso, es trisquel_11.0.1_amd64.iso

1. Descargue la última versión de Ventoy de https://github.com/ventoy/Ventoy/releases/ a su carpeta ~/Downloads/. Descarga el archivo que termina en "linux.tar.gz" en tu carpeta ~/Downloads/. En mi caso fue ventoy-1.1.02-linux.tar.gz

2. Abre tu administrador de archivos de caja, ve a tu carpeta de Descargas, haz clic derecho en el archivo de Ventoy que descargaste y selecciona la opción "Extraer aquí". Esto creará una nueva carpeta, en mi caso es ~/Downloads/ventoy-1.1.02/ Ve a esa nueva carpeta.

3. Inserte la unidad USB en la que desea tener Trisquel con persistencia. TENGA EN CUENTA QUE DESTRUIRÁ TODOS LOS DATOS DE LA UNIDAD USB CON ESTAS INSTRUCCIONES: ASEGÚRESE DE HABER HECHO UNA COPIA DE SEGURIDAD DE LOS DATOS IMPORTANTES QUE ESTABA GUARDANDO EN LA UNIDAD USB EN OTRA UBICACIÓN.

Busque la ubicación de su dispositivo de unidad USB en su computadora. Me gusta usar el programa GParted en Trisquel para ver los datos de todas las unidades antes de sobrescribir una unidad USB. Mi unidad USB es una memoria USB de "16 GB" (16 GB en espacio calculado decimal anunciado, pero ~ 14,5 GB en espacio calculado binario útil real), así que miro a través de las diferentes unidades en GParted y descubro que la unidad USB aparece como una unidad /dev/sda de 14,32 GB en mi sistema. Probablemente será una ubicación de dispositivo diferente en la suya - ASEGÚRESE DE ENCONTRAR LA RUTA CORRECTA A SU UNIDAD USB O, DE LO CONTRARIO, TERMINARÁ SOBRESCRIBIENDO ALGUNA OTRA UNIDAD POR ERROR, ¡MUY MALA IDEA!

4. Instale Ventoy en la unidad USB, utilizando un script llamado "Ventoy2Disk.sh" proporcionado en la carpeta Ventoy que descargó y extrajo.

En caja, hago clic derecho en la carpeta ~/Downloads/ventoy-1.1.02/ y selecciono la opción "Abrir en terminal".

A continuación, ejecuto este comando:
sudo sh Ventoy2Disk.sh -i /dev/sd$

Asegúrese de poner la ruta correcta para su unidad USB en el comando en lugar de mi /dev/sd$

El script le dirá algunos datos sobre su unidad: ASEGÚRESE DE QUE SEAN LOS DATOS CORRECTOS DE LA UNIDAD USB que aparecen en la lista. Estos son algunos de los resultados que obtuve:

>**********************************************
> Ventoy: 1.1.02 x86_64
> longpanda name at domain
> https://www.ventoy.net
>**********************************************
>
>Disk : /dev/sda
>Model: SanDisk Cruzer Glide (scsi)
>Size : 14 GB
>Style: MBR
>
>
>Attention:
>You will install Ventoy to /dev/sda.
>All the data on the disk /dev/sda will be lost!!!
>
>Continue? (y/n)

5. In caja, under your 'Devices' section on the left sidebar, you should now have a "Ventoy" device. Click on it to mount it.

You should now have a Ventoy directory on the USB drive which will be in the path /media/$USER/Ventoy/, where "$USER" is your username on the system

Go to that location in caja and create three new folders in the /media/$USER/Ventoy/ folder. Name them "ISO", "persistence" and "ventoy". So the output of 'ls /media/$USER/Ventoy/' should be:
$ ls /media/trisquel/Ventoy/
ISO persistence ventoy

6. In caja, copy the Trisquel ISO that you downloaded from the ~/Downloads/ folder to the /media/$USER/Ventoy/ISO/ folder. Now I have the following file in place:
/media/trisquel/Ventoy/ISO/trisquel_11.0.1_amd64.iso

7. Install persistence.

In caja, go to /media/$USER/Ventoy/persistence/

Right-click in caja and select "Open in terminal", so you have /media/$USER/Ventoy/persistence/ opened in the terminal. While in that folder, you will be running the script "CreatePersistentImage.sh" from the ~/Downloads/ventoy-1.1.02/ folder.

The default size of the persistence file that is created is 1024MB (1GB), but I needed a larger one as I was intending to update Trisquel and add programs, so I used the "-s" option to create a larger persistence file of 10240MB, which is closer to 10GB. [Note - the larger the persistence file, the longer the time this script will take to run. Don't be surprised if it takes over a half hour to create a 10GB persistence file. If you are using an older computer, you may want to create a much smaller persistence file so that it doesn't take hours to complete].

The default name of the persistence file that is created is "persistence.dat", but I need a file named after the name of my version of Trisquel, which will be "trisquel_11.0.1_amd64.dat", so I use the "-o" option to specify the name:
sudo sh ~/Downloads/ventoy-1.1.02/CreatePersistentImg.sh -s 10240 -o trisquel_11.0.1_amd64.dat

Now I have the following file in place:
/media/trisquel/Ventoy/persistence/trisquel_11.0.1_amd64.dat

8. Create a .json file

We need a .json file for Ventoy to know where the persistence file is located for Trisquel.

Open the Pluma text editor, and paste the following into a new text file, changing the Trisquel version numbers to fit with your version numbers (remove the blank lines that are created by the Trisquel forum - the file should look like the text file that I'm attaching to this post):

{
"persistence": [
{
"image": "/ISO/trisquel_11.0.1_amd64.iso",
"backend": "/persistence/trisquel_11.0.1_amd64.dat"
}
]
}

Now save this file as /media/$USER/Ventoy/ventoy/ventoy.json

Now I have the following file in place:
/media/trisquel/Ventoy/ventoy/ventoy.json

9. You should be done. The output of 'ls -R /media/$USER/Ventoy/' should now be as follows:
$ ls -R /media/trisquel/Ventoy/
/media/trisquel/Ventoy/:
ISO persistence ventoy
/media/trisquel/Ventoy/ISO:
trisquel_11.0.1_amd64.iso
/media/trisquel/Ventoy/persistence:
trisquel_11.0.1_amd64.dat
/media/trisquel/Ventoy/ventoy:
ventoy.json

============================================

At this point, you should be able to reboot with the USB drive inserted.

BE SURE TO UNMOUNT THE USB DRIVE BEFORE REBOOTING - otherwise Trisquel might hang for 5 minutes or longer while trying to reboot. You can unmount it by clicking the red arrow next to the Ventoy drive in the caja 'Devices' left sidebar. Since you unmounted it, you may need to pull the USB out and put it back in the USB slot to be recognized once you reboot - probably depends on your computer model.

When you boot to the USB drive, select Ventoy, then Trisquel, and then Trisquel with the persistence option, and you should be up and running.

Revisiones

03/22/2025 - 17:47
Carlos segura