Install Xbian in berryboot
|
18th Jun, 2013, 03:59 AM
Post: #4
|
|||
|
|||
RE: Install Xbian in berryboot
I have found a better way of generating the XBian image for BerryBoot.
These are the instructions and commands that fail with the XBian image: Terminal $ sudo kpartx -av image_you_want_to_convert.img add map loop0p1 (252:5): 0 117187 linear /dev/loop0 1 add map loop0p2 (252:6): 0 3493888 linear /dev/loop0 118784 $ sudo mount /dev/mapper/loop0p2 /mnt $ sudo sed -i 's/^\/dev\/mmcblk/#\0/g' /mnt/etc/fstab $ sudo mksquashfs /mnt converted_image_for_berryboot.img -comp lzo -e lib/modules $ sudo umount /mnt $ sudo kpartx -d image_you_want_to_convert.img The first command will fail, so the mount cannot be done the way it is in the instructions. Instead, we can do a mount directly from the image file. We are interested only on the Linux partition of the image. For that, we run the fdisk command: Terminal $ sudo fdisk -lu XBian1.0Alpha5.img You must set cylinders. You can do this from the extra functions menu. Disk XBian1.0Alpha5.img: 0 MB, 0 bytes 255 heads, 63 sectors/track, 0 cylinders, total 0 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x000f06a6 Device Boot Start End Blocks Id System XBian1.0Alpha5.img1 2048 71679 34816 c W95 FAT32 (LBA) Partition 1 does not end on cylinder boundary. XBian1.0Alpha5.img2 71680 1443839 686080 83 Linux Partition 2 does not end on cylinder boundary. Notice the Units value (512) and the start of the Linux partition (71680). These values might change for other images, but the procedure would be the same. Now we mount the Linux partition from the image file like this: Terminal $ sudo mount -t auto -o loop,offset=$((71680*512)) XBian1.0Alpha5.img /mnt Here, we use the numbers from the units and the start of the partition for the offset value in the mount command: offset=$((71680*512)). After this, just continue with the instructions from the "sed" line onward: Terminal $ sudo sed -i 's/^\/dev\/mmcblk/#\0/g' /mnt/etc/fstab $ sudo mksquashfs /mnt converted_image_for_berryboot.img -comp lzo -e lib/modules $ sudo umount /mnt $ sudo kpartx -d image_you_want_to_convert.img Cheers! |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Install Xbian in berryboot - Eloy88 - 18th Jan, 2013, 04:34 AM
RE: Install Xbian in berryboot - brantje - 21st Jan, 2013, 07:02 PM
RE: Install Xbian in berryboot - reeeky2001 - 20th Feb, 2013, 06:46 AM
RE: Install Xbian in berryboot - Oggie - 18th Jun, 2013 03:59 AM
RE: Install Xbian in berryboot - Alastaire - 25th Jun, 2013, 10:41 PM
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
[IDEA] Xbian Berryboot RPi B+ | Jan Picha | 1 | 6,129 |
7th May, 2016 03:55 AM Last Post: Nachteule |
|
[HOW-TO] Install in BerryBoot | reeeky2001 | 17 | 81,286 |
8th Jan, 2014 09:35 AM Last Post: mk01 |