Linux command help

Discussion in 'Computer Software and Operating Systems' started by Flame, May 4, 2016.

  1. Flame

    Flame Me > You

    GBAtemp Patron
    Flame is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jul 15, 2008
    im trying to add an OS to berryboot for my raspberry 3

    looking at the website below

    the 1st command I don't understand what does it mean? Does it mean I copy the image from a folder like home... Or does it mean I should copy the kernel.img from the usb?

    $ 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
    Last edited by Flame, May 4, 2016
  2. Joom

    Joom  ❤❤❤

    Jan 8, 2016
    United States
    It just means you tell kpartx which image file to use. There's no copying necessary.
    Flame likes this.