Partitioning existing SSD install

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
larryw
Level 2
Level 2
Posts: 57
Joined: Mon Jan 02, 2017 7:31 pm

Partitioning existing SSD install

Post by larryw »

I have an ASUS notebook with Mint 19.1 Cinnamon on 256gb SSD and 8gb RAM. When I installed I didn't create any special partitions so I have sda1 EFI 537mb FAT32 and a 256gb sda2 Ext4 File System. No swap or Home partitions.

I'm newbie so don't know how that happened and my computer has been fine but I think I'd like a regular Home partition and maybe a SWAP too (?).

My question is can I resize and create a Home partition from within Mint without problems? It appears I'd need to create it as an sda3 Ext4 format. Correct?

BTW, when I check System Monitor it says I have 2gb SWAP so I assume Mint creates a swap on sda2. Correct? Anything to be gained by creating a SWAP partition with my configuration?

I'm a light Linux user. No gaming or resource intensive programs. I assume it'd still be beneficial for a Home partition even under this type use.

Below is from inxi in Terminal

larry@larry-UX330UAK:~$ inxi -Fxxxrz
System:
Host: larry-UX330UAK Kernel: 4.15.0-96-generic x86_64 bits: 64
compiler: gcc v: 7.5.0 Desktop: Cinnamon 4.0.10 wm: muffin 4.0.7
dm: LightDM 1.26.0 Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic
Machine:
Type: Laptop System: ASUSTeK product: UX330UAK v: 1.0 serial: <filter>
Mobo: ASUSTeK model: UX330UAK v: 1.0 serial: <filter>
UEFI: American Megatrends v: UX330UAK.302 date: 10/06/2016
Battery:
ID-1: BAT0 charge: 46.3 Wh condition: 46.6/57.1 Wh (82%) volts: 11.6/11.6
model: ASUSTeK ASUS Battery type: Li-ion serial: <filter> status: Charging
cycles: 27
CPU:
Topology: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP
arch: Kaby Lake rev: 9 L2 cache: 3072 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 21696
Speed: 500 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 500 2: 500
3: 500 4: 501
Graphics:
Device-1: Intel HD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:5916
Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa
tty: N/A
OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2)
v: 4.5 Mesa 19.2.8 compat-v: 3.0 direct render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:9d71
Sound Server: ALSA v: k4.15.0-96-generic
Network:
Device-1: Intel Wireless 8260 driver: iwlwifi v: kernel port: f040
bus ID: 02:00.0 chip ID: 8086:24f3
IF: wlp2s0 state: up mac: <filter>
Drives:
Local Storage: total: 238.47 GiB used: 37.59 GiB (15.8%)
ID-1: /dev/sda vendor: Micron model: 1100 MTFDDAV256TBN size: 238.47 GiB
speed: 6.0 Gb/s serial: <filter> rev: A020 scheme: GPT
Partition:
ID-1: / size: 233.24 GiB used: 34.37 GiB (14.7%) fs: ext4 dev: /dev/sda2
Sensors:
System Temperatures: cpu: 39.0 C mobo: N/A
Fan Speeds (RPM): N/A
Repos:
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list
1: deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main
Active apt repos in: /etc/apt/sources.list.d/fingerprint-fingerprint-gui-bionic.list
1: deb http://ppa.launchpad.net/fingerprint/fi ... gui/ubuntu bionic main
2: deb-src http://ppa.launchpad.net/fingerprint/fi ... gui/ubuntu bionic main
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http://packages.linuxmint.com tessa main upstream import backport
2: deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
3: deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
4: deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
5: deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
6: deb http://archive.canonical.com/ubuntu/ bionic partner
Active apt repos in: /etc/apt/sources.list.d/scootersoftware.list
1: deb http://www.scootersoftware.com/ bcompare4 non-free
Active apt repos in: /etc/apt/sources.list.d/teejee2008-ppa-bionic.list
1: deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic main
2: deb-src http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic main
Active apt repos in: /etc/apt/sources.list.d/unit193-encryption-bionic.list
1: deb http://ppa.launchpad.net/unit193/encryption/ubuntu bionic main
2: deb-src http://ppa.launchpad.net/unit193/encryption/ubuntu bionic main
Active apt repos in: /etc/apt/sources.list.d/vivaldi.list
1: deb http://repo.vivaldi.com/stable/deb/ stable main
Info:
Processes: 226 Uptime: 38m Memory: 7.67 GiB used: 1.54 GiB (20.1%)
Init: systemd v: 237 runlevel: 5 Compilers: gcc: 7.5.0 alt: 7 Shell: bash
v: 4.4.20 running in: gnome-terminal inxi: 3.0.27
larry@larry-UX330UAK:~$
mr_raider
Level 7
Level 7
Posts: 1876
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: Partitioning existing SSD install

Post by mr_raider »

1. If you did the default install of mint 19.x, you have a swap file within your / partition. By default Mint no longer creates a swap partition for single drive simple ext4 setups.

2. While there are many benefits to separate /home partition, for your usage case, that is a laptop with a single relatively small drive, those benefits are highly limited and questionable. The biggest pitfall of a separate /home partition is misjudging the relative size of each and then having to back track and re-adjust the size.

Furthermore the theoretical benefit of a separate /home, i.e. if I bork my system I just re-install / and keep /home, is not really practical in real life. There are a host of programs that install components to /home, from steam games to flatpaks that will require a reinstall.

