Montar una partición con una imágen de "wheezy" en Ubuntu
Es interesante montar una imágen cuando estamos programando en un PC donde tenemos un linux por ejemplo un Ubuntu.
Antes de montar una imágen hay que saber cuanto espacio ocupa en bytes.
root@icarus:/opt# ls
2012-07-15-wheezy-raspbian.img 2012-07-15-wheezy-raspbian.zip google teamviewer8
root@icarus:/opt# parted 2012-07-15-wheezy-raspbian.img
GNU Parted 2.3
Using /opt/2012-07-15-wheezy-raspbian.img
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit b
(parted) print list
Model: (file)
Disk /opt/2012-07-15-wheezy-raspbian.img: 1939865600B
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 4194304B 62914559B 58720256B primary fat16 lba
2 62914560B 1939865599B 1876951040B primary ext4
Model: ATA WDC WD10JPVT-00A (scsi)
Disk /dev/sda: 1000204886016B
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1048576B 2047868927B 2046820352B primary linux-swap(v1) boot
2 2048916480B 1000204140543B 998155224064B extended
5 2048917504B 202048012287B 199999094784B logical ext4
6 202049060864B 1000204140543B 798155079680B logical ext4
(parted) quit
root@icarus:/opt#
Esta es la informacón que nos interesa, 62914560 bytes y la partición es ext4.
root@icarus:/opt# mkdir /mnt/rasp-pi-rootfs
root@icarus:/opt# mount -o loop,offset=62914560 2012-07-15-wheezy-raspbian.img /mnt/rasp-pi-rootfs
root@icarus:/opt#
No hay comentarios:
Publicar un comentario