Advertisement
webmanoffesto

sdb2 was mounted so I unmounted it

Jan 29th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt/boot/efi
  2. mount: /mnt/boot/efi: mount point does not exist.
  3. ubuntu@ubuntu:~$ for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
  4. ubuntu@ubuntu:~$ sudo cp /etc/resolv.conf /mnt/etc/
  5. cp: '/etc/resolv.conf' and '/mnt/etc/resolv.conf' are the same file
  6. ubuntu@ubuntu:~$ sudo chroot /mnt
  7. root@ubuntu:/# fsck.ext4 -pvf /dev/sdb2
  8. /dev/sdb2 is mounted.
  9. e2fsck: Cannot continue, aborting.
  10.  
  11.  
  12. root@ubuntu:/# sudo umount /dev/sdb2
  13. root@ubuntu:/# fsck.ext4 -pvf /dev/sdb2
  14.  
  15. 181135 inodes used (11.40%, out of 1589248)
  16. 48 non-contiguous files (0.0%)
  17. 125 non-contiguous directories (0.1%)
  18. # of inodes with ind/dind/tind blocks: 0/0/0
  19. Extent depth histogram: 156648/9
  20. 1674437 blocks used (26.36%, out of 6351104)
  21. 0 bad blocks
  22. 1 large file
  23.  
  24. 129833 regular files
  25. 24540 directories
  26. 7 character device files
  27. 0 block device files
  28. 0 fifos
  29. 0 links
  30. 26746 symbolic links (24463 fast symbolic links)
  31. 0 sockets
  32. ------------
  33. 181126 files
  34. root@ubuntu:/# apt install --reinstall grub-efi-amd64 linux-generic linux-headers-generic
  35. Reading package lists... Error!
  36. W: Not using locking for read only lock file /var/lib/dpkg/lock
  37. E: Couldn't create temporary file to work with /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_bionic_InRelease - mkstemp (30: Read-only file system)
  38. E: The package lists or status file could not be parsed or opened.
  39. root@ubuntu:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement