Monday 8 August 2016

How to regenerate /etc/mtab file on Linux





How to regenerate /etc/mtab file on Linux



Question: I accidentally messed up (or removed) /etc/mtab file. How can I recreate the original /etc/mtab file which reflects the current mount information? 
In case /etc/mtab file is lost or corrupted by accident, and you want to recover the original /etc/mtab file, you can use /proc/mounts, which shows an up-to-date list of all mounts currently used by Linux system.

To reset /etc/mtab file to reflect the current mount information, run the following command.
$ sudo sh -c 'grep -v rootfs /proc/mounts > /etc/mtab'



scp-commands-to-transfer-filesfolders
how-to-mount-and-unmount-filesystem
how-to-install-filezilla-in-ubuntu Platform.
how-to-configure-telnet-server-in-Linux
how-to-use-linux-as-router
Configure-Linux-Server-to-Deny-ICMP Packet
Configure Linux Yum Server Step By Step
No Root Login Problem and Solution
Grub password and Kernel Panic Error Remove.
linux-command-line-tricks
Access-control-lists-acls-in-linux
User-quota-and-group
Linux File Systems
Root Login Problem Step
Low level Format and Umask

No comments: