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/08 12:50] – jose | informatica:live_usb_persistente [2019/12/02 16:19] (current) – jose | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| http:// | http:// | ||
| - | root@debian:/home/user# apt-get install parted mbr dosfstools p7zip syslinux | + | Nos bajamos una imagen live con el entorno gráfico que queramos: | 
| + | |||
| + | http://cdimage.debian.org/ | ||
| + | |||
| + | Instalamos paquetes necesarios: | ||
| + |  | ||
| + | |||
| + | Creamos las particiones del usb. | ||
| + | sdc1 (fat32) -> datos (lo que sobre, en mi caso 80Gb) | ||
| + | sdc2 (ext4) | ||
| + | sdc3 (fat32) -> sistema 16Gb | ||
| + | |||
| + | < | ||
| + | # parted | ||
| Cambiamos a sdc | Cambiamos a sdc | ||
| - | (parted) | + | (parted) select | 
| New device? | New device? | ||
| Using /dev/sdc | Using /dev/sdc | ||
| - | (parted) | ||
| - | |||
| - | |||
| - | mklabel msdos | ||
| - | Nos saldra un error, le damos a i de ignore | ||
| (parted) mklabel msdos | (parted) mklabel msdos | ||
| - | Warning: Partition(s) on /dev/sdc are being used. | ||
| - | Ignore/ | ||
| 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 | 
| - | Error: Partition(s) 2 on /dev/sdc have been written, but we have been unable to inform the kernel of the change, probably because | + | |
| - | it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. | + | |
| - | Ignore/ | + | |
| (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) | + | (parted) mkpart primary fat32 -18970M -0 | 
| + | (parted) set 3 boot on | ||
| + | (parted) quit | ||
| + | </ | ||
| + | Ahora formateamos las unidades | ||
| + | mkdosfs -nEXTRA /dev/sdc1 | ||
| + | mkfs.ext4 -q -Lpersistence /dev/sdc2 | ||
| + | mkdosfs -nLXDE /dev/sdc3 | ||
| - | mkdosfs | + | Hacemos el cd arancable: | 
| + | install-mbr /dev/sdc | ||
| + | syslinux -i /dev/sdc3 | ||
| - | mkfs.ext4 -q -Lpersistence /dev/sdc2 | + | Quitamos el pendrive y lo volvemos a conectar para que monte las unidades\\ | 
| + | Descomprimimos la imagen en la tercera particion. Tarda unos 5 minutos | ||
| - | mkdosfs | + | $ cd / | 
| + | $ 7z x ~/debian-live-7.0.0-amd64-lxde-desktop.iso | ||
| + | |||
| + | mv isolinux syslinux | ||
| + | mv syslinux/ | ||
| + | mv syslinux/ | ||
| + | |||
| + | 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 ' | ||
| + | |||
| + | < | ||
| + | label live-amd64 | ||
| + | menu label ^Live (amd64) | ||
| + | menu default | ||
| + | linux / | ||
| + | initrd / | ||
| + | append boot=live components quiet splash persistence | ||
| + | |||
| + | 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 | ||
| - | install-mbr /dev/sdc | ||
| - | syslinux -i /dev/sdc3 | ||
| Line 64: | Line 107: | ||
| Creamos enlace simbólico en otro filesystem | Creamos enlace simbólico en otro filesystem | ||
| ln -s / | ln -s / | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
informatica/live_usb_persistente.1478609438.txt.gz · Last modified:  by jose
                
                