LINUX.ORG.RU

История изменений

Исправление kostik87, (текущая версия) :

Выполняешь man mount и читаешь:

   The move operation
       Move a mounted tree to another place (atomically). The call is:

          mount --move olddir newdir

       This will cause the contents which previously appeared under olddir to now be accessible under newdir. The physical location of the files is not changed. Note that olddir has to be a mountpoint.

       Note also that moving a mount residing under a shared mount is invalid and unsupported. Use findmnt -o TARGET,PROPAGATION to see the current propagation flags.

Аналогично для squashfs или другой RO ФС и /proc, /sys, /dev, /run (если есть).

Исходная версия kostik87, :

Выполняешь man mount и читаешь:

   The move operation
       Move a mounted tree to another place (atomically). The call is:

          mount --move olddir newdir

       This will cause the contents which previously appeared under olddir to now be accessible under newdir. The physical location of the files is not changed. Note that olddir has to be a mountpoint.

       Note also that moving a mount residing under a shared mount is invalid and unsupported. Use findmnt -o TARGET,PROPAGATION to see the current propagation flags.