Is it possible to run ‘umount /’ and then copy system files to another drive?

0
13
Asked By GigaWatt123 On

I'm the root user, and I'm wondering if I can use the command 'umount /' followed by 'cp / /backup1' to successfully back up my system. I'm assuming that '/backup1' is on an ext4 filesystem and has enough space. Will this work, or are there issues I should be aware of?

3 Answers

Answered By CloudySky72 On

You really can't unmount '/' without running into issues. If you're looking to back up your system safely, booting from a live USB is a solid approach. That way, you can ensure that nothing is modifying the filesystem while you create a copy.

Answered By ByteBandit87 On

Nah, you won't be able to unmount '/' since there will be active files in use. It's generally not necessary to unmount your main filesystem to perform a backup. You might want to consider using tools like rsync, which let you do backups without that hassle. There are also options like file system snapshots or dedicated backup tools like BorgBackup and Restic that could be really helpful.

Answered By BackupNinja42 On

If you're not using LVM, there's a better way to manage backups these days. Consider looking into different tools and strategies—backing up properly can save you a lot of headaches in the future!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.