Deleting a line from a file
Bernd Petrovitsch
bernd at petrovitsch.priv.at
Thu May 15 03:53:43 EDT 2014
On Mit, 2014-05-14 at 21:27 +0530, Saket Sinha wrote:
[...]
> I wanted to isolate the problem hence did not give the full context.
> Actually I have written a file-system utility which mounts my
> filesystem on a specific path and update it in /etc/fstab. When I
> umount it, I delete the path from the /etc/fstab.
I don't know if you want to do that - /etc/mtab is (historically?) used
to record actually mounted filesystems.
(At least) in the Linux world, there is /proc/mounts where the kernel
tells you exactly that.
Bernd
--
Bernd Petrovitsch Email : bernd at petrovitsch.priv.at
LUGA : http://www.luga.at
More information about the Kernelnewbies
mailing list