Advertisement
Guest User

data 3

a guest
Apr 14th, 2018
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.62 KB | None | 0 0
  1. Disk /dev/sdb: 15 GiB, 16064184320 bytes, 31375360 sectors
  2. Units: sectors of 1 * 512 = 512 bytes
  3. Sector size (logical/physical): 512 bytes / 512 bytes
  4. I/O size (minimum/optimal): 512 bytes / 512 bytes
  5. Disklabel type: gpt
  6. Disk identifier: 3562BAD7-B527-4769-9268-19D77E9FC9D1
  7.  
  8. Device Start End Sectors Size Type
  9. /dev/sdb1 2048 31375326 31373279 15G Microsoft basic data
  10.  
  11.  
  12. Disk /dev/zram0: 478.9 MiB, 502161408 bytes, 122598 sectors
  13. Units: sectors of 1 * 4096 = 4096 bytes
  14. Sector size (logical/physical): 4096 bytes / 4096 bytes
  15. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  16.  
  17.  
  18. Disk /dev/zram1: 478.9 MiB, 502161408 bytes, 122598 sectors
  19. Units: sectors of 1 * 4096 = 4096 bytes
  20. Sector size (logical/physical): 4096 bytes / 4096 bytes
  21. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  22.  
  23.  
  24. Disk /dev/zram2: 478.9 MiB, 502161408 bytes, 122598 sectors
  25. Units: sectors of 1 * 4096 = 4096 bytes
  26. Sector size (logical/physical): 4096 bytes / 4096 bytes
  27. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  28.  
  29.  
  30. Disk /dev/zram3: 478.9 MiB, 502161408 bytes, 122598 sectors
  31. Units: sectors of 1 * 4096 = 4096 bytes
  32. Sector size (logical/physical): 4096 bytes / 4096 bytes
  33. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  34. root@lubuntu:/home/lubuntu# chroot /mnt/boot-sav/sda9/
  35. lubuntu / # ls
  36. ? dev home lib64 opt sbin usr
  37. bin efi initrd.img lost+found proc srv var
  38. boot etc initrd.img.old media root sys vmlinuz
  39. cdrom grub lib mnt run tmp vmlinuz.old
  40. lubuntu / # apt install libefivar
  41. libefivar-dev libefivar0
  42. lubuntu / # apt install libefivar
  43. libefivar-dev libefivar0
  44. lubuntu / # apt install libefivar*
  45. Reading package lists... Done
  46. Building dependency tree
  47. Reading state information... Done
  48. Note, selecting 'libefivar0' for glob 'libefivar*'
  49. Note, selecting 'libefivar-dev' for glob 'libefivar*'
  50. libefivar0 is already the newest version (0.23-2).
  51. The following NEW packages will be installed:
  52. libefivar-dev
  53. 0 upgraded, 1 newly installed, 0 to remove and 223 not upgraded.
  54. 1 not fully installed or removed.
  55. Need to get 14.6 kB of archives.
  56. After this operation, 100 kB of additional disk space will be used.
  57. Do you want to continue? [Y/n] y
  58. Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libefivar-dev amd64 0.23-2 [14.6 kB]
  59. Fetched 14.6 kB in 0s (19.8 kB/s)
  60. E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
  61. Selecting previously unselected package libefivar-dev:amd64.
  62. (Reading database ... 653278 files and directories currently installed.)
  63. Preparing to unpack .../libefivar-dev_0.23-2_amd64.deb ...
  64. Unpacking libefivar-dev:amd64 (0.23-2) ...
  65. Processing triggers for man-db (2.7.5-1) ...
  66. Setting up grub-efi-amd64-signed (1.66.9+2.02~beta2-36ubuntu3.9+linuxmint1) ...
  67. grub-probe: error: cannot find a device for /boot (is /dev mounted?).
  68. grub-install.real: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
  69. dpkg: error processing package grub-efi-amd64-signed (--configure):
  70. subprocess installed post-installation script returned error exit status 1
  71. Setting up libefivar-dev:amd64 (0.23-2) ...
  72. Errors were encountered while processing:
  73. grub-efi-amd64-signed
  74. E: Sub-process /usr/bin/dpkg returned an error code (1)
  75. lubuntu / # exit
  76. exit
  77. root@lubuntu:/home/lubuntu#
  78. root@lubuntu:/home/lubuntu# mount
  79. sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
  80. proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
  81. udev on /dev type devtmpfs (rw,nosuid,relatime,size=1934380k,nr_inodes=483595,mode=755)
  82. devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
  83. tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=392316k,mode=755)
  84. /dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
  85. /dev/loop0 on /rofs type squashfs (ro,noatime)
  86. /cow on / type overlay (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
  87. securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
  88. tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
  89. tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
  90. tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
  91. cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
  92. cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
  93. pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
  94. efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
  95. cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
  96. cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
  97. cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
  98. cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
  99. cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
  100. cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
  101. cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
  102. cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
  103. cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
  104. cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
  105. cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
  106. systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13157)
  107. hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
  108. mqueue on /dev/mqueue type mqueue (rw,relatime)
  109. debugfs on /sys/kernel/debug type debugfs (rw,relatime)
  110. fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
  111. configfs on /sys/kernel/config type configfs (rw,relatime)
  112. tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
  113. tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=392312k,mode=700,uid=999,gid=999)
  114. gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
  115. /dev/sda10 on /mnt/boot-sav/sda10 type ext4 (rw,relatime,stripe=32688,data=ordered)
  116. root@lubuntu:/home/lubuntu# for i in /dev /dev/pts /proc /sys /run; do sudo mount -o bind $i /mnt/boot-sav/$i; done
  117. mount: /mnt/boot-sav//dev: mount point does not exist.
  118. mount: /mnt/boot-sav//dev/pts: mount point does not exist.
  119. mount: /mnt/boot-sav//proc: mount point does not exist.
  120. mount: /mnt/boot-sav//sys: mount point does not exist.
  121. mount: /mnt/boot-sav//run: mount point does not exist.
  122. root@lubuntu:/home/lubuntu# for i in /dev /dev/pts /proc /sys /run; do sudo mount -o bind $i /mnt/boot-sav$i; done
  123. mount: /mnt/boot-sav/dev: mount point does not exist.
  124. mount: /mnt/boot-sav/dev/pts: mount point does not exist.
  125. mount: /mnt/boot-sav/proc: mount point does not exist.
  126. mount: /mnt/boot-sav/sys: mount point does not exist.
  127. mount: /mnt/boot-sav/run: mount point does not exist.
  128. root@lubuntu:/home/lubuntu# fdisk -l
  129. Disk /dev/loop0: 629.3 MiB, 659873792 bytes, 1288816 sectors
  130. Units: sectors of 1 * 512 = 512 bytes
  131. Sector size (logical/physical): 512 bytes / 512 bytes
  132. I/O size (minimum/optimal): 512 bytes / 512 bytes
  133.  
  134.  
  135. Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
  136. Units: sectors of 1 * 512 = 512 bytes
  137. Sector size (logical/physical): 512 bytes / 4096 bytes
  138. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  139. Disklabel type: gpt
  140. Disk identifier: 8EC07A4D-50CA-4F25-9B05-5B7A9C91C265
  141.  
  142. Device Start End Sectors Size Type
  143. /dev/sda1 2048 125831167 125829120 60G Microsoft basic data
  144. /dev/sda2 125831168 126445567 614400 300M Windows recovery environment
  145. /dev/sda3 126445568 126650367 204800 100M EFI System
  146. /dev/sda4 126650368 126912511 262144 128M Microsoft reserved
  147. /dev/sda5 126912512 444094463 317181952 151.3G Microsoft basic data
  148. /dev/sda6 972773376 976773119 3999744 1.9G Linux swap
  149. /dev/sda7 972707840 972773375 65536 32M BIOS boot
  150. /dev/sda9 444094464 526036991 81942528 39.1G Linux filesystem
  151. /dev/sda10 526036992 972707839 446670848 213G Linux filesystem
  152.  
  153. Partition table entries are not in disk order.
  154.  
  155.  
  156.  
  157.  
  158. Disk /dev/zram0: 478.9 MiB, 502161408 bytes, 122598 sectors
  159. Units: sectors of 1 * 4096 = 4096 bytes
  160. Sector size (logical/physical): 4096 bytes / 4096 bytes
  161. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  162.  
  163.  
  164. Disk /dev/zram1: 478.9 MiB, 502161408 bytes, 122598 sectors
  165. Units: sectors of 1 * 4096 = 4096 bytes
  166. Sector size (logical/physical): 4096 bytes / 4096 bytes
  167. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  168.  
  169.  
  170. Disk /dev/zram2: 478.9 MiB, 502161408 bytes, 122598 sectors
  171. Units: sectors of 1 * 4096 = 4096 bytes
  172. Sector size (logical/physical): 4096 bytes / 4096 bytes
  173. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  174.  
  175.  
  176. Disk /dev/zram3: 478.9 MiB, 502161408 bytes, 122598 sectors
  177. Units: sectors of 1 * 4096 = 4096 bytes
  178. Sector size (logical/physical): 4096 bytes / 4096 bytes
  179. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  180.  
  181.  
  182. Disk /dev/sdc: 15 GiB, 16064184320 bytes, 31375360 sectors
  183. Units: sectors of 1 * 512 = 512 bytes
  184. Sector size (logical/physical): 512 bytes / 512 bytes
  185. I/O size (minimum/optimal): 512 bytes / 512 bytes
  186. Disklabel type: gpt
  187. Disk identifier: 3562BAD7-B527-4769-9268-19D77E9FC9D1
  188.  
  189. Device Start End Sectors Size Type
  190. /dev/sdc1 2048 31375326 31373279 15G Microsoft basic data
  191. root@lubuntu:/home/lubuntu# mount /dev/sda9 /mnt/system
  192. mount: /mnt/system: mount point does not exist.
  193. root@lubuntu:/home/lubuntu# mount /dev/sda9 /mnt
  194. root@lubuntu:/home/lubuntu# for i in /dev /dev/pts /proc /sys /run; do sudo mount -o bind $i /mnt$i; done
  195. root@lubuntu:/home/lubuntu# chroot /mnt
  196. lubuntu / # ls
  197. ? dev home lib64 opt sbin usr
  198. bin efi initrd.img lost+found proc srv var
  199. boot etc initrd.img.old media root sys vmlinuz
  200. cdrom grub lib mnt run tmp vmlinuz.old
  201. lubuntu / # whoami
  202. root
  203. lubuntu / # apt install --reinstall libefivar*
  204. Reading package lists... Done
  205. Building dependency tree
  206. Reading state information... Done
  207. Note, selecting 'libefivar0' for glob 'libefivar*'
  208. Note, selecting 'libefivar-dev' for glob 'libefivar*'
  209. 0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 223 not upgraded.
  210. 1 not fully installed or removed.
  211. Need to get 44.3 kB/59.0 kB of archives.
  212. After this operation, 0 B of additional disk space will be used.
  213. Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libefivar0 amd64 0.23-2 [44.3 kB]
  214. Fetched 44.3 kB in 0s (73.3 kB/s)
  215. (Reading database ... 653323 files and directories currently installed.)
  216. Preparing to unpack .../libefivar-dev_0.23-2_amd64.deb ...
  217. Unpacking libefivar-dev:amd64 (0.23-2) over (0.23-2) ...
  218. Preparing to unpack .../libefivar0_0.23-2_amd64.deb ...
  219. Unpacking libefivar0:amd64 (0.23-2) over (0.23-2) ...
  220. Processing triggers for man-db (2.7.5-1) ...
  221. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  222. Setting up grub-efi-amd64-signed (1.66.9+2.02~beta2-36ubuntu3.9+linuxmint1) ...
  223. Installing for x86_64-efi platform.
  224. grub-install.real: error: cannot find EFI directory.
  225. dpkg: error processing package grub-efi-amd64-signed (--configure):
  226. subprocess installed post-installation script returned error exit status 1
  227. Setting up libefivar0:amd64 (0.23-2) ...
  228. Setting up libefivar-dev:amd64 (0.23-2) ...
  229. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  230. Errors were encountered while processing:
  231. grub-efi-amd64-signed
  232. E: Sub-process /usr/bin/dpkg returned an error code (1)
  233. lubuntu / # apt-get install -f
  234. Reading package lists... Done
  235. Building dependency tree
  236. Reading state information... Done
  237. 0 upgraded, 0 newly installed, 0 to remove and 223 not upgraded.
  238. 1 not fully installed or removed.
  239. After this operation, 0 B of additional disk space will be used.
  240. Setting up grub-efi-amd64-signed (1.66.9+2.02~beta2-36ubuntu3.9+linuxmint1) ...
  241. Installing for x86_64-efi platform.
  242. grub-install.real: error: cannot find EFI directory.
  243. dpkg: error processing package grub-efi-amd64-signed (--configure):
  244. subprocess installed post-installation script returned error exit status 1
  245. Errors were encountered while processing:
  246. grub-efi-amd64-signed
  247. E: Sub-process /usr/bin/dpkg returned an error code (1)
  248. lubuntu / # exit
  249. exit
  250. root@lubuntu:/home/lubuntu# mount
  251. sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
  252. proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
  253. udev on /dev type devtmpfs (rw,nosuid,relatime,size=1934380k,nr_inodes=483595,mode=755)
  254. devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
  255. tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=392316k,mode=755)
  256. /dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
  257. /dev/loop0 on /rofs type squashfs (ro,noatime)
  258. /cow on / type overlay (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
  259. securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
  260. tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
  261. tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
  262. tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
  263. cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
  264. cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
  265. pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
  266. efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
  267. cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
  268. cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
  269. cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
  270. cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
  271. cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
  272. cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
  273. cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
  274. cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
  275. cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
  276. cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
  277. cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
  278. systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13157)
  279. hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
  280. mqueue on /dev/mqueue type mqueue (rw,relatime)
  281. debugfs on /sys/kernel/debug type debugfs (rw,relatime)
  282. fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
  283. configfs on /sys/kernel/config type configfs (rw,relatime)
  284. tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
  285. tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=392312k,mode=700,uid=999,gid=999)
  286. gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
  287. /dev/sda10 on /mnt/boot-sav/sda10 type ext4 (rw,relatime,stripe=32688,data=ordered)
  288. /dev/sda9 on /mnt type ext4 (rw,relatime,stripe=32624,data=ordered)
  289. udev on /mnt/dev type devtmpfs (rw,nosuid,relatime,size=1934380k,nr_inodes=483595,mode=755)
  290. devpts on /mnt/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
  291. devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
  292. proc on /mnt/proc type proc (rw,nosuid,nodev,noexec,relatime)
  293. sysfs on /mnt/sys type sysfs (rw,nosuid,nodev,noexec,relatime)
  294. tmpfs on /mnt/run type tmpfs (rw,nosuid,noexec,relatime,size=392316k,mode=755)
  295. root@lubuntu:/home/lubuntu# mount /dev/sda3 /mnt/boot/efiroot@lubuntu:/home/lubuntu# chroot /mnt
  296. lubuntu / # apt-get install -f
  297. Reading package lists... Done
  298. Building dependency tree
  299. Reading state information... Done
  300. 0 upgraded, 0 newly installed, 0 to remove and 223 not upgraded.
  301. 1 not fully installed or removed.
  302. After this operation, 0 B of additional disk space will be used.
  303. Setting up grub-efi-amd64-signed (1.66.9+2.02~beta2-36ubuntu3.9+linuxmint1) ...
  304. Installing for x86_64-efi platform.
  305. efibootmgr: error while loading shared libraries: libefivar.so.0: cannot open shared object file: No such file or directory
  306. grub-install.real: error: efibootmgr: not found.
  307. dpkg: error processing package grub-efi-amd64-signed (--configure):
  308. subprocess installed post-installation script returned error exit status 1
  309. Errors were encountered while processing:
  310. grub-efi-amd64-signed
  311. E: Sub-process /usr/bin/dpkg returned an error code (1)
  312. lubuntu / # apt install --reinstall libefivar
  313. libefivar-dev libefivar0
  314. lubuntu / # apt autoremove
  315. Reading package lists... Done
  316. Building dependency tree
  317. Reading state information... Done
  318. 0 upgraded, 0 newly installed, 0 to remove and 223 not upgraded.
  319. 1 not fully installed or removed.
  320. After this operation, 0 B of additional disk space will be used.
  321. Setting up grub-efi-amd64-signed (1.66.9+2.02~beta2-36ubuntu3.9+linuxmint1) ...
  322. Installing for x86_64-efi platform.
  323. efibootmgr: error while loading shared libraries: libefivar.so.0: cannot open shared object file: No such file or directory
  324. grub-install.real: error: efibootmgr: not found.
  325. dpkg: error processing package grub-efi-amd64-signed (--configure):
  326. subprocess installed post-installation script returned error exit status 1
  327. Errors were encountered while processing:
  328. grub-efi-amd64-signed
  329. E: Sub-process /usr/bin/dpkg returned an error code (1)
  330. lubuntu / # apt purge libefivar
  331. libefivar-dev libefivar0
  332. lubuntu / # apt purge libefivar*
  333. Reading package lists... Done
  334. Building dependency tree
  335. Reading state information... Done
  336. Note, selecting 'libefivar0' for glob 'libefivar*'
  337. Note, selecting 'libefivar-dev' for glob 'libefivar*'
  338. The following additional packages will be installed:
  339. libdfu1
  340. The following packages will be REMOVED:
  341. efibootmgr* fwupd* fwupdate* grub-efi-amd64* grub-efi-amd64-bin*
  342. grub-efi-amd64-signed* libefivar-dev* libefivar0* libfwup0*
  343. The following packages will be upgraded:
  344. libdfu1
  345. 1 upgraded, 0 newly installed, 9 to remove and 221 not upgraded.
  346. 1 not fully installed or removed.
  347. Need to get 48.7 kB of archives.
  348. After this operation, 7624 kB disk space will be freed.
  349. Do you want to continue? [Y/n] y
  350. Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdfu1 amd64 0.8.3-0ubuntu2 [48.7 kB]
  351. Fetched 48.7 kB in 0s (147 kB/s)
  352. (Reading database ... 653322 files and directories currently installed.)
  353. Removing grub-efi-amd64-signed (1.66.9+2.02~beta2-36ubuntu3.9+linuxmint1) ...
  354. Removing grub-efi-amd64 (2.02~beta2-36ubuntu3.9+linuxmint1) ...
  355. Purging configuration files for grub-efi-amd64 (2.02~beta2-36ubuntu3.9+linuxmint1) ...
  356. Removing grub-efi-amd64-bin (2.02~beta2-36ubuntu3.9+linuxmint1) ...
  357. Removing fwupdate (0.5-2ubuntu7) ...
  358. Purging configuration files for fwupdate (0.5-2ubuntu7) ...
  359. Removing efibootmgr (0.12-4) ...
  360. Removing fwupd (0.7.0-0ubuntu4.3) ...
  361. Purging configuration files for fwupd (0.7.0-0ubuntu4.3) ...
  362. Removing libefivar-dev:amd64 (0.23-2) ...
  363. Removing libfwup0:amd64 (0.5-2ubuntu7) ...
  364. Removing libefivar0:amd64 (0.23-2) ...
  365. Processing triggers for man-db (2.7.5-1) ...
  366. Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
  367. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  368. (Reading database ... 652918 files and directories currently installed.)
  369. Preparing to unpack .../libdfu1_0.8.3-0ubuntu2_amd64.deb ...
  370. Unpacking libdfu1:amd64 (0.8.3-0ubuntu2) over (0.7.0-0ubuntu4.3) ...
  371. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  372. Setting up libdfu1:amd64 (0.8.3-0ubuntu2) ...
  373. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  374. lubuntu / # apt-get install -f
  375. Reading package lists... Done
  376. Building dependency tree
  377. Reading state information... Done
  378. 0 upgraded, 0 newly installed, 0 to remove and 221 not upgraded.
  379. lubuntu / # apt install libefivar*
  380. Reading package lists... Done
  381. Building dependency tree
  382. Reading state information... Done
  383. Note, selecting 'libefivar0' for glob 'libefivar*'
  384. Note, selecting 'libefivar-dev' for glob 'libefivar*'
  385. The following NEW packages will be installed:
  386. libefivar-dev libefivar0
  387. 0 upgraded, 2 newly installed, 0 to remove and 221 not upgraded.
  388. Need to get 0 B/59.0 kB of archives.
  389. After this operation, 261 kB of additional disk space will be used.
  390. Selecting previously unselected package libefivar0:amd64.
  391. (Reading database ... 652918 files and directories currently installed.)
  392. Preparing to unpack .../libefivar0_0.23-2_amd64.deb ...
  393. Unpacking libefivar0:amd64 (0.23-2) ...
  394. Selecting previously unselected package libefivar-dev:amd64.
  395. Preparing to unpack .../libefivar-dev_0.23-2_amd64.deb ...
  396. Unpacking libefivar-dev:amd64 (0.23-2) ...
  397. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  398. Processing triggers for man-db (2.7.5-1) ...
  399. Setting up libefivar0:amd64 (0.23-2) ...
  400. Setting up libefivar-dev:amd64 (0.23-2) ...
  401. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  402. lubuntu / # apt install --reinstall libefivar*
  403. Reading package lists... Done
  404. Building dependency tree
  405. Reading state information... Done
  406. Note, selecting 'libefivar0' for glob 'libefivar*'
  407. Note, selecting 'libefivar-dev' for glob 'libefivar*'
  408. 0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 221 not upgraded.
  409. Need to get 0 B/59.0 kB of archives.
  410. After this operation, 0 B of additional disk space will be used.
  411. (Reading database ... 652970 files and directories currently installed.)
  412. Preparing to unpack .../libefivar-dev_0.23-2_amd64.deb ...
  413. Unpacking libefivar-dev:amd64 (0.23-2) over (0.23-2) ...
  414. Preparing to unpack .../libefivar0_0.23-2_amd64.deb ...
  415. Unpacking libefivar0:amd64 (0.23-2) over (0.23-2) ...
  416. Processing triggers for man-db (2.7.5-1) ...
  417. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  418. Setting up libefivar0:amd64 (0.23-2) ...
  419. Setting up libefivar-dev:amd64 (0.23-2) ...
  420. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  421. lubuntu / # grub
  422. grub grub-menulst2cfg grub-mkrescue
  423. grub-editenv grub-mkconfig grub-mkstandalone
  424. grub-file grub-mkdevicemap grub-mount
  425. grub-fstest grub-mkfont grub-probe
  426. grub-glue-efi grub-mkimage grub-reboot
  427. grub-install grub-mklayout grub-render-label
  428. grub-install.real grub-mknetdir grub-script-check
  429. grub-kbdcomp grub-mkpasswd-pbkdf2 grub-set-default
  430. grub-macbless grub-mkrelpath grub-syslinux2cfg
  431. lubuntu / # efi
  432. efi
  433. lubuntu / # grub-install /dev/sda
  434. grub-install.real: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
  435. lubuntu / # apt install grub-efi
  436. grub-efi grub-efi-amd64-dbg grub-efi-ia32-bin
  437. grub-efi-amd64 grub-efi-amd64-signed grub-efi-ia32-dbg
  438. grub-efi-amd64-bin grub-efi-ia32
  439. lubuntu / # apt install grub-efi-amd64
  440. grub-efi-amd64 grub-efi-amd64-dbg
  441. grub-efi-amd64-bin grub-efi-amd64-signed
  442. lubuntu / # apt install grub-efi-amd64*
  443. Reading package lists... Done
  444. Building dependency tree
  445. Reading state information... Done
  446. Note, selecting 'grub-efi-amd64-bin' for glob 'grub-efi-amd64*'
  447. Note, selecting 'grub-efi-amd64-dbg' for glob 'grub-efi-amd64*'
  448. Note, selecting 'grub-efi-amd64' for glob 'grub-efi-amd64*'
  449. Note, selecting 'grub-efi-amd64-signed' for glob 'grub-efi-amd64*'
  450. The following additional packages will be installed:
  451. efibootmgr
  452. Recommended packages:
  453. secureboot-db
  454. The following NEW packages will be installed:
  455. efibootmgr grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-dbg
  456. grub-efi-amd64-signed
  457. 0 upgraded, 5 newly installed, 0 to remove and 221 not upgraded.
  458. Need to get 3596 kB/3890 kB of archives.
  459. After this operation, 23.6 MB of additional disk space will be used.
  460. Do you want to continue? [Y/n] y
  461. Get:1 http://packages.linuxmint.com sonya/upstream amd64 grub-efi-amd64-bin amd64 2.02~beta2-36ubuntu3.9+linuxmint1 [658 kB]
  462. Get:2 http://packages.linuxmint.com sonya/upstream amd64 grub-efi-amd64 amd64 2.02~beta2-36ubuntu3.9+linuxmint1 [65.5 kB]
  463. Get:3 http://packages.linuxmint.com sonya/upstream amd64 grub-efi-amd64-dbg amd64 2.02~beta2-36ubuntu3.9+linuxmint1 [2852 kB]
  464. Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 efibootmgr amd64 0.12-4 [20.3 kB]
  465. Fetched 3596 kB in 9s (384 kB/s)
  466. Preconfiguring packages ...
  467. Selecting previously unselected package efibootmgr.
  468. (Reading database ... 652970 files and directories currently installed.)
  469. Preparing to unpack .../efibootmgr_0.12-4_amd64.deb ...
  470. Unpacking efibootmgr (0.12-4) ...
  471. Selecting previously unselected package grub-efi-amd64-bin.
  472. Preparing to unpack .../grub-efi-amd64-bin_2.02~beta2-36ubuntu3.9+linuxmint1_amd64.deb ...
  473. Unpacking grub-efi-amd64-bin (2.02~beta2-36ubuntu3.9+linuxmint1) ...
  474. Selecting previously unselected package grub-efi-amd64.
  475. Preparing to unpack .../grub-efi-amd64_2.02~beta2-36ubuntu3.9+linuxmint1_amd64.deb ...
  476. Unpacking grub-efi-amd64 (2.02~beta2-36ubuntu3.9+linuxmint1) ...
  477. Selecting previously unselected package grub-efi-amd64-signed.
  478. Preparing to unpack .../grub-efi-amd64-signed_1.66.9+2.02~beta2-36ubuntu3.9+linuxmint1_amd64.deb ...
  479. Unpacking grub-efi-amd64-signed (1.66.9+2.02~beta2-36ubuntu3.9+linuxmint1) ...
  480. Selecting previously unselected package grub-efi-amd64-dbg.
  481. Preparing to unpack .../grub-efi-amd64-dbg_2.02~beta2-36ubuntu3.9+linuxmint1_amd64.deb ...
  482. Unpacking grub-efi-amd64-dbg (2.02~beta2-36ubuntu3.9+linuxmint1) ...
  483. Processing triggers for man-db (2.7.5-1) ...
  484. Setting up efibootmgr (0.12-4) ...
  485. Setting up grub-efi-amd64-bin (2.02~beta2-36ubuntu3.9+linuxmint1) ...
  486. Setting up grub-efi-amd64 (2.02~beta2-36ubuntu3.9+linuxmint1) ...
  487.  
  488. Creating config file /etc/default/grub with new version
  489. Installing for x86_64-efi platform.
  490. Installation finished. No error reported.
  491. Generating grub configuration file ...
  492. Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
  493. Found linux image: /boot/vmlinuz-4.4.0-112-generic
  494. Found initrd image: /boot/initrd.img-4.4.0-112-generic
  495. Found linux image: /boot/vmlinuz-4.4.0-109-generic
  496. Found initrd image: /boot/initrd.img-4.4.0-109-generic
  497. Found linux image: /boot/vmlinuz-4.4.0-104-generic
  498. Found initrd image: /boot/initrd.img-4.4.0-104-generic
  499. Found linux image: /boot/vmlinuz-4.4.0-103-generic
  500. Found initrd image: /boot/initrd.img-4.4.0-103-generic
  501. Found linux image: /boot/vmlinuz-4.4.0-101-generic
  502. Found initrd image: /boot/initrd.img-4.4.0-101-generic
  503. Found linux image: /boot/vmlinuz-4.4.0-98-generic
  504. Found initrd image: /boot/initrd.img-4.4.0-98-generic
  505. Found linux image: /boot/vmlinuz-4.4.0-97-generic
  506. Found initrd image: /boot/initrd.img-4.4.0-97-generic
  507. Found linux image: /boot/vmlinuz-4.4.0-96-generic
  508. Found initrd image: /boot/initrd.img-4.4.0-96-generic
  509. Found linux image: /boot/vmlinuz-4.4.0-93-generic
  510. Found initrd image: /boot/initrd.img-4.4.0-93-generic
  511. Found linux image: /boot/vmlinuz-4.4.0-92-generic
  512. Found initrd image: /boot/initrd.img-4.4.0-92-generic
  513. Found linux image: /boot/vmlinuz-4.4.0-89-generic
  514. Found initrd image: /boot/initrd.img-4.4.0-89-generic
  515. Found linux image: /boot/vmlinuz-4.4.0-43-generic
  516. Found initrd image: /boot/initrd.img-4.4.0-43-generic
  517. Found linux image: /boot/vmlinuz-4.4.0-21-generic
  518. Found initrd image: /boot/initrd.img-4.4.0-21-generic
  519. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  520. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  521. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  522. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  523. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  524. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  525. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  526. dmraid: error while loading shared libraries: libdmraid.so.1.0.0.rc16: wrong ELF class: ELFCLASS32
  527. dmraid: error while loading shared libraries: libdmraid.so.1.0.0.rc16: wrong ELF class: ELFCLASS32
  528. dmraid: error while loading shared libraries: libdmraid.so.1.0.0.rc16: wrong ELF class: ELFCLASS32
  529. dmraid: error while loading shared libraries: libdmraid.so.1.0.0.rc16: wrong ELF class: ELFCLASS32
  530. dmraid: error while loading shared libraries: libdmraid.so.1.0.0.rc16: wrong ELF class: ELFCLASS32
  531. dmraid: error while loading shared libraries: libdmraid.so.1.0.0.rc16: wrong ELF class: ELFCLASS32
  532. dmraid: error while loading shared libraries: libdmraid.so.1.0.0.rc16: wrong ELF class: ELFCLASS32
  533. dmraid: error while loading shared libraries: libdmraid.so.1.0.0.rc16: wrong ELF class: ELFCLASS32
  534. dmraid: error while loading shared libraries: libdmraid.so.1.0.0.rc16: wrong ELF class: ELFCLASS32
  535. dmraid: error while loading shared libraries: libdmraid.so.1.0.0.rc16: wrong ELF class: ELFCLASS32
  536. log-output: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  537. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  538. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  539. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  540. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  541. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  542. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  543. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  544. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  545. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  546. mapdevfs: error while loading shared libraries: libdebian-installer.so.4: cannot open shared object file: No such file or directory
  547. Adding boot menu entry for EFI firmware configuration
  548. done
  549. Setting up grub-efi-amd64-signed (1.66.9+2.02~beta2-36ubuntu3.9+linuxmint1) ...
  550. Installing for x86_64-efi platform.
  551. Installation finished. No error reported.
  552. Setting up grub-efi-amd64-dbg (2.02~beta2-36ubuntu3.9+linuxmint1) ...
  553. lubuntu / # apt install --reinstall libefivar*
  554. Reading package lists... Done
  555. Building dependency tree
  556. Reading state information... Done
  557. Note, selecting 'libefivar0' for glob 'libefivar*'
  558. Note, selecting 'libefivar-dev' for glob 'libefivar*'
  559. 0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 221 not upgraded.
  560. Need to get 0 B/59.0 kB of archives.
  561. After this operation, 0 B of additional disk space will be used.
  562. (Reading database ... 653515 files and directories currently installed.)
  563. Preparing to unpack .../libefivar-dev_0.23-2_amd64.deb ...
  564. Unpacking libefivar-dev:amd64 (0.23-2) over (0.23-2) ...
  565. Preparing to unpack .../libefivar0_0.23-2_amd64.deb ...
  566. Unpacking libefivar0:amd64 (0.23-2) over (0.23-2) ...
  567. Processing triggers for man-db (2.7.5-1) ...
  568. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  569. Setting up libefivar0:amd64 (0.23-2) ...
  570. Setting up libefivar-dev:amd64 (0.23-2) ...
  571. Processing triggers for libc-bin (2.23-0ubuntu10) ...
  572. lubuntu / # exit
  573. exit
  574. root@lubuntu:/home/lubuntu# ls
  575. Desktop Documents Downloads Music Pictures Public Templates Videos
  576. root@lubuntu:/home/lubuntu# cd Downloads/
  577. root@lubuntu:/home/lubuntu/Downloads# ls
  578. bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb
  579. root@lubuntu:/home/lubuntu/Downloads# cd /mnt/
  580. ^A grub/ mnt/ tmp/
  581. .Trash-0/ home/ opt/ usr/
  582. bin/ initrd.img proc/ var/
  583. boot/ initrd.img.old root/ vmlinuz
  584. cdrom/ lib/ run/ vmlinuz.old
  585. dev/ lib64/ sbin/
  586. efi/ lost+found/ srv/
  587. etc/ media/ sys/
  588. root@lubuntu:/home/lubuntu/Downloads# cd /mnt/tmp/
  589. root@lubuntu:/mnt/tmp# ls
  590. config-err-esElqA mintUpdate
  591. root@lubuntu:/mnt/tmp# cp /home/lubuntu/Downloads/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb ./
  592. root@lubuntu:/mnt/tmp# ls
  593. bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb mintUpdate
  594. config-err-esElqA
  595. root@lubuntu:/mnt/tmp# cd /
  596. root@lubuntu:/# chroot /mnt
  597. lubuntu / # ls
  598. ? dev home lib64 opt sbin usr
  599. bin efi initrd.img lost+found proc srv var
  600. boot etc initrd.img.old media root sys vmlinuz
  601. cdrom grub lib mnt run tmp vmlinuz.old
  602. lubuntu / # cd tmp/
  603. lubuntu tmp # ls
  604. bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb mintUpdate
  605. config-err-esElqA
  606. lubuntu tmp # dpkg -i bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb
  607. Selecting previously unselected package bcmwl-kernel-source.
  608. (Reading database ... 653515 files and directories currently installed.)
  609. Preparing to unpack bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb ...
  610. Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.2) ...
  611. Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.2) ...
  612. Loading new bcmwl-6.30.223.271+bdcom DKMS files...
  613. It is likely that 4.13.0-16-generic belongs to a chroot's host
  614. Building for architecture x86_64
  615. Module build for the currently running kernel was skipped since the
  616. kernel source for this kernel does not seem to be installed.
  617. modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.13.0-16-generic/modules.dep.bin'
  618. modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.13.0-16-generic/modules.builtin.bin'
  619. modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.13.0-16-generic/modules.dep.bin'
  620. modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.13.0-16-generic/modules.dep.bin'
  621. modprobe: ERROR: ../libkmod/libkmod.c:514 lookup_builtin_file() could not open builtin file '/lib/modules/4.13.0-16-generic/modules.builtin.bin'
  622. modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.13.0-16-generic/modules.dep.bin'
  623. modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.13.0-16-generic/modules.dep.bin'
  624. modprobe: ERROR: ../libkmod/libkmod-module.c:832 kmod_module_insert_module() could not find module by name='wl'
  625. modprobe: ERROR: could not insert 'wl': Unknown symbol in module, or unknown parameter (see dmesg)
  626. modprobe: ERROR: ../libkmod/libkmod-module.c:977 command_do() Error running install command for wl
  627. modprobe: ERROR: could not insert 'wl': Operation not permitted
  628. update-initramfs: deferring update (trigger activated)
  629. Processing triggers for initramfs-tools (0.122ubuntu8.10) ...
  630. update-initramfs: Generating /boot/initrd.img-4.4.0-112-generic
  631. W: plymouth module (/usr/lib/i386-linux-gnu/plymouth//script.so) missing, skipping that theme.
  632. W: plymouth module (/usr/lib/i386-linux-gnu/plymouth//ubuntu-text.so) missing, skipping that theme.
  633. Warning: No support for locale: en_US.utf8
  634. lubuntu tmp # exit
  635. exit
  636. root@lubuntu:/# cd /mnt
  637. root@lubuntu:/mnt# ls
  638. ? dev home lib64 opt sbin usr
  639. bin efi initrd.img lost+found proc srv var
  640. boot etc initrd.img.old media root sys vmlinuz
  641. cdrom grub lib mnt run tmp vmlinuz.old
  642. root@lubuntu:/mnt# history
  643. 1 fdisk -l
  644. 2 chroot /mnt/boot-sav/sda9/
  645. 3 mount
  646. 4 for i in /dev /dev/pts /proc /sys /run; do sudo mount -o bind $i /mnt/boot-sav/$i; done
  647. 5 for i in /dev /dev/pts /proc /sys /run; do sudo mount -o bind $i /mnt/boot-sav$i; done
  648. 6 fdisk -l
  649. 7 mount /dev/sda9 /mnt/system
  650. 8 mount /dev/sda9 /mnt
  651. 9 for i in /dev /dev/pts /proc /sys /run; do sudo mount -o bind $i /mnt$i; done
  652. 10 chroot /mnt
  653. 11 mount
  654. 12 mount /dev/sda3 /mnt/boot/efi
  655. 13 chroot /mnt
  656. 14 ls
  657. 15 cd Downloads/
  658. 16 ls
  659. 17 cd /mnt/tmp/
  660. 18 ls
  661. 19 cp /home/lubuntu/Downloads/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb ./
  662. 20 ls
  663. 21 cd /
  664. 22 chroot /mnt
  665. 23 cd /mnt
  666. 24 ls
  667. 25 history
  668. root@lubuntu:/mnt# cd /
  669. root@lubuntu:/# mount
  670. sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
  671. proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
  672. udev on /dev type devtmpfs (rw,nosuid,relatime,size=1934380k,nr_inodes=483595,mode=755)
  673. devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
  674. tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=392316k,mode=755)
  675. /dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
  676. /dev/loop0 on /rofs type squashfs (ro,noatime)
  677. /cow on / type overlay (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
  678. securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
  679. tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
  680. tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
  681. tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
  682. cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
  683. cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
  684. pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
  685. efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
  686. cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
  687. cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
  688. cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
  689. cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
  690. cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
  691. cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
  692. cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
  693. cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
  694. cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
  695. cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
  696. cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
  697. systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13157)
  698. hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
  699. mqueue on /dev/mqueue type mqueue (rw,relatime)
  700. debugfs on /sys/kernel/debug type debugfs (rw,relatime)
  701. fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
  702. configfs on /sys/kernel/config type configfs (rw,relatime)
  703. tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
  704. tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=392312k,mode=700,uid=999,gid=999)
  705. gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
  706. /dev/sda10 on /mnt/boot-sav/sda10 type ext4 (rw,relatime,stripe=32688,data=ordered)
  707. /dev/sda9 on /mnt type ext4 (rw,relatime,stripe=32624,data=ordered)
  708. udev on /mnt/dev type devtmpfs (rw,nosuid,relatime,size=1934380k,nr_inodes=483595,mode=755)
  709. devpts on /mnt/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
  710. devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
  711. proc on /mnt/proc type proc (rw,nosuid,nodev,noexec,relatime)
  712. sysfs on /mnt/sys type sysfs (rw,nosuid,nodev,noexec,relatime)
  713. tmpfs on /mnt/run type tmpfs (rw,nosuid,noexec,relatime,size=392316k,mode=755)
  714. /dev/sda3 on /mnt/boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
  715. root@lubuntu:/# umount /mnt/boot/efi/
  716. root@lubuntu:/# umount /mnt/run
  717. root@lubuntu:/# umount /mnt/sys
  718. root@lubuntu:/# umount /mnt/proc/
  719. root@lubuntu:/# umount /mnt/proc
  720. umount: /mnt/proc: not mounted.
  721. root@lubuntu:/# umount /mnt/dev/p
  722. port ppp psaux ptmx pts/
  723. root@lubuntu:/# umount /mnt/dev/pts
  724. root@lubuntu:/# umount /mnt/dev
  725. root@lubuntu:/# umount /mnt
  726. root@lubuntu:/# mount
  727. sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
  728. proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
  729. udev on /dev type devtmpfs (rw,nosuid,relatime,size=1934380k,nr_inodes=483595,mode=755)
  730. devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
  731. tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=392316k,mode=755)
  732. /dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
  733. /dev/loop0 on /rofs type squashfs (ro,noatime)
  734. /cow on / type overlay (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
  735. securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
  736. tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
  737. tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
  738. tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
  739. cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
  740. cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
  741. pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
  742. efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
  743. cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
  744. cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
  745. cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
  746. cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
  747. cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
  748. cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
  749. cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
  750. cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
  751. cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
  752. cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
  753. cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
  754. systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13157)
  755. hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
  756. mqueue on /dev/mqueue type mqueue (rw,relatime)
  757. debugfs on /sys/kernel/debug type debugfs (rw,relatime)
  758. fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
  759. configfs on /sys/kernel/config type configfs (rw,relatime)
  760. tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
  761. tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=392312k,mode=700,uid=999,gid=999)
  762. gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
  763. /dev/sda10 on /mnt/boot-sav/sda10 type ext4 (rw,relatime,stripe=32688,data=ordered)
  764. root@lubuntu:/# cd mnt/boot-sav/sda10/
  765. root@lubuntu:/mnt/boot-sav/sda10# ls
  766. lost+found n3t
  767. root@lubuntu:/mnt/boot-sav/sda10# cd n3t/
  768. root@lubuntu:/mnt/boot-sav/sda10/n3t# cd Downloads/
  769. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# ls
  770. Screenshot at 2018-03-25 14-15-00.png files.zip
  771. Screenshot from 2018-02-04 18:41:44.png grub.cfg
  772. Screenshot from 2018-03-25 12:19:32.png libefivar0_0.21-1~14.04.2_amd64.deb
  773. US_trip linuxmint-18.3-mate-64bit.iso
  774. bookmarks.html ubuntu-16.04.4-desktop-amd64.iso
  775. boot-repair-disk-64bit.iso
  776. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# cp /home/lubuntu/Downloads/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb ./
  777. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# ls
  778. Screenshot at 2018-03-25 14-15-00.png
  779. Screenshot from 2018-02-04 18:41:44.png
  780. Screenshot from 2018-03-25 12:19:32.png
  781. US_trip
  782. bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb
  783. bookmarks.html
  784. boot-repair-disk-64bit.iso
  785. files.zip
  786. grub.cfg
  787. libefivar0_0.21-1~14.04.2_amd64.deb
  788. linuxmint-18.3-mate-64bit.iso
  789. ubuntu-16.04.4-desktop-amd64.iso
  790. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# le
  791. leafpad less lessecho lessfile lesskey lesspipe let
  792. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# le
  793. leafpad less lessecho lessfile lesskey lesspipe let
  794. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# leafpad ./
  795. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# leafpad ./session
  796. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# ls
  797. Screenshot at 2018-03-25 14-15-00.png
  798. Screenshot from 2018-02-04 18:41:44.png
  799. Screenshot from 2018-03-25 12:19:32.png
  800. US_trip
  801. bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb
  802. bookmarks.html
  803. boot-repair-disk-64bit.iso
  804. files.zip
  805. grub.cfg
  806. libefivar0_0.21-1~14.04.2_amd64.deb
  807. linuxmint-18.3-mate-64bit.iso
  808. ubuntu-16.04.4-desktop-amd64.iso
  809. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# leafpad ./session.txt
  810.  
  811. (leafpad:3186): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file “/root/.local/share/recently-used.xbel.5JWYGZ”: No such file or directory
  812.  
  813. (leafpad:3186): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
  814. ^C
  815. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# ls
  816. Screenshot at 2018-03-25 14-15-00.png
  817. Screenshot from 2018-02-04 18:41:44.png
  818. Screenshot from 2018-03-25 12:19:32.png
  819. US_trip
  820. bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb
  821. bookmarks.html
  822. boot-repair-disk-64bit.iso
  823. files.zip
  824. grub.cfg
  825. libefivar0_0.21-1~14.04.2_amd64.deb
  826. linuxmint-18.3-mate-64bit.iso
  827. session
  828. ubuntu-16.04.4-desktop-amd64.iso
  829. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# cat session
  830. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# leafpad session
  831. ^[[1;5C^[[A^[[A^[[B
  832.  
  833. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# leafpad session
  834. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads#
  835. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads#
  836. Display all 1469 possibilities? (y or n)
  837. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads# leafpad session
  838. root@lubuntu:/mnt/boot-sav/sda10/n3t/Downloads#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement