Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
btrfs:is it possible to place root filesystem to a subvolume
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
linuxsir320
n00b
n00b


Joined: 11 Mar 2010
Posts: 26

PostPosted: Mon Apr 19, 2010 3:26 am    Post subject: btrfs:is it possible to place root filesystem to a subvolume Reply with quote

For example, device "/dev/sda2" is formatted to btrfs, and some subvolumes are created, such as root, home etc.
Is it possible to make root subvolume act as root filesystem ?
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Mon Apr 19, 2010 8:10 am    Post subject: Reply with quote

short answer yes, it is.

longer answer:
you need to adapt your grub config
e.g
Code:
title 2.6.32-gentoo3-1g - Man-Eating Seals of Antiquity
kernel (hd0,0)/linux-2.6.32-gentoo3-1g root=/dev/sda2 rootflags=subvol=system

where system is the subvol for root.

cheers
V.
Back to top
View user's profile Send private message
linuxsir320
n00b
n00b


Joined: 11 Mar 2010
Posts: 26

PostPosted: Mon Apr 19, 2010 9:36 am    Post subject: Reply with quote

Veldrin wrote:
short answer yes, it is.

longer answer:
you need to adapt your grub config
e.g
Code:
title 2.6.32-gentoo3-1g - Man-Eating Seals of Antiquity
kernel (hd0,0)/linux-2.6.32-gentoo3-1g root=/dev/sda2 rootflags=subvol=system

where system is the subvol for root.

cheers
V.


Thanks, I will try.

By the way, can btrfs be used everyday ?
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Tue Apr 20, 2010 7:49 am    Post subject: Reply with quote

linuxsir320 wrote:
Thanks, I will try.

By the way, can btrfs be used everyday ?


I heard that the ODF (on-disk-format) is now kept stable as much as possible. It's up to you to consider it stable enough :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum