Screenshot of ubuntu MATE 16.04.6 LTS PowerPC:

Just for info. If you mount the partition with kpartx then it isn't possible to modify the partition. You can create, delete, or modify the files but after a remount of the partition, the file system is in the old condition again.xeno74 wrote: ↑Wed Jul 26, 2017 12:39 pmOK, I understand what the problem is. You copied the whole img with partitions included to an empty partition. You can't copy several partitions to an empty partition. This doesn't work.Roland wrote: I created it with GParted, but I chose ext2... Is that important?
Please look in the image with fdisk -l
Code: Select all
fdisk -l Ubuntu-Mate_16.04.img
Do you understand what the problem is? This image was produced for a whole empty stick.Code: Select all
Disk Ubuntu-Mate_16.04.img: 7,2 GiB, 7747397632 bytes, 15131636 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x3a30f5e7 Device Boot Start End Sectors Size Id Type Ubuntu-Mate_16.04.img1 2048 206847 204800 100M 6 FAT16 Ubuntu-Mate_16.04.img2 206848 14925823 14718976 7G 83 Linux Ubuntu-Mate_16.04.img3 14925824 15130623 204800 100M 83 Linux
But you can mount a partition in an image and after that copy it with dd to a partition on your X5000.
Please install kpartx:
Code: Select all
apt-get install kpartx
Code: Select all
kpartx -l Ubuntu-Mate_16.04.img -a
Code: Select all
kpartx -l Ubuntu-Mate_16.04.img
loop0p2 is the ubuntu MATE 16.04.2 LTS root partition.Code: Select all
loop0p1 : 0 204800 /dev/loop0 2048 loop0p2 : 0 14718976 /dev/loop0 206848 loop0p3 : 0 204800 /dev/loop0 14925824
Another option without kpartx:Code: Select all
mount /dev/mapper/loop0p2 /mnt/ -o loop,ro
Code: Select all
sfdisk -d Ubuntu-Mate_16.04.img
Code: Select all
label: dos label-id: 0x3a30f5e7 device: Ubuntu-Mate_16.04.img unit: sectors Ubuntu-Mate_16.04.img1 : start= 2048, size= 204800, type=6 Ubuntu-Mate_16.04.img2 : start= 206848, size= 14718976, type=83 Ubuntu-Mate_16.04.img3 : start= 14925824, size= 204800, type=83
Result: 105906176 7536115712Code: Select all
echo $((206848 * 512)) $((14718976 * 512))
Then:
Please try it.Code: Select all
mount -o loop,offset=105906176,sizelimit=7536115712 Ubuntu-Mate_16.04.img /mnt
Code: Select all
usb reset
Code: Select all
setenv bootargs root=/dev/ramdisk file=/cdrom/preseed/ubuntu-mate.seed boot=casper rootdelay=5
Code: Select all
fatload usb 0:1 1000000 uImage-5.8 or uImage-5.7
Code: Select all
fatload usb 0:1 1c00000 cyrus-p5020.dtb or cyrus-p5040.dtb
Code: Select all
fatload usb 0:1 2000000 uRamdisk
Code: Select all
bootm 1000000 2000000 1c00000
Instructions for changing to the fbdev driver if you use Radeon SI graphics cards.
Code: Select all
usb reset
Code: Select all
setenv bootargs root=/dev/ramdisk file=/cdrom/preseed/ubuntu-mate.seed boot=casper rootdelay=5 single
Code: Select all
fatload usb 0:1 1000000 uImage-5.8 or uImage-5.7
Code: Select all
fatload usb 0:1 1c00000 cyrus-p5020.dtb or cyrus-p5040.dtb
Code: Select all
fatload usb 0:1 2000000 uRamdisk
Code: Select all
bootm 1000000 2000000 1c00000
Code: Select all
vi /etc/X11/xorg.conf
Code: Select all
init 5