Setting up new computer with 3 drives

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Setting up new computer with 3 drives

Post by smokeymtn_ron »

Just got a new computer and want to make sure I get it set up right.
Here is what it has:

256 GB NVMe M.2
Windows 10 (already installed by Dell)

500 GB SSD (from old PC)
Mint 20.3 (will fresh install Mint 21)

1TB HDD
Would like to set this up as a storage drive. Pictures, videos, downloads, etc.

Questions:

1.How do I set up the storage drive so that both Mint and Windows will mount it on start up and it will show up as an option to download and transfer things to. (set it to file system NTFS?)

2.This will be the first time I have used UEFI. Does this look like a good partition setup when I do a fresh install Mint 21?
EFI=550 MiB
/=40 GB
/home=150 GB
/swap=16 GB

3.I have saved '/home' to a external drive. How do I reinstall it after a fresh install of Mint 21?

Any help and suggestions will be greatly appreciated.
Last edited by LockBot on Fri Feb 10, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Setting up new computer with 3 drives

Post by Cosmo. »

I do not answer regarding dual boot, because I do not use Windows since years.

#2: 40 GB for / is rather small. You have 500 GB space, so give it more.
Why only 150 GB for /home, when the drive has 1 TB?
A swap partition is senseless and reduces flexibility, if later the partition scheme must get altered. Mint creates at installation automatically a swap file, which will be then inside of the / partition.
The actually needed space for swap (file) depends from 2 factors: How much RAM is installed and do you want to hibernate.

#3: When you install Mint choose "something else" as installation method. Select this partition and make sure, that the option to format is deselected (if there are already data), but choose as mount point /home.
User avatar
Jo-con-Ël
Level 11
Level 11
Posts: 3589
Joined: Sun Jun 20, 2021 12:41 pm
Location: donde habita el olvido

Re: Setting up new computer with 3 drives

Post by Jo-con-Ël »

smokeymtn_ron wrote: Wed Aug 10, 2022 7:59 pm 256 GB NVMe M.2
Windows 10 (already installed by Dell)

500 GB SSD (from old PC)
Mint 20.3 (will fresh install Mint 21)
(...)
2.This will be the first time I have used UEFI.
First of all you need to know about a bug when installing on secondary disk in the same way as when installing on USB disk. When Windows is installed on UEFI mode on main disk (nvme), installer will place grub-efi loader on Windows disk EFI partition by default. Never mind you create a dedicated EFI partition on Linux Mint disk, you wont be able to select it on installing.

If you want installer place loader on LM disk and keep EFI partition on Windows disk untouched, you will need to workaround this problem before trying to install (unpluging/disconnecting Windows disk or removing EFI partition flags on Windows disk) and re-connect Windows disk or re-flag its EFI partition after installing.

Also you can install w/o apply those workarounds let it install on nvme EFI partition or solve that problem after installing as indicated on pbear's post links. :wink:
Last edited by Jo-con-Ël on Thu Aug 11, 2022 6:23 am, edited 2 times in total.
Arrieritos semos y en el camino nos encontraremos.
User avatar
AndyMH
Level 21
Level 21
Posts: 13742
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Setting up new computer with 3 drives

Post by AndyMH »

I'll disagree with cosmo on the size of /. My system drive (512GB ssd):
Screenshot from 2022-08-11 10-46-22.png
for years used to be 30GiB on a 256GB SDD, never seen much more than 20GiB used (a lot installed), but I don't use flatpaks or snaps. I have a swap partition, but only because I've always had one and too lazy to change it. You don't need one, by default mint uses a 2GB swap file. I think there is still a use case for a swap partition if you hibernate (I don't), in which case it needs to be the same size as your RAM.

No EFI partition - I boot legacy not UEFI. Your EFI partition = size 100MB, format fat32 and set the flags esp and boot.

Note there is a bug in the installer for LM20 and think still present in LM21, it will put grub in the first EFI partition it finds, not what you tell it. Likely you would end up with grub in the EFI partition on your win drive. Easiest fix is to disconnect/remove the win drive before install. If difficult, say so, there are other fixes.

Your 1TB drive, I would suggest two partitions on it, one for data sharing with win, format ntfs, the other 60GB format ext4 and use it for timeshift snapshots. Do not use timeshift with the defaults and a small / partition (saves snapshots in /). For mint to mount your ntfs partition on boot you need to add a line to /etc/fstab of the format:

Code: Select all

UUID=4F8FF55A05DA9208	/home/andy/shareddata	ntfs	defaults,uid=1000,gid=1000,nofail	0	2
you get the UUID from the output of blkid. I've shown it mounting in home at shareddata (for ease of access), you can mount it wherever you like, just make sure you create the folder first.

How are you going to backup your data?
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
MiZoG
Level 8
Level 8
Posts: 2378
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: Setting up new computer with 3 drives

