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 01-05-2015, 02:48 AM   #1
horizonbrave
LQ Newbie
 
Registered: Jan 2015
Posts: 3

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, 06:05 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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, 06:07 AM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
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, 07:22 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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, 07:48 AM   #5
horizonbrave
LQ Newbie
 
Registered: Jan 2015
Posts: 3

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, 08:35 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

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


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

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

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