LinuxQuestions.org
Visit Jeremy's Blog.
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 01-05-2015, 03:48 AM   #1
horizonbrave
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
install with BTRFS: subvolume/partition scheme?


Hi all,
I'm a newbie
I'd like to install GNU/Linux on a single drive (SSD) desktop computer.
The filesystem of choice is BTRFS and a couple of thing are not really clear to me:
- is a swap partition still necessary and what's the best fs for it?
- what partition scheme would you suggest?

I thought about 2 different btrfs partitions, one for /home and one for / (root) but from what I read if I'm giving the raw drive to BTRFS that would be more beneficial performance-wise, is that correct? (actually I don't even know if 2 btrfs partitions on the same drive is even possible).

If should I got for "donating" the raw/whole drive to btrfs which subvolumes scheme would you suggest for an easy management of the snapshots and backups? should /home be a subvolume or that's not really necessary...

Many thanks and sorry if some questions may sound silly!
 
Old 01-05-2015, 07:05 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,714

Rep: Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280
Swap is a separate issue from the filesystem. If you are going to use it on a laptop with a hibernate, then you have to have one for the system to save to.

If you have lots of memory, and don't expect to run programs that overflow the available space, then you don't need one.

As for having /boot and /root only, it partially depends on your distribution. Does the distributed grub version have support for btrfs? If it does, then you don't really need a separate /boot partition.

Keeping /home separate from the system is a bit more useful as it makes it easier to reinstall without damaging the files there. It is also a bit easier to backup (some procedures prefer backing up entire partitions/filesystems, others work by copying files).

I can't make recommendations on btrfs (not having used it yet).
 
Old 01-05-2015, 07:07 AM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 284Reputation: 284Reputation: 284
See my answer over at the Debian forums:
http://forums.debian.net/viewtopic.php?p=565502#p565502

I didn't think of hibernation though -- BTRFS doesn't allow a swapfile so you will need a swap partition equal to your RAM.
 
Old 01-05-2015, 08:22 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,714

Rep: Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280
Swap space at the size of your RAM is the MINIMUM. If you have any applications that do happen to be using swap, there isn't enough room... Most recommendations would be for twice RAM size, but it really depends on what is being done with the system at the time hibernating is activated.
 
Old 01-05-2015, 08:48 AM   #5
horizonbrave
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jpollard View Post
Swap space at the size of your RAM is the MINIMUM
what about if I'm not using hybernating?
This is gonna be a desktop machine after all.

Thanks
 
Old 01-05-2015, 09:35 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,714

Rep: Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280
If not using hibernating, then you don't really need swap - unless you are running programs that overflow your memory limits.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Btrfs: Moving a large chuck of data from filesystem to subvolume vinbob Linux - Software 1 09-18-2014 05:42 AM
btrfs and lilo wont install on the root partition charlie_lab Slackware - Installation 9 09-08-2011 03:17 AM
btrfs subvolume quota phil.d.g Linux - Software 0 08-29-2011 01:18 AM
Restore btrfs partition Alien_Hominid Linux - General 1 12-19-2010 04:01 AM
Is this a good partition scheme for the install of Arch Linux? lupusarcanus Linux - Newbie 16 01-11-2010 09:35 AM

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

All times are GMT -5. The time now is 08:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration