Skip to content

I really want to switch to Arch but have a lot of files that I need

I really want to switch to Arch but have a lot of files on my disk that I need (like programming projects and documents for school). Is there any way I can just remove only the Linux files and keep my home folder on the disk and then install Arch?

0 points17 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 50% up
Kind
Text
ID
lo08cs

Author

2
posts
8
comments
1
media
View profile

19 comments

The fact that you are asking should motivate you to back up your data properly before proceeding. It would be very easily to accidently destroy all your data when installing an OS especially if you are not sure.

21 points

Backup your files before you do this or you might regret it.

6 points

Backup the files (like an external USB) and make sure that you can read them on another device.

1 points

move home folder to new partition

3 points

If I make 3 partitions, install Arch on sda1, Keep Mint (my current) on sda2, and put the home folder on sda3, and then give both GNU/Linux installs the same hostname and user, will I be able to access the home folder from both installs or will I still have to change the permissions every time?

3 points

You will be able to access the home directory from both installs. You might get some conflicts with config files, it will depend on your setup. But I have done this before with no problems

3 points

Yes this will work, but I'd be careful sharing a home folder due to conflicts like u/ijix alluded. What you can do however is move all files you want to keep to a separate partition and mount that partition on each install. I'd recommend keeping the home directory on the same partition as root in a multi-boot scenario, but it's not strictly required it'll just take more finagling.

Here's my current setup, you could do something similar;

nvme0n1     259:0    0 465.8G  0 disk 
├─nvme0n1p1 259:1    0     1M  0 part 
├─nvme0n1p2 259:2    0    30G  0 part /
├─nvme0n1p3 259:3    0    50G  0 part /home/tom
├─nvme0n1p4 259:4    0   100G  0 part /home/tom/music
└─nvme0n1p5 259:5    0 285.8G  0 part /home/tom/docs

Notice my 'docs' partition is just mounted in my home directory somewhere, I could put it in the same place (or anywhere else) on another root filesystem were I multi-booting like you're suggesting.

Here's my accompanying fstab;

UUID=9462f084-b1e3-4b3a-898a-805ffc9c8bee	/         	ext4      	rw,relatime	0 1

# /dev/nvme0n1p3
UUID=239a0695-a640-4ba5-8a72-7f4f8cfbc34b	/home/tom 	ext4      	rw,relatime	0 2

# /dev/nvme0n1p4
UUID=0083426e-1537-473d-a358-0dfce0a18fe2	/home/tom/music	ext4      	rw,relatime	0 2

# /dev/nvme0n1p5
UUID=5e132e14-daa2-425e-8281-9dd09e3400f1	/home/tom/docs	ext4      	rw,relatime	0 2
1 points

Unless you format the partition, you could simply delete everything that is not /home and then install Arch. Arch does not do anything with existing files. You could rename /home to /home_old, install Arch as you would without formatting the partition and then move over all the files.

2 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.