TMP mount

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Naja, wenn du remount benutzt muss das Filesystem bereits schonmal gemountet worden sein.
    Wo willst du /tmp überhaupt hinmounten?
    Suchst du vielleicht sowas wie --bind?

    Quellcode

    1. mount --bind olddir newdir


    Auszug aus dem mount manual
    remount
    Attempt to remount an already-mounted file system. This is com‐
    monly used to change the mount flags for a file system, espe‐
    cially to make a readonly file system writeable. It does not
    change device or mount point.

    The remount functionality follows the standard way how the mount
    command works with options from fstab. It means the mount com‐
    mand doesn’t read fstab (or mtab) only when a device and dir are
    fully specified.

    mount -o remount,rw /dev/foo /dir

    After this call all old mount options are replaced and arbitrary
    stuff from fstab is ignored, except the loop= option which is
    internally generated and maintained by the mount command.

    mount -o remount,rw /dir

    After this call mount reads fstab (or mtab) and merges these
    options with options from command line ( -o ).