Code: Select all
# installs kpartx and squashfs-tools sudo apt-get install kpartx squashfs-tools # # This opens your image file. #Change the DownloadedImage.img to what your image file name is. sudo kpartx -av DownloadedImage.img # # After opening the image it will give you at least two /dev/mapper/loop#p#. # You want the bigger of the partitions (Normally p2). # In this case it was loop 1 is the image and I want partition 2 because it is the bigger of the two. # sudo mount /dev/mapper/loop1p2 /mnt # Change # to the loop number the previous command reported. # sudo mount /dev/mapper/loop#p2 /mnt # # This is what make the image writable on berryboot # This line should work as is. It edits the file fstab on the image folder etc sudo sed -i 's/^\/dev\/mmcblk/#\0/g' /mnt/etc/fstab # # This line is what takes the mounted image and converts it the a squashfs image. # Note if you do this from the raspberry pi it will take several hours (dependent on the original image size). # Change NewBerryBoot.img to the desired image name. sudo mksquashfs /mnt NewBerryBoot.img -comp lzo -e lib/modules # # This unmounts the image you mounted at the beginning. # This line should work as is sudo umount /mnt # # This closes the image we opened at the beginning. # Change the DownloadedImage.img to what your image file name is. sudo kpartx -d DownloadedImage.img
Thanks for this jer1691. I see RetroPie is now in http://sourceforge.net/projects/berrybo ... os_images/ but I did use the image you created a few weeks ago, so thanks for creating itjer1691 wrote:I have a small sdhc card on my b+ and needed to Add an OS (RetroPie) to a USB Flash Drive through BerryBoot and I wanted to make sure I had the Latest Build of RetroPie, so I just made one. I know a few people might find this useful so it was worth the time
RetroPieImage_ver2.3-BerryBoot.img (squashfs) [867.6 MB]
https://drive.google.com/file/d/0B78Vh0 ... sp=sharing
https://mega.co.nz/#!J0lREYpa!59fIeD2EQ ... ioGeTJNIos
for RasPlex 0.6.0 just make a regular SD Image, boot to it, then after you're done, copy the SYSTEM file from the SD card, and rename it to RasPlex060.img or whatever, so long as .IMG is the extension; this is now your squash IMG.Htaborda wrote:Did anybody squash a recent version of Kali (1.1.1)?
Did anybody squash RasPlex 0.6.0?
Users browsing this forum: No registered users and 3 guests