LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-04-2019, 03:57 AM   #1
whjeon
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Rep: Reputation: Disabled
I want some advice about partition schemes on 1 SSD, and 2 HDDs.


Hi, mentors!

I've used Linux with 1 SSD and 2 HDDs (1TB each).
And today I suddenly had a question about partition schemes.

For a long time, I partitioned my disks as below.
Code:
/dev/sda - 256G SSD.
- /dev/sda1: EFI System: 512M
- /dev/sda2: for root: rest
pv: /dev/sdb, /dev/sdc
vg: linux with /dev/sdb, /dev/sdc
lv: linuxswap: 8G
lv: linuxhome: rest
Now, are there any other good options for me?
or is it bad in some way?
 
Old 10-04-2019, 04:11 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by whjeon View Post
Hi, mentors!

I've used Linux with 1 SSD and 2 HDDs (1TB each).
And today I suddenly had a question about partition schemes.

For a long time, I partitioned my disks as below.
Code:
/dev/sda - 256G SSD.
- /dev/sda1: EFI System: 512M
- /dev/sda2: for root: rest
pv: /dev/sdb, /dev/sdc
vg: linux with /dev/sdb, /dev/sdc
lv: linuxswap: 8G
lv: linuxhome: rest
Now, are there any other good options for me?
or is it bad in some way?
Nobody here can advise if it's good or bad because for you because we don't know your use case.

Looks ok for a desktop system, as I'm assuming you're mounting the linuxhome lv on /home and want the space to store your user files.

Partitioning scheme questions are like What's your favourite distro? EVERYONE will have an opinion and none of them are right for every single use case!
 
2 members found this post helpful.
Old 10-04-2019, 04:23 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
Basically, as long as your files are kept separate from the O/S, so that the O/S can be upgraded without affecting them, it boils down to how you want to work with them.

Me, I give / about 5~10GB, depending on distro & usage of machine, because I don't add a lot of extra software, & the rest is for my stuff. Sometimes it is just /home, other times it is /home & /data, others have /music & /media or /videos on a separate partition.
 
1 members found this post helpful.
Old 10-04-2019, 04:24 AM   #4
whjeon
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
Partitioning scheme questions are like What's your favourite distro? EVERYONE will have an opinion and none of them are right for every single use case!
Thanks for your reply! I was worried about whether that scheme has technical flaws or not. If it's all right, then I'll stick to these.
Thanks again!
 
Old 10-04-2019, 04:59 AM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Since your data is spread over two disks sdb and sdc, the MTBF of the whole setup is shorter than a single disk. In other words, your data is a little bit more at risk than if it were on a single disk.

Therefore, don't forget backing it up.
 
1 members found this post helpful.
Old 10-04-2019, 05:05 AM   #6
whjeon
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
Since your data is spread over two disks sdb and sdc, the MTBF of the whole setup is shorter than a single disk. In other words, your data is a little bit more at risk than if it were on a single disk.

Therefore, don't forget backing it up.
OK! I also worried about that and thinking about writing some script and tarball the important directories.
Thanks!
 
Old 10-05-2019, 04:10 AM   #7
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by whjeon View Post
Hi, mentors!

I've used Linux with 1 SSD and 2 HDDs (1TB each).
And today I suddenly had a question about partition schemes.

For a long time, I partitioned my disks as below.
Code:
/dev/sda - 256G SSD.
- /dev/sda1: EFI System: 512M
- /dev/sda2: for root: rest
pv: /dev/sdb, /dev/sdc
vg: linux with /dev/sdb, /dev/sdc
lv: linuxswap: 8G
lv: linuxhome: rest
Now, are there any other good options for me?
or is it bad in some way?
Putting SSD as root and boot disk is a good idea. But, if you want fast reaction times I would also recommend to put /home/userx on the SSD. Then you can mount /dev/sdbx under /home/userx/folder where you expect alot of data, or just for convenience. And perhaps /home (/dev/sdbx)

Other than that there are considerations such as making a separate /boot (/dev/sdax) and /opt (/dev/sdbx) as well and even things like /tmp and /var could be considered. You could drop the SWAP if you have enough RAM as well. 8 or more GB ram I would definetely not use Swap, probably not at 4gb either, depending.

If you use SSD and sdb (hdd) like this, SDC would be ideal for aditional distroes etc and raw storage (/mnt?). Like someone said, it depends on your own needs and preferences. But here is how I would do it personally:

SSD
/dev/sda1 EFI
(/dev/sda2 /boot if I need, 2-5gb)
/dev/sda2 / (50-75gb)
/dev/sda3 /home (200gb)

/dev/sdb1 /mnt/distro2 50gb
/dev/sdb2 /mnt/distro3 50gb
/dev/sdb3 /mnt/distro3 50gb
/dev/sdb4 /tmp 10gb
/dev/sdb5 /opt 100gb
/dev/sdb6 /home/user1/videos(or downloads), 200gb
(/dev/sdb7 /home/user2, xgb)
(/dev/db8 /home/user1/whateverfolder xgb)

/dev/sdc1 1tb /mnt/folder

Instead of putting /home on SSD, you can put /home/user1 on SSD and make /dev/sdb6 700GB and mount it /home and drop the rest.

Last edited by zeebra; 10-05-2019 at 04:12 AM.
 
1 members found this post helpful.
Old 10-05-2019, 09:20 PM   #8
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
512M for the EFI System sounds a bit excessive to me. I'm thrifty with my disk space. 100 to 200MB should be enough.

I definitely think 8G for swap is too much unless you want to use hibernate to disk. I have been using exactly none for longer than I can remember and my machine performs very well.

I use suspend to RAM every day. I reboot my box about five or six times a year. I never needed hibernate to disk.

TenTenths said it best. There is not one right answer for that.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Access To Encrypted SSD Partition With Native Password in SSD>SATA Enclosure skidvicious Linux - Hardware 5 12-03-2015 04:40 PM
[SOLVED] I have a SSD a 500GB drive and a 2TB drive and want to move Ubuntu from 500GB to SSD greatormesby Linux - Newbie 12 07-06-2015 09:58 AM
SSD raid1 vs SSD raid10 advice ? wonker Linux - Hardware 8 05-23-2012 01:46 AM
Accessing other HDDs/Booting from other HDDs Namatacka Ubuntu 2 05-07-2006 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration