Forum
Install Xbian in berryboot - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Installation (/forum-16.html)
+--- Thread: Install Xbian in berryboot (/thread-280.html)



Install Xbian in berryboot - Eloy88 - 18th Jan, 2013 04:34 AM

I'm trying to install Xbian in Berryboot. When Xbian decompress the image I get an error:
Quote:sudo kpartx -av XBian1.0Alpha4.img
add map loop0p1 (252:0): 0 69632 linear /dev/loop0 2048
device-mapper: resume ioctl failed: Invalid argument
create/reload failed on loop0p2
add map loop0p2 (0:0): 0 1331200 linear /dev/loop0 71680

Looking in BerryBoot forums someone said that the image of Xbian not correct, if you apply the image Fdisk is confirmed:[Spanish]
Quote:fdisk XBian1.0Alpha4.img

Disco XBian1.0Alpha4.img: 717 MB, 717225984 bytes
255 cabezas, 63 sectores/pista, 87 cilindros, 1400832 sectores en total
Unidades = sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico / físico): 512 bytes / 512 bytes
Tamaño E/S (mínimo/óptimo): 512 bytes / 512 bytes
Identificador del disco: 0x000f06a6

Dispositivo Inicio Comienzo Fin Bloques Id Sistema
XBian1.0Alpha4.img1 2048 71679 34816 c W95 FAT32 (LBA)
XBian1.0Alpha4.img2 71680 1402879 665600 83 Linux

Orden (m para obtener ayuda):

1400832 sectors, but img2 finish in 1402879

Same trying descompress in windows: ! C:\Users\Eloy\Desktop\Raspberry\1.0Alpha4.tar.gz: El archivo está dañado

"Archive damaged". Of course i download it again.


RE: Install Xbian in berryboot - brantje - 21st Jan, 2013 07:02 PM

Berry Boot -> Nice found! Going to use it with xbian.


RE: Install Xbian in berryboot - reeeky2001 - 20th Feb, 2013 06:46 AM

(18th Jan, 2013 04:34 AM)Eloy88 Wrote:  I'm trying to install Xbian in Berryboot. When Xbian decompress the image I get an error:
Quote:sudo kpartx -av XBian1.0Alpha4.img
add map loop0p1 (252:0): 0 69632 linear /dev/loop0 2048
device-mapper: resume ioctl failed: Invalid argument
create/reload failed on loop0p2
add map loop0p2 (0:0): 0 1331200 linear /dev/loop0 71680

Looking in BerryBoot forums someone said that the image of Xbian not correct, if you apply the image Fdisk is confirmed:[Spanish]

See my post http://forum.xbian.org/thread-477.html to see what you need to do. I'll have also finished uploading the img for BerryBoot in a few minutes.


RE: Install Xbian in berryboot - Oggie - 18th Jun, 2013 03:59 AM

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!


RE: Install Xbian in berryboot - Alastaire - 25th Jun, 2013 10:41 PM

[code]Yes it is a good found and hopefully, it will work better with xbian. Because it needs to upload the image and then it works properly and without any error.


How to Trade Forex