Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • migrating /var "the directory" to /var "a filesystem"

    Posted on

    I need to migrate the contents of my /var directory to a filesystem because of a security requirement.  I have created a filesystem, and mounted it to /mnt.  In single user mode I used the following command to migrate the contents of /var to the new filesystem:

     

    huron : /var # find . -print | cpio -Bpdumv /mnt

     

    I then modified the fstab to mount the new filesystem to /var at boot time.  When I reboot the system the boot process hangs at "Starting system logging".  I even ran an fsck on the new filesystem and it still didn't work.  Does anyone have a better way to accomplish my task than what I have already tried?  I have not deleted the contents of /var the directory, so all i have to do is replace fstab with the original fstab, boot up, and I'm fine.

     

    Thanks,

     

    Andy

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat