You are not logged in.

#1 2012-03-13 12:19:46

Z0K4
Member
From: Split, Croatia
Registered: 2011-06-14
Posts: 17

[SOLVED] Good partitioning scheme... Which fs to use?

Hi everyone!
I'm about to install Arch on my laptop and I want to know which is the best partitioning scheme for Arch newbie + which fs to use for particular partition.
My idea is this:

/dev/sda1     100MB       /boot    ext2
/dev/sda2     1024MB      swap     swap
/dev/sda3     10240MB     /root    ext4
/dev/sda4     20480MB     /home    ext4

Is this good enough? Should I be using ext4 for /boot... I suppose it doesn't need journaling. Will there be performance increase if I use one or the other, etc...
Thank you! wink
Cheers.

Last edited by Z0K4 (2012-03-13 13:47:58)

Offline

#2 2012-03-13 13:02:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Good partitioning scheme... Which fs to use?

I think you mixed '/root' with '/' up. '/' is the main partition while '/root' is like '/home' but for the root - you don't need to have a separate '/root' partition.

10 GB for / is OK unless you plan on installing a looot of software.

Offline

#3 2012-03-13 13:11:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,652
Website

Re: [SOLVED] Good partitioning scheme... Which fs to use?

I'm far from an expert but I see no need for ext4 for boot.  I did just convert one of my systems from ext3 to ext4 (for / + /home).  This was mainly to use e4rat, but I also saw a drastic increase in fs check speed.

The system I'm posting from now has ~7GB for /.  I make it work, but it is very full - 94% at the moment, and I just did some cleanup.  Although I still have Battle for Wesnoth, which is the biggest occupant of my root partition.  I have a 10GB root parition on a work computer that I've hardly scratched the surface of, but that is with no games, and no big DE.

Given a 32GB total, I wouldn't use more than 10 for root.  Home will likely fill up much quicker.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2012-03-13 13:13:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Good partitioning scheme... Which fs to use?

Trilby wrote:

Given a 32GB total, I wouldn't use more than 10 for root.  Home will likely fill up much quicker.

OP doesn't have to use a separate partition for /home at all.

Offline

#5 2012-03-13 13:17:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,652
Website

Re: [SOLVED] Good partitioning scheme... Which fs to use?

True, it could be best to leave them together on a smaller drive.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2012-03-13 13:38:54

Z0K4
Member
From: Split, Croatia
Registered: 2011-06-14
Posts: 17

Re: [SOLVED] Good partitioning scheme... Which fs to use?

karol wrote:

I think you mixed '/root' with '/'

Correct. Thank you!

karol wrote:

10 GB for / is OK unless you plan on installing a looot of software.

Will KDE be the problem? I will not use full KDE so bare that in mind...

Trilby wrote:

I have a 10GB root parition on a work computer that I've hardly scratched the surface of, but that is with no games, and no big DE.

None of the games will be installed... But, as I already wrote, I will be using KDE which is HUGE, even without the full package installation!

You both are probably wright... I think I will use the same partition for "/" and "/home"
Thank you for your help. I must say, you do have awesome (the best) community!

So, this will be the final partition table:

/dev/sda1    100 MB     /boot    ext2
/dev/sda2    1024 MB    swap     swap
/dev/sda3    30720 MB   /        ext4

Best regards! wink

Last edited by Z0K4 (2012-03-13 13:40:14)

Offline

#7 2012-03-13 13:42:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Good partitioning scheme... Which fs to use?

I've never used hibernation, but I've heard you need as much swap as you have RAM for it.
If that's not an issue, I think you're all set.

Offline

#8 2012-03-13 13:47:29

Z0K4
Member
From: Split, Croatia
Registered: 2011-06-14
Posts: 17

Re: [SOLVED] Good partitioning scheme... Which fs to use?

karol wrote:

I've heard you need as much swap as you have RAM.

Thank you for the info... I'll mark topic as solved.
Again, thank you for your replies!
Cheers...

Offline

#9 2012-03-13 20:01:27

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Good partitioning scheme... Which fs to use?

you also do not need a separate boot unless you plan to install multiple distros and have a common boot partition for them all. Arch Linux is capable of starting up from a ext4 partition, so just put your /boot under your / and all should be fine.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#10 2012-03-14 11:09:22

Z0K4
Member
From: Split, Croatia
Registered: 2011-06-14
Posts: 17

Re: [SOLVED] Good partitioning scheme... Which fs to use?

