You are not logged in.

#1 2025-07-09 11:16:44

evilguve
Member
Registered: 2025-07-08
Posts: 1

Cannot load into fstab because /mnt/mydrive not being umounted[SOLVED]

trying to delete the partition in my hard drive, which is mounted at /mnt/mydrive - i deleted the lines to automount in /etc/fstab ,inputs and outputs after that is:

kayra@archkayra ~ $ sudo umount /dev/sda1
umount: /mnt/mydrive: not mounted.
kayra@archkayra ~ :( $ sudo mount /dev/sda1
mount: /dev/sda1: can't find in /etc/fstab.

then done "systemctl daemon-reload", trying to unmount, the output is:

kayra@archkayra ~ $ sudo mount /dev/sda1
mount: /dev/sda1: can't find in /etc/fstab.
kayra@archkayra ~ :( $ sudo umount /dev/sda1
umount: /mnt/mydrive: not mounted.

even if i sudo umount /mnt/mydrive , it still outputs the same thing while in fstab:

This disk is currently in use - repartitioning is probably a bad idea.
It's recommended to umount all file systems, and swapoff all swap
partitions on this disk.

The device contains 'ext4' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.

sudo fuser outputs:
kayra@archkayra ~ :( $ sudo fuser -vm /mnt/mydrive
                     USER        PID ACCESS COMMAND
/mnt/mydrive:        root     kernel mount /mnt/mydrive
it is still mounted, but in kernel? lazy unmount outputs the same thing, no use. its always the same thing when i | grep :
kayra@archkayra ~ :( $ mount | grep sda
/dev/sda1 on /mnt/mydrive type ext4 (rw,relatime)

help greatly appreciated.

A reboot was the solution. Its my fault

Last edited by evilguve (2025-07-09 11:22:10)

Offline

Board footer

Powered by FluxBB