Ask Your Question

Drives management, Linux best practices

asked 2015-04-04 06:07:44 -0500

Mike B. gravatar image

updated 2015-04-11 23:59:58 -0500

mether gravatar image

I want to completely encapsulate all my personal data from the system files. In order to do that at the time of Fedora 21 installation, I defined the separate drive /data (standard partitioning, not LVM) which will contain all of my data. The main idea is to allow to completely reinstall Linux, including the disk formatting, without any fear concerning the loss of the personal data.

Everything is working, but now, when I reinstalled Fedora 21 with complete disk reformatting, excluding /data I paid attention, that in contrast to the initial Fedora installation, now /data displayed in Nautilus as an external drive (/dev/sda3), and not as a folder inside the Computer. And after each system restart I have to remount this drive.

My questions are:

  1. How can I define the external drive, which will work (will be accessible) after Linux reinstallation without the need to remount it each time I restart the OS. Is there any way to reach this result without some surgeon operations on system config files.

  2. Why in original Fedora installation the drive for my personal data displayed as /data inside of Nautilus's Computer view, and after reinstallation the same drive is now marked as external drive (/dev/sda3) and not as /data?

  3. What is the best practice to implement the data encapsulation in Linux, e.g. to separate the personal data from the system and to simplify the complete system reinstallation without any fear concerning the loss of the personal data?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-04 21:33:28 -0500

sideburns gravatar image

The reason /data isn't being mounted is that you didn't select the partition and give it an appropriate mount point when you installed Fedora 21. What you needed to do is specify that the partition is to be mounted at /data, but without reformatting. Normally, the practice is to keep all of your personal files in your home folder (e.g., /home/mike) and put /home on its own partition. Then, if you need to reinstall, you mount that partition at /home without reformatting and all of your data and your personal config files are kept intact. What you need to do now is create the mountpoint and add a line to /etc/fstab telling Linux to mount that partition at boot. Then, as root, run mount -a and if there aren't any error messages, the job's done.

edit flag offensive delete link more


Yes, yhe easiest way is to configure this during the installation (select a mount point for the data drive, /home presumably)

alfC gravatar imagealfC ( 2015-04-05 04:17:19 -0500 )edit

Question Tools

1 follower


Asked: 2015-04-04 06:07:44 -0500

Seen: 352 times

Last updated: Apr 04 '15