You are not logged in.

#1 2009-04-07 05:13:14

dr0p
Member
From: Seattle, WA, USA
Registered: 2008-06-11
Posts: 120

Reinstall While Preserving /home

Okay, I want to switch from x64 to i686 because there are some key packages that aren't supported for x64 that I just can't live without anymore. The problem is, I don't want to lose my /home. It's ~850gb and I don't want to lose any of my media, etc. that's on there, but I have no where to temporarily back it up to. So in the end, I was just wondering how I would go about reinstalling without loosing my partition in the process, and how to make the freshly reinstalled system/users have the appropriate permissions to my home folders. Thanks a lot.


Arch i686 User
xmonad :: xmobar :: urxvt :: vim

Offline

#2 2009-04-07 05:19:48

SkonesMickLoud
Arch Linux f@h Team Member
From: The D of C
Registered: 2008-09-20
Posts: 178

Re: Reinstall While Preserving /home

If your home is on a seperate partition, you don't need to format it at all.  If you choose to mount it during the install, make sure you select no when it asks you if you want to create a filesystem.

When you reinstall and run adduser or useradd (I forget which one is the "interactive one") it'll tell you that your username (as long as you use the same one) already has a /home and it'll ask you if you want to chown it.  Say yes and it'll do it for you.

If your home is on the same partition as root, I'd suggest making it's own partition.

Last edited by SkonesMickLoud (2009-04-07 05:21:11)

Offline

#3 2009-04-08 10:15:41

h4mx0r
Member
Registered: 2008-04-17
Posts: 11

Re: Reinstall While Preserving /home

~850gb /home wow thats getting on the large side. Have you thought of using any compression methods on it? Perhaps some access time based methods of compressing unused files?

Based on what sort of files you have saved you mght consider using a different file system to save space and increase performance. What file system are you currently using?

I was thinking about using a separate file system partition for family photos or perhaps a raid setup for extra failsafe security. Seems everyone has a digital camera now a days and keep syncing photos with relatives and etc. F-spot does a nice job at organizing pictures but there are also some other apps that categorize videos by using their metadata.

Oh also if you tried sending some huge files over ntfs or samba might want to check that they were fully sent before you start changing up things, I'm not sure how though. Do you host an ftp server or something? I'd be interested in subscribing if you pm me.

Offline

#4 2009-04-08 10:38:13

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Reinstall While Preserving /home

SkonesMickLoud wrote:

If your home is on the same partition as root, I'd suggest making it's own partition.

That's a good idea in the long run, but considering that OP says that s/he doesn't have a space now to back it up, it will be hard to achieve right now.

As for reinstalling - I think the following should work:
boot the install cd
mount the root partition
delete everything except home (on that partition)
unmount it
when the installer asks whether you want to format the root partition say NO (this is important, otherwise you'll lose the data!)
-> the installer should just install a fresh arch on that partition, and the stuff in home should be still there.

However I haven't tried the installer lately (I installed in november 2007 last), so you could try installing on another machine (or a virtual one in qemu or virtualbox) to see what does the installer do exactly. I'm pretty sure that the installer displays a big fat warning before formatting anything.

Offline

#5 2009-04-10 00:45:15

cb474
Member
Registered: 2009-04-04
Posts: 469

Re: Reinstall While Preserving /home

I want to do the same thing, reinstall, while keeping my /home partition intact. Is there any reason to prefer bender02's method over SkonesMickLoud, or vice versa? Is there a reason why two different methods have been offered? SkonesMickLoud's method seems more straight forward to me, since it can all be performed from within the installer.

Last edited by cb474 (2009-04-10 00:46:08)

Offline

#6 2009-04-10 02:03:48

dswann
Member
Registered: 2009-03-13
Posts: 29

Re: Reinstall While Preserving /home

cb474 wrote:

I want to do the same thing, reinstall, while keeping my /home partition intact. Is there any reason to prefer bender02's method over SkonesMickLoud, or vice versa? Is there a reason why two different methods have been offered? SkonesMickLoud's method seems more straight forward to me, since it can all be performed from within the installer.

bender02's method was deaing with the fact that the /home folder was not on its own partition. SkonesMickLoud's was.

Offline

#7 2009-04-10 02:11:46

SkonesMickLoud
Arch Linux f@h Team Member
From: The D of C
Registered: 2008-09-20
Posts: 178

Re: Reinstall While Preserving /home

bender02 wrote:
SkonesMickLoud wrote:

If your home is on the same partition as root, I'd suggest making it's own partition.

That's a good idea in the long run, but considering that OP says that s/he doesn't have a space now to back it up, it will be hard to achieve right now.

As for reinstalling - I think the following should work:
boot the install cd
mount the root partition
delete everything except home (on that partition)
unmount it
when the installer asks whether you want to format the root partition say NO (this is important, otherwise you'll lose the data!)
-> the installer should just install a fresh arch on that partition, and the stuff in home should be still there.

However I haven't tried the installer lately (I installed in november 2007 last), so you could try installing on another machine (or a virtual one in qemu or virtualbox) to see what does the installer do exactly. I'm pretty sure that the installer displays a big fat warning before formatting anything.

Might as well delete all of / except for /home, then resize /home and make a / partition.  Kill two birds with one stone.  Of course, this is only possible with a filesystem that supports shrinking.

Last edited by SkonesMickLoud (2009-04-10 02:13:06)

Offline

#8 2009-04-10 06:29:05

cb474
Member
Registered: 2009-04-04
Posts: 469

Re: Reinstall While Preserving /home

dswann wrote:

bender02's method was deaing with the fact that the /home folder was not on its own partition. SkonesMickLoud's was.

Ah, I see that now. Thanks.

Offline

#9 2012-11-27 22:46:12

dedanna1029
Member
From: Cheyenne, WY, US
Registered: 2010-10-01
Posts: 98

Re: Reinstall While Preserving /home

SkonesMickLoud wrote:

If your home is on a seperate partition, you don't need to format it at all.  If you choose to mount it during the install, make sure you select no when it asks you if you want to create a filesystem.

Where in the installer do we do this? I myself am finding nothing on just mounting a partition, and telling the installer not to format it.

I'm at a frustrated point. Need to do as the OP here.

Thanks.

Last edited by dedanna1029 (2012-11-27 22:47:22)

Offline

#10 2012-11-27 22:55:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,530
Website

Re: Reinstall While Preserving /home

dedanna, this post is two and a half years old.  The installation process is entirely different and this information is irrelevant.

With the current install methods you control everything - so just don't format your home partition.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#11 2012-11-27 22:56:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Reinstall While Preserving /home

This is why you shouldn't necrobump: https://wiki.archlinux.org/index.php/Fo … Bumping.27

The Arch install process has changed significantly since this thread was active (3.5 years ago).

Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB