linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Moving btrfs fs disk between computers
@ 2017-08-19  2:09 Hérikz Nawarro
  2017-08-19  2:35 ` Adam Borowski
  0 siblings, 1 reply; 3+ messages in thread
From: Hérikz Nawarro @ 2017-08-19  2:09 UTC (permalink / raw)
  To: linux-btrfs

Hello everyone,

Can i create a btrfs fs in a machine and move the disk to another
machine like a ext4 or ntfs?

Thanks in advance.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Moving btrfs fs disk between computers
  2017-08-19  2:09 Moving btrfs fs disk between computers Hérikz Nawarro
@ 2017-08-19  2:35 ` Adam Borowski
  2017-08-19  5:21   ` Duncan
  0 siblings, 1 reply; 3+ messages in thread
From: Adam Borowski @ 2017-08-19  2:35 UTC (permalink / raw)
  To: Hérikz Nawarro; +Cc: linux-btrfs

On Fri, Aug 18, 2017 at 11:09:22PM -0300, Hérikz Nawarro wrote:
> Hello everyone,
> 
> Can i create a btrfs fs in a machine and move the disk to another
> machine like a ext4 or ntfs?

Yeah, no problem whatsoever, even for multi-device filesystems.
Btrfs doesn't care about what devices it is on.

There has been no new incompat features in quite a while, so old kernels
shouldn't be an issue either.

I think the only way for valid btrfs to be unmountable on another machine
with a modern kernel is to mess with page size, which is AFAIK not even
possible on x86.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢰⠒⠀⣿⡁ Vat kind uf sufficiently advanced technology iz dis!?
⢿⡄⠘⠷⠚⠋⠀                                        -- Genghis Ht'rok'din
⠈⠳⣄⠀⠀⠀⠀ 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Moving btrfs fs disk between computers
  2017-08-19  2:35 ` Adam Borowski
@ 2017-08-19  5:21   ` Duncan
  0 siblings, 0 replies; 3+ messages in thread
From: Duncan @ 2017-08-19  5:21 UTC (permalink / raw)
  To: linux-btrfs

Adam Borowski posted on Sat, 19 Aug 2017 04:35:26 +0200 as excerpted:

> On Fri, Aug 18, 2017 at 11:09:22PM -0300, Hérikz Nawarro wrote:
>> Hello everyone,
>> 
>> Can i create a btrfs fs in a machine and move the disk to another
>> machine like a ext4 or ntfs?
> 
> Yeah, no problem whatsoever, even for multi-device filesystems.
> Btrfs doesn't care about what devices it is on.
> 
> There has been no new incompat features in quite a while, so old kernels
> shouldn't be an issue either.
> 
> I think the only way for valid btrfs to be unmountable on another
> machine with a modern kernel is to mess with page size, which is AFAIK
> not even possible on x86.

IOW, as long as the two machines are the same arch, or more precisely, 
have the same page size if different archs, it should be fine as long as 
you're not running a really old kernel on one of them.

But don't try mounting a filesystem created on x86_64 on something exotic 
like sparc or ppc or something.  If the two archs' page sizes are the 
same it should work, but I'd still be sure I had an extra set of backups 
before I tried something like that.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-19  5:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-19  2:09 Moving btrfs fs disk between computers Hérikz Nawarro
2017-08-19  2:35 ` Adam Borowski
2017-08-19  5:21   ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).