informatica:live_usb_persistente
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:live_usb_persistente [2016/11/25 16:11] – jose | informatica:live_usb_persistente [2019/12/02 16:19] (current) – jose | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| # apt-get install parted mbr dosfstools p7zip syslinux | # apt-get install parted mbr dosfstools p7zip syslinux | ||
| - | Creamos las particiones del usb | + | Creamos las particiones del usb. | 
| + | sdc1 (fat32) -> datos (lo que sobre, en mi caso 80Gb) | ||
| + | sdc2 (ext4) | ||
| + | sdc3 (fat32) -> sistema 16Gb | ||
| + | < | ||
| # parted | # parted | ||
| + | |||
| Cambiamos a sdc | Cambiamos a sdc | ||
| - | + | (parted) select | |
| - | (parted) | + | |
| New device? | New device? | ||
| - | |||
| Using /dev/sdc | Using /dev/sdc | ||
| (parted) mklabel msdos | (parted) mklabel msdos | ||
| - | |||
| Warning: The existing disk label on /dev/sdc will be destroyed and all data on this disk will be lost. Do you want to continue? | Warning: The existing disk label on /dev/sdc will be destroyed and all data on this disk will be lost. Do you want to continue? | ||
| - | |||
| Yes/No? Yes | Yes/No? Yes | ||
| (parted) mkpart primary fat32 1 -37940M | (parted) mkpart primary fat32 1 -37940M | ||
| - | |||
| (parted) mkpart primary ext4 -37940M -18970M | (parted) mkpart primary ext4 -37940M -18970M | ||
| - | |||
| (parted) mkpart primary fat32 -18970M -0 | (parted) mkpart primary fat32 -18970M -0 | ||
| + | (parted) set 3 boot on | ||
| (parted) quit | (parted) quit | ||
| + | </ | ||
| Ahora formateamos las unidades | Ahora formateamos las unidades | ||
| - | mkdosfs -nEXTRA /dev/sdc1 | + |  | 
| + | mkfs.ext4 -q -Lpersistence /dev/sdc2 | ||
| + | mkdosfs -nLXDE /dev/sdc3 | ||
| - | mkfs.ext4 | + | Hacemos el cd arancable: | 
| + | install-mbr /dev/sdc | ||
| + | syslinux | ||
| - | mkdosfs -nLXDE /dev/sdc3 | + | Quitamos el pendrive y lo volvemos a conectar para que monte las unidades\\ | 
| + | Descomprimimos la imagen en la tercera particion. Tarda unos 5 minutos | ||
| + | $ cd /media/LXDE | ||
| + | $ 7z x ~/ | ||
| + |  | ||
| + | mv isolinux syslinux | ||
| + | mv syslinux/ | ||
| + | mv syslinux/ | ||
| - | install-mbr | + | Hacemos persistente. Cambiamos los parámetros de arranque del Kernel: | 
| + | Añadimos **persistence** en el arranque en el fichero: | ||
| + | /dev/sdc3/ | ||
| + | $ sed -i ' | ||
| + | $ sed -i ' | ||
| - | syslinux | + | < | 
| + | label live-amd64 | ||
| + | menu label ^Live (amd64) | ||
| + | menu default | ||
| + | linux | ||
| + | initrd / | ||
| + | append boot=live components quiet splash persistence | ||
| - | Descomprimimos la imagen en la tercera particion(??) | + | label live-amd64-failsafe | 
| + | menu label ^Live (amd64 failsafe) | ||
| + | linux / | ||
| + | initrd / | ||
| + | append boot=live components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal persistence | ||
| + | </ | ||
| + | |||
| + | En la segunda partición sdc2 (persistence) añadimos el fichero persistence.conf con el contenido: | ||
| + | / union | ||
| + | |||
| + | $ cd / | ||
| + | $ echo "/ union" > persistence.conf | ||
| - | $ cd /media/LXDE | ||
| - | $ 7z x ~/ | ||
| - |  | ||
| - | root@avtp67:/ | ||
| - | root@avtp67:/ | ||
| - | root@avtp67:/ | ||
informatica/live_usb_persistente.1480090262.txt.gz · Last modified:  by jose
                
                