Inxsible wrote:

you also do not need a separate boot unless you plan to install multiple distros and have a common boot partition for them all...

I need Win7 for my college projects... so I will be dual booting!
But thank you for that info... I'll make sure to put "/boot" to "/" when I get desktop computer, and only Arch will be running on that machine!

Offline

#11 2012-03-14 12:48:33

Silvah
Guest

Re: [SOLVED] Good partitioning scheme... Which fs to use?

In this case you don't need a separate /boot partition, dual-booting with Windows works fine with /boot on your /.

#12 2012-03-14 17:08:01

Z0K4
Member
From: Split, Croatia
Registered: 2011-06-14
Posts: 17

Re: [SOLVED] Good partitioning scheme... Which fs to use?

Thank you Silvah for that info...
So looks like I only need 2 partitions! Time to get my hands dirty and start with the installation... I've already done it few times in the virtual box, and there shouldn't be any problems! Thank you all for your replies! big_smile

Offline

#13 2012-03-14 17:51:42

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: [SOLVED] Good partitioning scheme... Which fs to use?

That's what I did with my new machine - a 120gb SSD with 2 60gb partitions. One for Win7 and one for Arch. The only tricky thing was figuring out which partition to point GRUB at for my dual boot. For some reason, it wanted (hd0,2) for the Windows partition.

Offline

#14 2012-03-14 18:33:52

masteryod
Member
Registered: 2010-05-19
Posts: 433

Re: [SOLVED] Good partitioning scheme... Which fs to use?

Inxsible wrote:

[...]Arch Linux is capable of starting up from a ext4 partition, so just put your /boot under your / and all should be fine.

Thath's only half true, from wiki:

Note: The ext4 patch is included by default with Arch's GRUB package (at the time of writing, but this will likely not change). Otherwise, GRUB2 is required for booting from an ext4 partition.

Warning: Booting from an ext4 partition is not 'officially' supported by GRUB, and GRUB2 is still under development. While GRUB does currently work, the 'safe' option is to boot from an ext2 or ext3 /boot partition. CONSIDER YOURSELF WARNED!

also look at this thread: https://bbs.archlinux.org/viewtopic.php?id=85728


Z0K4 wrote:

Will KDE be the problem? I will not use full KDE so bare that in mind...

Right now I'm writing from my portable Arch:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sdb7       8.4G  5.0G  3.0G  63% /

This is after cleaning pacman cache. Other than that I only have /boot and swap partitions. I don't have separate /home partition on this installation but it's mine OS so I keep an eye on it, if you don't plan to use separate /home partition you should be carefull no to fill it up completely with pacman cache, enormous logs, torrents or something else (nothing unrecoverable but it can brake normal booting)

And this is my list of kde packages: http://pastebin.com/nUEbi2yK (I can save a lot of space on those wallpapers wink) Besides KDE other "big" apps I currently have: Blender, GIMP, Firefox. As you can see this is enough for decent desktop environment.

karol wrote:

I've never used hibernation, but I've heard you need as much swap as you have RAM for it.
If that's not an issue, I think you're all set.

It's good habit but I've read somewhere that ram image is compressed before dumping to hard drive(?) so depending on situation it's not necessary. Also if you have a lot of ram e.g 8GB it's questionable to make also 8GB swap partition - it would be bullet-prof though

Last edited by masteryod (2012-03-14 18:43:53)

Offline

#15 2012-03-18 17:11:30

Z0K4
Member
From: Split, Croatia
Registered: 2011-06-14
Posts: 17

Re: [SOLVED] Good partitioning scheme... Which fs to use?

masteryod wrote:

Warning: Booting from an ext4 partition is not 'officially' supported by GRUB, and GRUB2 is still under development. While GRUB does currently work, the 'safe' option is to boot from an ext2 or ext3 /boot partition. CONSIDER YOURSELF WARNED!
also look at this thread: https://bbs.archlinux.org/viewtopic.php?id=85728

Thank you for the information and for the link!

masteryod wrote:

And this is my list of kde packages: http://pastebin.com/nUEbi2yK (I can save a lot of space on those wallpapers wink) Besides KDE other "big" apps I currently have: Blender, GIMP, Firefox.

Hehe... I've already installed KDE base on the virtual machine + browser + few more things... And it's just over 2GB big_smile

So... I'm pretty satisfied by now!

Offline

Board footer

Powered by FluxBB