LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-30-2021, 09:18 AM   #1
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Rep: Reputation: Disabled
best partitioning scheme on ssd (1tb) - install manjaro kde


Hii,

I know i have asked this question before, but now i have bought a brand new 1TB ssd and i want to install afresh manjaro kde.

My laptop configuration:
I am gonna have dual boot on this laptop - manjaro kde and win7
I have 2 new hdds, 1 is spinning hdd 1TB and one is ssd 1Tb.
I would want swap to be as a file instead of as partition.

What would be best configuration for that ?
I think, both os on a same ssd ? since ssd will make them faster. But /home set it to be on spinning hdd. ?


How is the configuration on manjaro that is best to be on limited ssd space and write cycle?
How is the configuration on win7 ?

Any good idea ? care to share ?

1 thing for sure: i won't let it auto decide on installation. :-)

Thank
 
Old 05-30-2021, 09:35 AM   #2
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Manjaro KDE:
I do have suspend to ram feature, but when i do a
Code:
$swapon -l
there is no output at all. Any idea why ?
 
Old 05-30-2021, 09:52 AM   #3
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 415
Blog Entries: 2

Rep: Reputation: Disabled
I think Manjaro can be installed with no swap. % grep sw /etc/fstab to see if you have a swap device or partition. You can add one easily. The release I run, it is just "swapon" to list the swap. Try also "free" to list both memory and swap.
 
Old 05-30-2021, 10:44 AM   #4
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by elgrandeperro View Post
I think Manjaro can be installed with no swap. % grep sw /etc/fstab to see if you have a swap device or partition. You can add one easily. The release I run, it is just "swapon" to list the swap. Try also "free" to list both memory and swap.
Hii,

Without swap ? then how come it can suspend to ram ?

Free command did shows no swap... how it suspend to ram then ?

Code:
$ free
               total        used        free      shared  buff/cache   available
Mem:            7825        5841         336         514        1647        1136
Swap:              0           0           0
can you retype this command ? i don't get it.
Code:
 % grep sw /etc/fstab
Thx
 
Old 05-30-2021, 11:01 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,775

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
Suspend to RAM and suspend to disk (hibernate) are different functions. Hibernate does use swap space because the computer is completely powered off.

https://wiki.archlinux.org/title/Pow..._and_hibernate
 
Old 05-30-2021, 11:06 AM   #6
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Suspend to RAM and suspend to disk (hibernate) are different functions. Hibernate does use swap space because the computer is completely powered off.

https://wiki.archlinux.org/title/Pow..._and_hibernate
Errh! i thought swap is used for both suspend to ram and suspend to hdd..
What about suspend to ram ? where the data in the ram store in if not swap ? can't be just kept in ram the whole time.. can it ?

Hmm.. according to the url you provided.. it did said suspend to ram is to let the machine state be in ram.. not in swap. (i see, i have wrong concept of how it works)

Well, i eventually want to have suspend to swap working as well, but not now.. so not learning now. .until i get other more important thing done.

Last edited by andrewysk; 05-30-2021 at 11:09 AM.
 
Old 05-30-2021, 11:11 AM   #7
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Can someone share with me the best way to configure the 2 os on ssd and spinning hdd ? as i requested above ? pls. i want to get it done.
 
Old 05-30-2021, 11:31 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,775

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
If you ask 10 people what is the best way you will get 100 opinions and it all depends on how you are planning to use each system. I like keeping things simple. Put /(root) on the SSD and /home on the mechanical drive is fine. With newer SSD technology a 1TB SSD should last 5 years or more with typical home use so I would not worry about it to much.

A /(root) partition of 50GB-100GB is more then sufficient.

Although where swap located really does not matter anymore I would still use a partition and place it on the mechanical drive.
If you have lots of files you want to share between the two systems use a separate data partition just to keep things organized.

Last edited by michaelk; 05-30-2021 at 11:38 AM.
 
Old 05-30-2021, 01:34 PM   #9
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
If you ask 10 people what is the best way you will get 100 opinions and it all depends on how you are planning to use each system. I like keeping things simple. Put /(root) on the SSD and /home on the mechanical drive is fine. With newer SSD technology a 1TB SSD should last 5 years or more with typical home use so I would not worry about it to much.

