In my /etc/fstab
I have the line
UUID=c99...04c4 /media/myExtDrive ext4 defaults,user,nobootwait 0 0
for my external hard drive. But when I plug it in and try to mount it with the DeviceNotifier of my KDE Plasma 5, I get the message that the device cannot be mounted. This was no problem in my Kubuntu 14.04 with KDE 4. When I delete the above line in /etc/fstab
, the DeviceNotifier is able to mount the hard drive - however to /media/user/myExtDriveName
instead to /media/myExtDrive
as I wish. How do I need to configure the line in /etc/fstab
so that it will be mounted automatically if present, but still allows me to use the DeviceNotifier to mount to /media/myExtDrive
?
EDIT 1: I just tried to mount the external hdd with sudo mount --all
with the line in fstab
, but that did not allow me to mount either. Not quite sure why.
EDIT 2: In Kubuntu 14.04, the folder /media/myExtDrive
had to be created. Now, I also created /media/myExtDrive
. If I don't I get the error message, did get the message that it is missing. But somehow I am not quite sure anymore in which situation and have trouble reproducing this.
EDIT 3: When trying to mount with sudo mount -va
I get
Incorrect filesystem type, invalid options,
/dev/sdd1
superblock is damaged, encoding page missing or some other error.
However, I do not have any issues mounting to /media/user/myExtDriveName
if I remove the above line in /etc/fstab
and mount via DeviceNotifier.
Whether I have the folder /media/myExtDrive
created beforehand or not seems not to make any difference either way.
The command tail -f /var/log/messages
just returns that the file /var/log/messages
cannot be found and thus can't be opened.
/media/myExtDrive
exist? Edit your question and include the errors you're getting.sudo mount --all
, checkdmesg
for errors andmount
output, it might already be mounted... it's possible that disconnecting the device physically doesn't automatically remove the mtab entry... Have you tried a reboot?'tail -f /var/log/messages
while mounting the drive andmount -va
and add the output of both to your question.