Re: [opensuse] mounted partitions don't show up in df




Randall R Schulz wrote:
[ Why the Reply-To header? ]

sorry ;-)
I don't know the answer to that, but the man page for "mount" mentions
that /etc/mtab can either be a plain file that records the result of
issuing the mount command or it can be a symbolic link to /proc/mounts.


by creating a symbolic link to /proc/mounts all file systems are
displayed by df and other applications:

linux:/etc # mv mtab mtab.bkp
linux:/etc # ln -s /proc/mounts /etc/mtab

linux:/etc # df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 21G 1.5G 19G 8% /
udev 990M 132K 990M 1% /dev
/dev/sda7 21G 1.5G 19G 8% /
/dev/sda3 87M 76M 11M 88% /boot
/dev/sdb2 199G 54G 146G 27% /home
/dev/sda6 41G 1.9G 39G 5% /opt
/dev/sda8 1.9G 33M 1.8G 2% /tmp
/dev/sda5 70G 9.7G 61G 14% /usr
/dev/sda1 55G 17G 38G 31% /windows/C
/dev/sdb1 99G 48G 46G 51% /windows/D

However a reboot overwrites the symlink and the info is lost again.
Perhaps for some reason (the ordering of your /etc/init.d run-level
scripts, perhaps?) your mounts all happen while the root file system is
read-only and hence not recorded in /etc/mtab.
I am not sure this is the problem. It has been happening for some time
and (at least to my knowledge) I haven't changed any of these scripts.
However, is there a possibility to fix this ordering, in case it was
modified or altered?

Best regards



--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [SLE] Missing 3D (was Compiz issues.)
    ... postinstall scripts and it has nothing that will perform linking to nv ... Is the X server part in the same RPM as the kernel modules? ... and 3 scripts POSTIN, POSTUN, PREUN. ... The symbolic link '%s' does not exist. ...
    (SuSE)
  • Re: bash script stop/continue depending on caddy state.
    ... mount command or of /proc/mounts and look for CD file systems (I noted ... read-only flag set). ... If it were your own CDs, the thing to do would be to give them each ...
    (Fedora)
  • Re: apache + .htpasswd - bypass pwd check
    ... Please note that it is safe only if all scripts (PHP, perl, etc) are ... If the suexec wrapped isn't active, or if PHP doesn't run in CGI mode, ... files created by scripts will be owned by the server uid. ... will create a symbolic link to some other customer's files as nobody. ...
    (Vuln-Dev)
  • Re: Udev / DVD naming
    ... How can I make sure that they are (without a kludge like making / ... changing a symbolic link in the startup scripts)? ...
    (Fedora)
  • Re: Query in adding application in Linux
    ... No, shell scripts don't get compiled, they get interpreted ... files in my file system. ... with the symbolic link typically ...
    (comp.os.linux.development.apps)