User Tools

Site Tools


informatica:live_usb_persistente

This is an old revision of the document!


Creación del pen drive usb

http://syn.theti.ca/2013/06/22/tutorial-wheezy-live-iso-hybrid-with-persistence-on-usb

root@debian:/home/user# apt-get install parted mbr dosfstools p7zip syslinux

# parted
Cambiamos a sdc
(parted) **select**                                                           
New device?  [/dev/sda]? **/dev/sdc**                                         
Using /dev/sdc
(parted)                    


mklabel msdos

Nos saldra un error, le damos a i de ignore (parted) mklabel msdos Warning: Partition(s) on /dev/sdc are being used. Ignore/Cancel? i 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 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/Cancel? i

(parted) mkpart primary fat32 1 -37940M (parted) mkpart primary ext4 -37940M -18970M (parted) mkpart primary fat32 -18970M -0

mkdosfs -nEXTRA /dev/sdc1

mkfs.ext4 -q -Lpersistence /dev/sdc2

mkdosfs -nLXDE /dev/sdc3

install-mbr /dev/sdc

syslinux -i /dev/sdc3

Docker

Docker no arranca porque quiere montar un sistema de ficheros aufs sobre aufs. Se para docker y se mueve la carpeta de docker de /var/lib a otro file system:

# df -h
Filesystem      Size  Used Avail Use% Mounted on
aufs             18G  3.0G   14G  18% /
tmpfs           3.2G  9.2M  3.2G   1% /run
/dev/sdb3        18G  1.2G   17G   7% /lib/live/mount/persistence/sdb3
/dev/loop0     1008M 1008M     0 100% /lib/live/mount/rootfs/filesystem.squashfs
tmpfs           7.9G     0  7.9G   0% /lib/live/mount/overlay
/dev/sdb2        18G  3.0G   14G  18% /lib/live/mount/persistence/sdb2
devtmpfs         10M     0   10M   0% /dev
tmpfs           7.9G   80K  7.9G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup
tmpfs           7.9G  240K  7.9G   1% /tmp
tmpfs           1.6G   12K  1.6G   1% /run/user/1000
/dev/sdb1        25G   64K   25G   1% /media/user/EXTRA

Creamos enlace simbólico en otro filesystem

ln -s /lib/live/mount/persistence/sdb2/docker /var/lib
informatica/live_usb_persistente.1480088082.txt.gz · Last modified: 2016/11/25 15:34 by jose