I'm not entirely sure why this error happens, but I've observed some other things. I guess, you are using a Raspberry-Pi (or some other embedded computer). I'll give you some general tips. First there are more or less 2 obvious mount directories in a Linux/Unix OS, first is /mnt
and second is /media
. /mnt
shall only be used as a temporary mount folder by an admin. /media
shall be used only for removable devices, more precisely unknown devices. This means, you should not use /media
as a regular mount directory in /etc/fstab
.
Now you'll ask, "But where the hell shall I mount my permanent devices, like USB-harddisks and etc.?".
The answer is, you mount them into specific directories or in general directories.
For example, mmcblk1p1
seems to be a boot partition for your Linux OS. So you should mount it into a specific directory like /boot
.
Before doing so, make sure that /media/boot
and /boot
have the same files (name, size, date). If files in both directories are different, you may copy the newest files over the oldest files. Make sure to create a backup first, in case something bad happens.
Make a backup of your fstab
file.
fstab
- boot partition
# Comments start with a #-character
# LABEL=BOOT /boot vfat umask=0077 0 1
# Using UUID is generally advisable
UUID=F702-39CB /boot vfat umask=0077 0 1
"Okay, but what general directories shall I use?"
If you don't want to invent the wheel new, you may use /srv
directory for permanent mounting, more precisely you may create some sub-directories there. For example: sudo mkdir /srv/sda1 /srv/sdb1
. Some other admins create even a new directory in root-directory, like sudo mkdir /amnt /amnt/sda1 /amnt/sdb1
(amnt shall mean auto-mount), or sudo mkdir /automnt /automnt/sda1 /automnt/sdb1
. Personally I prefer the /srv
directory.
A general entry in fstab
consists out of 6 parts:
<DEVICE> <MOUNT-DIR> <FS-TYPE> <FS-OPTIONS> <USE-DUMP> <DO-FS-CHECK>
As a general tip for newbies: <USE-DUMP>
should be always 0
. <DO-FS-CHECK>
should be always 1
when <MOUNT-DIR>
is /
or /boot
or /boot/efi
. <DO-FS-CHECK>
should be always 2
for all other entries when <FS-TYPE>
is ext2
, ext3
or ext4
. For all remaining entries <DO-FS-CHECK>
should be 0
.
I see your partition sdb1 is NTFS. You should know that this might be dangerously, because Ubuntu doesn't really support NTFS. It might even becomes more dangerously, when you've installed Windows on that partition. Dangerously means possible total loss of all data on that partition.
If you really want to use NTFS in Ubuntu, you should make sure the following things are done.
- deactivate Fast Startup-Mode in Windows
- never write Data onto NTFS-filesystems from Linux
- never do filesystem checks on NTFS from Linux
- you should mount NTFS as read-only filesystem in Linux
fstab
- with all entries (don't forget sudo mkdir /srv/sda1 /srv/sdb1
and using newest boot files)
# Comments start with a #-character
# LABEL=BOOT /boot vfat umask=0077 0 1
# Using UUID is generally advisable
UUID=F702-39CB /boot vfat umask=0077 0 1
UUID=e139ce78-9841-40fe-8823-96a304a09859 / ext4 errors=remount-ro 0 1
UUID=c47f79ed-59d1-4dd3-9214-39002cd17c49 /srv/sda1 ext4 defaults 0 2
UUID=2D3706383B1F1ECC /srv/sdb1 ntfs-3g ro 0 0
Try to apply these settings, when possible. Make a backup of your fstab
file.