LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-06-2021, 02:12 PM   #1
George528
Member
 
Registered: May 2021
Location: Moldova
Distribution: Arch, Debian
Posts: 95

Rep: Reputation: 2
Please evaluate my partition table


I am new in LFS project and managed to create a partition table.
I want to know if my partition table is good, i spent a lot of time for it figuring out how to do it and what to do.

https://i.imgur.com/Zu2oDjt.jpg

i will later delete host system and resize /home partition

Any tips?
 
Old 05-06-2021, 02:18 PM   #2
eight.bit.al
Member
 
Registered: Jul 2015
Location: Prison
Distribution: a new distro every day
Posts: 124

Rep: Reputation: Disabled
It's hard to say without knowing your needs. First impression is, it's rather complicated. Please explain your choices and sizes. The act of explaining something sometimes offers new insight.

8bit
 
Old 05-06-2021, 02:35 PM   #3
George528
Member
 
Registered: May 2021
Location: Moldova
Distribution: Arch, Debian
Posts: 95

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by eight.bit.al View Post
It's hard to say without knowing your needs. First impression is, it's rather complicated. Please explain your choices and sizes. The act of explaining something sometimes offers new insight.

8bit
i was told that having multiple partitions is safer in case you f*ck up your system, its more effective and organized.

https://i.imgur.com/lZDKhwO.png

i did everything extra the book said, in hopes for better build. Honsetly i don't know what i am doing, i just want the best
 
Old 05-06-2021, 03:32 PM   #4
slackhater
Member
 
Registered: May 2021
Distribution: Slackware --> CRUX
Posts: 31

Rep: Reputation: 0
G
Quote:
Originally Posted by George528 View Post
I am new in LFS project and managed to create a partition table.
I want to know if my partition table is good, i spent a lot of time for it figuring out how to do it and what to do.

https://i.imgur.com/Zu2oDjt.jpg

i will later delete host system and resize /home partition

Any tips?
I think your partition table is too complicated. There is no parctical value of that. It makes sence to create separate /boot, /home, possibly /var and swap.

Separate /usr and /opt are redundant for sure in Linux. Also, you may mount tmpfs to /tmp

Last edited by slackhater; 05-06-2021 at 03:38 PM.
 
Old 05-06-2021, 03:46 PM   #5
George528
Member
 
Registered: May 2021
Location: Moldova
Distribution: Arch, Debian
Posts: 95

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by slackhater View Post
G

I think your partition table is too complicated. There is no parctical value of that. It makes sence to create separate /boot, /home, possibly /var and swap.

Separate /usr and /opt are redundant for sure in Linux. Also, you may mount tmpfs to /tmp
so in summary i should only have /boot - 512MB, /home - ~100GB, / - 100GB, /var - ?(i don't know what is this and how it is useful), and swap?
 
Old 05-06-2021, 04:02 PM   #6
slackhater
Member
 
Registered: May 2021
Distribution: Slackware --> CRUX
Posts: 31

Rep: Reputation: 0
Quote:
Originally Posted by George528 View Post
so in summary i should only have /boot - 512MB, /home - ~100GB, / - 100GB, /var - ?(i don't know what is this and how it is useful), and swap?
/boot 512 MiB looks reasonable. For root I think it should be at least 32 GiB. 100 GiB is ok but it seems to be a lot. About /var ... it depends ... If you want to make 100 GiB for root, I believe you don't need separate /var unless your system has some narrowed and special needs. /home is the rest of the space.

Swap partition also depends on your RAM and if you want to use hibernation. If you have enough RAM and you do need hibernation, you may choose to use swap file instead of separate swap partition.

My example:

1 MiB for BIOS boot
1 GiB for /boot
64 GiB for root (I use swap file 16 GiB under root), so effective space for root is 48 GiB
The rest is /home

If your system is for personal use, having separate /var is not needed. There are scenarios if you want to make your root partition read-only, then you do need separate writable /var.

Last edited by slackhater; 05-06-2021 at 04:12 PM.
 
Old 05-06-2021, 04:17 PM   #7
George528
Member
 
Registered: May 2021
Location: Moldova
Distribution: Arch, Debian
Posts: 95

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by slackhater View Post
/boot 512 MiB looks reasonable. For root I think it should be at least 32 GiB. 100 GiB is ok but it seems to be a lot. About /var ... it depends ... If you want to make 100 GiB for root, I believe you don't need separate /var unless your system has some narrowed and special needs. /home is the rest of the space.

Swap partition also depends on your RAM and if you want to use hibernation. If you have enough RAM and you do need hibernation, you may choose to use swap file instead of separate swap partition.

My example:

1 MiB for BIOS boot
1 GiB for /boot
64 GiB for root (I use swap file 16 GiB under root), so effective space for root is 48 GiB
The rest is /home

If your system is for personal use, having separate /var is not needed. There are scenarios if you want to make your root partition read-only, then you do need separate writable /var.
thanks for your help, now i know how to partition my disk properly
 
Old 05-09-2021, 07:36 AM   #8
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
A separate /var partition is not as silly as one might think. Here is an example...

One day my system was acting strangely. I tried to reboot and even that had problems. Finally after booting into one of the other distros, I saw the problem: something had gone wrong and had logged errors. Lots of errors. Several errors per second. During an overnight the log file filled my entire partition. That's what made everything go wonky: the "/" partition was full, so no disk writes could happen. A separate /var would have meant that /var was packed, but the system could otherwise keep running.

p.s Of course I've not followed my own advice: I've got several operating systems on the one drive and to adjust everything for separate /var partitions would just be over-complicated.

Last edited by jr_bob_dobbs; 05-09-2021 at 07:38 AM.
 
  


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
LXer: How to Work with Tables (Select, Update, Delete, Create Table, Alter Table, Drop Table) in MySQL LXer Syndicated Linux News 0 02-13-2021 12:10 AM
What are the differences between the normal symbol table, the dynamic symbol table, and the debugging symbol table? watchintv Linux - Software 5 10-22-2016 08:38 AM
[SOLVED] MySQL run SELECT on a table if column A form table 1 equals column A from table 2 robertjinx Linux - Software 1 01-15-2016 10:48 AM
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:47 PM.

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