Hi. I need to remount a partition to upper directory. To be exactly: /dev/md/3 /var/www ext4 usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 0 must become: /dev/md/3 /var ext4 usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 0 How can I do it without losing the data? Thank you.
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.