Ask Your Question
1

Fedora 20 Install: Preserving existing /home/

asked 2014-02-05 04:33:15 -0600

electriceel gravatar image

updated 2014-09-12 19:10:53 -0600

mether gravatar image

I'm interested in installing Fedora 20. I already have Linux with a separate partition for /home/

During the install Fedora offers me the chance to create a new user, and I can also preserve the /home/. How do these two activities correlate?

I want to keep my old user account, with all the priveleges (there's only one account).

Do I need to follow the Fedora instructions and create an admin account with the same name, which will then magically map to the existing user folder under /home/.

Or do I not need to create the account, because it already exists under /home/. Are there other files pertaining to user accounts and permissions that aren't stored under /home/?

I'm asking just because I'm nervous of blitzing my /home/ space.

edit retag flag offensive close merge delete

Comments

I don't have a screenshot of this handy but during the install, I think you got into advanced partitioning and tell the installer that not to format the partition. Of course, I'll mention the wisdom of a backup but you already know that...

Mordoc gravatar imageMordoc ( 2014-02-07 16:55:27 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-02-16 11:10:41 -0600

Before reading my advice, please note that I strongly advice you to make a backup before any installation or upgrading!

There are other files listing the users (mainly /etc/passwd and /etc/shadow). When installing from a different distribution, the installation will need to delete these files (because Fedora might have different default users than your previous distro).

Preserving /home will make sure it does not format the /home partition, and you can use your data after the reinstallation, but it will NOT recreate the user automatically, which is why this is a second option.

If this was your first ever user and the old distro also started counting from uid 1000 for accounts, creating a new user should "magically" create a new user with the correct homedir.

Otherwise (and this might be a good idea to do anyway), you will likely need to chown the /home directory after installing (as the uid might have changed a bit), after which it should work.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-02-05 04:33:15 -0600

Seen: 2,659 times

Last updated: Feb 16 '14