A /(root) partition of 50GB-100GB is more then sufficient.

Although where swap located really does not matter anymore I would still use a partition and place it on the mechanical drive.
If you have lots of files you want to share between the two systems use a separate data partition just to keep things organized.
I have "pasted" my requirement of configuration on the begining of the post, i am hoping good people will give me opinion with respect to my requested requirement.

What you said is 100% agreeable , but please bear with my argument.

Quote:
statement1:
a /root partition of 50-100GB in ssd
Q1. what will causes /root to be bigger ? just the kernel files ? **i want to know so i can decide on how much space required, so that it won't used up space and causing problem, or wasting space for no use.

Quote:
statement2:
Yes to swap placed on a spinning hdd.
Q2.
But i wish swap be a file somewhere.. why you want it to be in a dedicated swap partition ? isn't it hard to change the partition size in case i set the wrong partition size at the installation (due to ignorant) ?
If it is a swap file (instaed of swap partition), when need to resize the swap (so no lacking and no waste), i can do it easily. But i need to know where to place the swap file so it will be save from everything that might harm it.

Quote:
statement 3:
create a common partition to share file between the 2 os. I think place it in spinning drive would be good.
Q3.
What fs type to use for this common sharing partition that would be accessible for win7 and linux os ?

Q4.
Is there more other partition ? or mounting point to know ? I wish to get the whole picture , document it well before proceed. (i have being following blindly with other people's instruction in the past, not knowing what is the best... and everything installed was just a mess at the end)
Thanks.

Q5.
/home in spinning drive ? or ssd ?

Q6.
oh ya, it is best to install win os first on the ssd before install linux right ? so that grub menu will make a grub boot menu so that both run. But now i also wonder how should i install win7 on ssd ?

Q7.
Is there something i need to manually set so that "channel" some system folders such "desktop" "download folder" "audio, photo...folders" to spinning hdd instead of ssd (so that ssd will be used up by downloaded stuff) ?

Last edited by andrewysk; 05-30-2021 at 01:47 PM.
 
Old 05-30-2021, 02:50 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,775

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
7. If home is on the mechanical drive then by default if you download something from the internet using a web browser it typically defaults to your /home/username/Downloads directory. You can always change the default to something else.

6. Yes, it is best to install Windows first. SDD or mechanical, in the end it does not matter your choice.

5. I would go with mechanical drive but again that is just my opinion.

4. There are many many many ways to partition a drive. I prefer to keep things simple. /,/home and swap and maybe a separate /boot

3. NTFS

2. Size of swap is always a debatable topic and not as simple as it seems. It typically depends on the amount of RAM and if you want to hibernate. Best to have it just in case then need it when you do not. With 1TB hard drive a few GB is only ~1 percent of the total.

https://itsfoss.com/swap-size/

1. Applications are typically installed to /bin /sbin /usr/bin /usr/sbin and these are on your / partition. Most people would save large files like videos and music to their home or data directories.

To make things way more complicated you could use LVM. This allows you to resize partitions and filesystems almost on the fly and therefore it does not matter if you make things to big or small at first.
 
1 members found this post helpful.
Old 05-30-2021, 04:45 PM   #11
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
I tried to partition the new ssd 1tb like such:
[reserve for windows 7 installation 50%][/boot ext2 1GB][/ ext4 100GB][/home ext4 remaining space]

*as for /home above, i will (hopefully) configure /Downloads, /Documents, /Pictures, Videos and /Music and any of folder that is only for personal data storing to be put stuff in into spinning hdd (use --bind or symlink method). Hence this /home in ssd is only gonna be for anything but the above mentioned data storage (this organizing will also make it easy for me to backup my personal data . swapfile will be store in /home on ssd.

I got got stuck partition when (considering you said /usr/bin and /usr/sbin typically reside in / directory which recommended only 100G max )
I know i have habit of downloading a lot of softwares to try out..
hence considering /usr/bin and /usr/sbin will significantly increase in size as i try out a lot of softwares.. hence do you think is it suitable for the /usr/bin and /usr/sbin to be residing inside / directory ?
should it not better if i separate out some folders that i foresee will causes / partition to be out of space in future ?

Also, i tend to "build" program from source code downloaded from git or anywhere to try out.. these bin will then be in my /home/some_folder .. this i will also need to sort out.. (i already encountered this problem, a mess, don't even know where are my program bin located.. it is everywhere - something need to be address ) How you guys tackle this source code built program binary location ?

Please comment of any foreseeable issue with my arrangement.. so that i will not regret after everything installed.

Thx

Last edited by andrewysk; 05-30-2021 at 04:58 PM.
 
Old 05-30-2021, 04:45 PM   #12
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
To answer Q1,
Every software package you install, and the cache for updates takes space on the root partition. 25G is probably too small, and 35G can be marginal in size for some. With a 1TB drive it is better to allow extra space rather than have to adjust sizes later when the partition fills up. I concur with the suggested 50 to 100G size. Remember, 100GB is only 10% of 1 TB. You never want the main system partition to fill up, and most of your downloads that do not involve installing software will be in /home, so how large you make it is a matter of personal preference once you are larger than the absolute minimum.

On my system 60G for / would be extremely tight right now.

I do not recommend breaking out a lot of different partitions like /usr/bin since they are required during the initial boot. I think your 100G for / is fine, and breaking out other subdirectories involves a lot of guess work in estimation of the needed sizes and results in wasted space. Using 1G for /boot is fine, but make certain that you use EFI for the windows install as well as for the linux install.

Too much micromanaging can cause more problems than it solves.

Simply install windows, then from within windows shrink its filesystem to the size you want and leave the rest for the install of linux. Any partitioning for linux should be done after the windows install is complete.

Last edited by computersavvy; 05-30-2021 at 04:57 PM.
 
1 members found this post helpful.
Old 05-30-2021, 05:02 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,775

Rep: Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933Reputation: 5933
Quote:
should it not better if i separate out some folders that i foresee will causes / partition to be out of space in future ?
No.

I always build source code in my home directory and when you run make install they are moved to wherever the executable, configuration files and man pages were configured to be.
 
1 members found this post helpful.
Old 05-31-2021, 01:43 PM   #14
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
No.

I always build source code in my home directory and when you run make install they are moved to wherever the executable, configuration files and man pages were configured to be.
Oh, so finally i know this part of doubt. So after run "make install" the bin file created will be moved to /user/bin or related folder, hence all the files in my "make" source code folder can be safely deleted ?
 
Old 06-02-2021, 05:29 PM   #15
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post

Too much micromanaging can cause more problems than it solves.
How about this :
simple configuration

Solid state: / (root filesystem) , /home (partial /home folder, excluding /download, /photo, /desktop ...any folder that is for placing of data file )

Spinning disk: /var (because files in this folder constantly changing..such log file), /home (/download, /video, /photo.. /desktop and any folder that is for placing downloaded files), /tmp, swapfile

/var is folder where logs files are.. which constantly changing.
/tmp is just temp files
/swap file

SSD partition table:
[system reserve-auto created by windoz] [win7] [/boot] [/] [/home (partial)]
This above is my planned partition making on ssd, The rest folder are placed on spinning hdd partition. please advice.

/system reserve - just a few Kb only i think
/ntfs partition for windows - 400GB
/boot partition - 1GB
/ partition - 100GB
/home partition - 400GB

Please advice.Thankyou.

Last edited by andrewysk; 06-02-2021 at 05:31 PM.
 
  


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
how to best use 2 HD 256 ssd / normal 1TB drudox Linux - Hardware 6 05-08-2018 03:08 PM
Will Manjaro Linux Net edition act like Manjaro or a base install of Arch? punchy71 Linux - Newbie 4 06-28-2014 08:05 AM
[SOLVED] SSD + HDD: an OPTIMAL partitioning scheme xri Linux - Hardware 6 04-25-2012 10:19 AM
Partition scheme ideas for 1TB workstation spacemanspiff Linux - Hardware 2 06-04-2006 03:12 AM
Best Partitioning Scheme? rivang Slackware 28 05-19-2003 11:24 AM

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

All times are GMT -5. The time now is 01:18 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