Remount partition to upper directory

Discussion in 'Server Operation' started by almere, Jan 4, 2015.

  1. almere

    almere Member HowtoForge Supporter


    I need to remount a partition to upper directory. To be exactly:
    /dev/md/3 /var/www ext4 usrjquota=aquota.user,,jqfmt=vfsv0 0 0
    must become:
    /dev/md/3 /var ext4 usrjquota=aquota.user,,jqfmt=vfsv0 0 0

    How can I do it without losing the data?

    Thank you.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess the main problem is that you want to do that with /var which is a system partition that gets accessed by the os permanently. Most likely you have to boot the system in a rescue mode, mount /var/www e.g. as /mnt/var, copy the data from /mnt/var/www to /mnt/var/www/www, then /var to /mnt/var/, change the mountpoint in /etc/fstab and reboot.
    almere likes this.

Share This Page