When I tried to run fsck
on Ubuntu 18.04 recovery-mode I got the following message. Can anyone tell me why?
/lib/recocery-mode/recovery-menu: line 80: /etc/default/rcS: No such file or directory
fsck from util-linux 2.31.1
/dev/sda4 is mounted
e2fsck: Cannot continue, aborting.
You don't say what command you're using, so do it this way...
To check the file system on your Ubuntu partition...
sudo fsck -f /
fsck
command if there were errorsreboot
If for some reason you can't do the above...
gparted
and determine which /dev/sdaX is your Ubuntu EXT4 partitiongparted
terminal
windowsudo fsck -f /dev/sda4
# replacing 4 with the number you found earlierreboot
The error is telling you that you cannot use
e2fsck
while the target file system is mounted. You must unmount the file system first usingumount /dev/sda4
. If you're currently booted into a system that has that volume mounted it's likely that you cannot unmount it. You should probably use a USB stick and rune2fsck
from that.