oliverv

Adding a custom operating systems to the berryboot menu

Oct 26th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. oliver@s /opt/ncp $ **sudo kpartx -av NextCloudPi_10-02-17.img **
  2. add map loop0p1 (252:0): 0 85622 linear 7:0 8192
  3. add map loop0p2 (252:1): 0 5625192 linear 7:0 94208
  4. oliver@s /opt/ncp $ sudo mount /dev/mapper/loop0p2 /mnt
  5. oliver@s /opt/ncp $ sudo sed -i 's/^\/dev\/mmcblk/#\0/g' /mnt/etc/fstab
  6. oliver@s /opt/ncp $ sudo mksquashfs /mnt NextCloudPi_10_02_17_for_berryboot.img -comp lzo -e lib/modules
  7. Parallel mksquashfs: Using 4 processors
  8. Creating 4.0 filesystem on NextCloudPi_10_02_17_for_berryboot.img, block size 131072.
  9. [===================================================================================================================================================================\] 58954/58954 100%
  10.  
  11. Exportable Squashfs 4.0 filesystem, lzo compressed, data block size 131072
  12. compressed data, compressed metadata, compressed fragments, compressed xattrs
  13. duplicates are removed
  14. Filesystem size 545841.02 Kbytes (533.05 Mbytes)
  15. 36.19% of uncompressed filesystem size (1508137.40 Kbytes)
  16. Inode table size 814666 bytes (795.57 Kbytes)
  17. 37.85% of uncompressed inode table size (2152359 bytes)
  18. Directory table size 698003 bytes (681.64 Kbytes)
  19. 49.43% of uncompressed directory table size (1412008 bytes)
  20. Number of duplicate files found 3490
  21. Number of inodes 64046
  22. Number of files 51127
  23. Number of fragments 3527
  24. Number of symbolic links 6475
  25. Number of device nodes 82
  26. Number of fifo nodes 0
  27. Number of socket nodes 32
  28. Number of directories 6330
  29. Number of ids (unique uids + gids) 29
  30. Number of uids 9
  31. root (0)
  32. man (6)
  33. oliver (1000)
  34. www-data (33)
  35. systemd-timesync (100)
  36. avahi-autoipd (109)
  37. syslog (104)
  38. messagebus (106)
  39. colord (111)
  40. Number of gids 26
  41. root (0)
  42. video (44)
  43. audio (29)
  44. tty (5)
  45. kmem (15)
  46. disk (6)
  47. syslog (108)
  48. shadow (42)
  49. ntp (114)
  50. oliver (1000)
  51. www-data (33)
  52. users (100)
  53. utmp (43)
  54. crontab (107)
  55. messagebus (110)
  56. netdev (109)
  57. staff (50)
  58. avahi-autoipd (117)
  59. man (12)
  60. lpadmin (113)
  61. nogroup (65534)
  62. ssh (116)
  63. mlocate (115)
  64. systemd-network (103)
  65. adm (4)
  66. mail (8)
  67. oliver@s /opt/ncp $ sudo umount /mnt
  68. oliver@s /opt/ncp $ ls
  69. NextCloudPi_10_02_17_for_berryboot.img NextCloudPi_10-02-17.img
  70. oliver@s /opt/ncp $ sudo kpartx -d NextCloudPi_10-02-17.img
  71. loop deleted : /dev/loop0
  72. oliver@s /opt/ncp $ ls
  73. NextCloudPi_10_02_17_for_berryboot.img NextCloudPi_10-02-17.img
Advertisement
Add Comment
Please, Sign In to add comment