In short, your install is fine. Don't tinker with it.
Last edited by mr_raider on Fri Jun 26, 2020 4:16 pm, edited 1 time in total.
Image
User avatar
LanceM
Level 10
Level 10
Posts: 3109
Joined: Sun Jul 08, 2018 11:50 pm

Re: Partitioning existing SSD install

Post by LanceM »

BTW, when I check System Monitor it says I have 2gb SWAP so I assume Mint creates a swap on sda2. Correct? Anything to be gained by creating a SWAP partition with my configuration?
It's a swap file instead of a partition. Works the same way. Leave it alone.
For the life of me, I can't see why you would want Home on a separate partition. The default works just fine. Come to think of it, must be that the developers know what they're doing - Imagine that :D
Timeshift can be set as the pic for problem recovery including personal settings. There are certain advantages to making the snapshots to an external drive that's formatted to Ext4 instead of the default / partition. Preferably a mechanical or solid state USB 3.0 external hard drive.
How much Memory do you have?
Ignores-Data-In-Home.jpg
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
larryw
Level 2
Level 2
Posts: 57
Joined: Mon Jan 02, 2017 7:31 pm

Re: Partitioning existing SSD install

Post by larryw »

@LanceM. I have 8gb RAM.

The only reason I was considering creating a \home was that I was going to install a dual-boot on a Dell XPS 13 that is a little more current but it seems that is problematic. I can't enable legacy and when trying to turn to ACHI it seems I'd need to reinstall Windows. Not an option. I have the ASUS Zenbook with only Mint and so don't really need another Mint install. In researching the Windows issue I noticed almost everyone created a home partition as well as a swap on install so I wondered if I could gain something doing after the fact.

Since both of you suggest it's not necessary I will just move forward.

I recently dumped Windows and went with a Macbook pro. I considered going Mint for primary computer but I have too many programs that have no equivalent in Linux.
User avatar
LanceM
Level 10
Level 10
Posts: 3109
Joined: Sun Jul 08, 2018 11:50 pm

Re: Partitioning existing SSD install

Post by LanceM »

I have 8gb RAM.
Highly unlikely you will ever use swap with 8GB of memory. You can launch System Monitor and check the resources tab to see how much is being used.
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
larryw
Level 2
Level 2
Posts: 57
Joined: Mon Jan 02, 2017 7:31 pm

Re: Partitioning existing SSD install

Post by larryw »

I noticed it had 2gb swap showing but only 237mb used. So not much.
User avatar
AndyMH
Level 13
Level 13
Posts: 4534
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Partitioning existing SSD install

Post by AndyMH »

I've always had a separate /home partition, but tend to agree with the previous posts - if it ain't broke don't fix it. You can change an existing install to have a /home partition, but not straightforward for a newbie.

The advantages of a separate /home partition are:
  • Easier to do a fresh install, e.g. moving from LM19 to LM20* - you can leave /home alone, your data and config files unchanged.
  • bork your system and an image restore will also leave /home alone (but most of the time, this is what timeshift is for).
It's all to do with separating your data from the system.

If you are contemplating a new install to a different PC, then I would say, yes have a separate /home partition, otherwise no.

* the accepted wisdom has always been to do a clean install on a major version change, but note that clem is talking about an upgrade path LM19.3 to LM20.0 in his latest blog.
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
mr_raider
Level 7
Level 7
Posts: 1876
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: Partitioning existing SSD install

Post by mr_raider »

AndyMH wrote:
Sat Jun 27, 2020 9:41 am
The advantages of a separate /home partition are:
  • Easier to do a fresh install, e.g. moving from LM19 to LM20* - you can leave /home alone, your data and config files unchanged.
  • bork your system and an image restore will also leave /home alone (but most of the time, this is what timeshift is for).
It's all to do with separating your data from the system.
Not to belabor that point, but I do not like that strategy. Leaving your config files unchanged can cause issues with desktop configuration particularly if there has been a major step between the editions. Notably Mate and Cinnamon are at new revisions.

About the only advantage of having a separate /home is not loosing your personal user data files between installs.
Image
User avatar
AndyMH
Level 13
Level 13
Posts: 4534
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Partitioning existing SSD install

Post by AndyMH »

Leaving your config files unchanged can cause issues with desktop configuration particularly if there has been a major step between the editions
The only problem I've ever had was with evolution, deleted the config files and reinstalled and all was well. No problems with anything else (which is not to say there aren't other applications that will give a problem, just that I don't use them).
Homebrew i5-8400+GTX1080 Cinnamon 19.0, 3 x Thinkpad T430 Cinnamon 19.0, i7-3632 , i5-3320, i5-3210, Thinkpad T60 19.0 Mate
User avatar
LanceM
Level 10
Level 10
Posts: 3109
Joined: Sun Jul 08, 2018 11:50 pm

Re: Partitioning existing SSD install

Post by LanceM »

A fresh install keeping you old Home results in you having to reinstall all your apps. True, they are configured, which is something. I prefer to use the paid version of Aptik for $20 and then your settings are done as well as your apps. Very easy. Root & Home can remain on one partition. I have very little data in Home, however if I did, I'd exclude it in the Aptik backup and then add it in after install from my backup copy.
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
Post Reply

Return to “Installation & Boot”