Post by MiZoG »

1. exFAT is the only filesystem all major OSes can read and write into it. I have experienced several problems with extensive use of NTFS partitions from within Linux. Yet I cannot 'testify' about NTFS under the newest native kernel support.
2. I tend to agree with Cosmo about the size of your root and home partitions. I bet he's right about swap too but you do need a large SWAP partition if you're going to use hibernation. Otherwise the default creation of a 2GiG swapfile will suffice.
3. You copy back from the external drive to your new home partition. That simple. It's what I do when I fresh install a new major release. I do use though a limited number of important to me programs. I know well how to restore/merge their configuration files and profiles. If you were on a much older Mint version, you'd like to try 'selective' step by step copying / restoring. Old configurations may not play well with newer versions of some applications. This of course concerns the 'hidden' folders in your home directory not plain files and archives.
User avatar
AndyMH
Level 21
Level 21
Posts: 13742
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Setting up new computer with 3 drives

Post by AndyMH »

LM20, not all utilities support exfat, e.g. parted, gparted. Not checked LM21 to see if this has changed.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Setting up new computer with 3 drives

Post by smokeymtn_ron »

Thanks everybody for the help. :D Just for information, here is the way my SSD is set up now. The 'video' will be moved to the storage drive and I only want to use 'primary' partitions. Are /usr, /tmp, /var part of / if they don't have their own partitions?
gparted.png
User avatar
AndyMH
Level 21
Level 21
Posts: 13742
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Setting up new computer with 3 drives

Post by AndyMH »

You really don't need separate partitions for /usr, /tmp, /var and /boot. All you are doing is storing up potential problems for the future, leave them in /. Just because the installer gives you options to have them, doesn't mean you have to use them.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Setting up new computer with 3 drives

Post by smokeymtn_ron »

AndyMH wrote: Thu Aug 11, 2022 6:52 pm You really don't need separate partitions for /usr, /tmp, /var and /boot. All you are doing is storing up potential problems for the future, leave them in /. Just because the installer gives you options to have them, doesn't mean you have to use them.
Thanks. Yea, I don't want to use them on the fresh install.
billyswong
Level 8
Level 8
Posts: 2218
Joined: Wed Aug 14, 2019 1:02 am

Re: Setting up new computer with 3 drives

Post by billyswong »

Even /home don't need a separate partition. Why not just follow the default configuration? I don't see any valid point of separating folders in Linux into separate partitions *within the same SSD*. SSD wear-leveling don't care the partitioning one put above. In physical layer they are still mixed together.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Setting up new computer with 3 drives

Post by Cosmo. »

billyswong wrote: Sat Aug 13, 2022 10:54 pm ...
This is principally questionable. But in this case the OP wants to use a separate 1 TB drive for his/her data, so creating a separate /home is is a valid point.
billyswong
Level 8
Level 8
Posts: 2218
Joined: Wed Aug 14, 2019 1:02 am

Re: Setting up new computer with 3 drives

Post by billyswong »

Cosmo. wrote: Sun Aug 14, 2022 4:28 am
billyswong wrote: Sat Aug 13, 2022 10:54 pm ...
This is principally questionable. But in this case the OP wants to use a separate 1 TB drive for his/her data, so creating a separate /home is is a valid point.
OP is not putting /home in the separate 1TB HDD. OP is setting "/", "/boot", "/home" etc into /dev/sda[1-9], which is obviously the same physical device.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Setting up new computer with 3 drives

Post by Cosmo. »

Not really difficult to find an read:
smokeymtn_ron wrote: Wed Aug 10, 2022 7:59 pm 1TB HDD
Would like to set this up as a storage drive. Pictures, videos, downloads, etc.
smokeymtn_ron
Level 3
Level 3
Posts: 192
Joined: Mon May 18, 2009 8:03 pm
Location: Southeast Asia

Re: Setting up new computer with 3 drives

Post by smokeymtn_ron »

Thanks to everyone for their help :D . New computer is up and running great. I've got one small thing (can't really call it a problem) that I can't figure out. During boot I get error messages before the the login screen. It still boots fast and normal, but is there any way to not show these messages? They only last a couple seconds, so no real problem. Attached is a picture I took of one of the 2 error screens. Had to take it with my phone so I apologize for the clarity.
https://share.icloud.com/photos/057I0nB ... 7qDaMShuVg
IMG_0006.png
IMG_0006.png (177.41 KiB) Viewed 400 times
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Setting up new computer with 3 drives

Post by deepakdeshp »

Error messages can safely ignored.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Setting up new computer with 3 drives

Post by deepakdeshp »

To hide the errors you have to change log level
https://www.google.com/url?sa=t&source= ... GR8Rhv9yrC
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Locked

Return to “Installation & Boot”