Using previous home partition after fresh install

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
itzme
Level 1
Level 1
Posts: 1
Joined: Mon May 21, 2018 3:54 am

Using previous home partition after fresh install

Post by itzme » Mon May 21, 2018 4:04 am

Hello guys.

I was using Ubuntu, but I decided to move to Linux Mint

Code: Select all

$ lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 18.3 Sylvia
Release:	18.3
Codename:	sylvia
I have two disks: ssd and hdd. So, / was set in the ssd, and swap and /home belonged to the hdd. I was reading some posts on internet but it is not quite clear for me how to do it.

For now, I can say I've installed Linux Mint and created the user with the same username and password. And this is my current info:

Code: Select all

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p1 during installation
UUID=b5dbf329-b7b2-49b5-ab2a-77b153a219bf /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda1 during installation
UUID=596e05de-b97e-4f05-b75f-549684f71d48 none            swap    sw              0       0

Code: Select all

blkid 
/dev/nvme0n1p1: UUID="b5dbf329-b7b2-49b5-ab2a-77b153a219bf" TYPE="ext4" PARTUUID="6c5943f0-dbf3-4ab7-85ad-9e1d78cd57e5"
/dev/sda1: UUID="596e05de-b97e-4f05-b75f-549684f71d48" TYPE="swap" PARTUUID="00705409-d02e-48d9-b5b4-890c06d6cf5e"
/dev/sda2: UUID="2f1237b2-5765-4c73-9785-b3e6ca7cff9e" TYPE="ext4" PARTUUID="6bc34a79-d479-40c9-969d-a9913c761ba7"
/dev/nvme0n1: PTUUID="dc61c9b6-c5c8-4446-9a4b-28ef3dd32f5a" PTTYPE="gpt"

Code: Select all

fdisk -l

Disk /dev/nvme0n1: 238,5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: DC61C9B6-C5C8-4446-9A4B-28EF3DD32F5A

Device         Start       End   Sectors   Size Type
/dev/nvme0n1p1  2048 500117503 500115456 238,5G Linux filesystem


Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: FB56D549-9CA4-43B4-A797-3AC143ADA212

Device        Start        End    Sectors   Size Type
/dev/sda1      2048   62500863   62498816  29,8G Linux swap
/dev/sda2  62500864 1953523711 1891022848 901,7G Linux filesystem
How can I proceed for adding correctly my previous /home (/dev/sda2) to my current setup?

HaveaMint
Level 1
Level 1
Posts: 34
Joined: Fri Feb 02, 2018 9:56 pm

Re: Using previous home partition after fresh install

Post by HaveaMint » Mon May 21, 2018 5:19 am

Whenever I have re-installed the same Distro / DE During install setup I tell it to format / and /boot (/boot if you run separate partitions for each / & /boot) keep in mind you still have to tell setup what each partition is meaning /home is /home but don't format home if you wish to keep it. So if you told setup what each partition is and whether to format or not it should see it when done with setup.

Mattyboy
Level 6
Level 6
Posts: 1017
Joined: Thu Mar 26, 2015 2:17 pm

Re: Using previous home partition after fresh install

Post by Mattyboy » Mon May 21, 2018 5:59 am

As HaveaMint said just point the installer to your /Home partition and elect not to format it.

I'm not sure how installing a different distro ( it is Ubuntu so probably no major problems ) will effect how the system works with your old /Home .config files. So be aware that could be problematic.

User avatar
sdibaja
Level 5
Level 5
Posts: 515
Joined: Sun May 08, 2011 12:57 pm
Location: Baja California, Mexico

Re: Using previous home partition after fresh install

Post by sdibaja » Mon May 21, 2018 8:27 am

edit your fstab file to include partition you want to use as /home
this is just an example (the system I am using at the moment), the UUID must be exactly the same ... no typos!

Code: Select all

# / was on /dev/sdb5 during installation
#/dev/sdb8: LABEL="820.d9.root" UUID="da22c951-3ce0-48e4-bc89-0fec1461b690" TYPE="ext4" PARTUUID="29364237-aada-4025-a972-94cf62210213"
UUID=da22c951-3ce0-48e4-bc89-0fec1461b690 /               ext4    errors=remount-ro 0       1

# /home was on /dev/sdb7 during installation
#/dev/sdb7: LABEL="820.d9.home" UUID="677d189b-e7f1-46c2-ab28-abb5cf2ea598" TYPE="ext4" PARTUUID="b9c54772-2e57-4148-9fb1-e30b2fd9dbdc"
UUID=677d189b-e7f1-46c2-ab28-abb5cf2ea598 /home           ext4    defaults        0       2

# swap was on /dev/sdb4 during installation
#/dev/sdb9: UUID="8e91b6c4-ea26-4774-aaca-1ec53c59ad71" TYPE="swap" PARTUUID="422befac-436f-402c-a2b7-96775b3bab09"
UUID=8e91b6c4-ea26-4774-aaca-1ec53c59ad71 none            swap    sw              0       0

Post Reply

Return to “Installation & Boot”