I am trying to convert an image of the new UbuntuMATE for the Raspberry Pi to SquashFS for use in berryboot... I am using the instructions directly from the berryboot site for converting the second partition in the 2015-03-14-ubuntumate-vivid.img file...
$ 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
When I run SquashFS I get this output:
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on Ubuntu_MATE_berryboot.img, block size 131072.
[=========/ ] 15980/128954 12%
Unrecognised xattr prefix system.posix_acl_access
[=============================================================================|] 128954/128954 100%
Exportable Squashfs 4.0 filesystem, lzo compressed, data block size 131072
compressed data, compressed metadata, compressed fragments, compressed xattrs
duplicates are removed
Filesystem size 1923869.98 Kbytes (1878.78 Mbytes)
55.81% of uncompressed filesystem size (3447407.74 Kbytes)
Inode table size 2050044 bytes (2002.00 Kbytes)
35.16% of uncompressed inode table size (5830263 bytes)
Directory table size 1956837 bytes (1910.97 Kbytes)
45.19% of uncompressed directory table size (4330296 bytes)
Xattr table size 35 bytes (0.03 Kbytes)
87.50% of uncompressed xattr table size (40 bytes)
Number of duplicate files found 12816
Number of inodes 157963
Number of files 110040
Number of fragments 7073
Number of symbolic links 38549
Number of device nodes 80
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 9294
Number of ids (unique uids + gids) 32
Number of uids 13
root (0)
man (6)
lp (7)
lucid (1000)
unknown (29999)
whoopsie (109)
guest-OUc1iY (119)
unknown (2625)
pulse (115)
speech-dispatcher (110)
unknown (121)
ntp (117)
dnsmasq (104)
Number of gids 30
root (0)
video (44)
audio (29)
tty (5)
kmem (15)
disk (6)
dip (30)
lp (7)
utempter (112)
shadow (42)
rtkit (114)
lucid (1000)
unknown (29999)
scanner (109)
mail (8)
nopasswdlogin (119)
bluetooth (120)
unknown (2625)
ssh (111)
utmp (43)
staff (50)
saned (115)
unknown (130)
mlocate (110)
colord (121)
nvidia-persistenced (127)
guest-OUc1iY (128)
lightdm (118)
unknown (132)
adm (4)
The problem is this error:
Unrecognised xattr prefix system.posix_acl_access
The new SquashFS .img is created, but when I install the new image file in berryboot it will not boot… I get this error:
Mounting image Ubuntu_MATE_berryboot.img
Error: unable to locate or execute /sbin/init /usr/lib/systemd/systemd /init inside Ubuntu_MATE_berryboot.img
and it drops me to a squashfs# prompt:
Emergency recovery shell activated
/bin/sh: can't access tty; job control turned off
/squashfs #
Why won’t this work? Do I need remove the xattr from the entire original image of my UbuntuMATE for Pi ?
If so how do I do that so that SquashFS doesn't skip packing these folders and files?
Thanks