Re: [newb] move /home to subvolume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2015-06-01 09:03, Neal Becker wrote:
So I think what I need to do is:

1. boot off some rescue media
In theory, you may be able to boot do the equivalent of this from single user mode or by logging in as root, although it may be safer to do it from rescue media (just make sure the rescue media is relatively up to date).
2. mount the target btrfs volume (e.g., /mnt/sysimage/root)
3. mv exising home (mv /mnt/sysimage/home /mnt/sysimage/oldhome)
4. create new subvolume (btrfs subvolume create /mnt/sysimage/home)
5. move all the files from /mnt/sysimage/oldhome /mnt/sysimage/home - not
sure easiest way to do this step
I would use either rsync (if you have a lot of free space available on the volume) or 'cp -va --reflink=always'.
6. edit /mnt/sysimage/etc/fstab to mount new /home

I have another machine, setup more or less this way:
UUID=7246327b-1905-4fe2-9b6b-b9376017264f /                       btrfs
subvolid=5,subvol=root00 0 0
UUID=2c04be93-34c1-4016-ba41-60fd9fd90616 /boot                   ext4
defaults        1 2
UUID=7246327b-1905-4fe2-9b6b-b9376017264f /home                   btrfs
subvol=home     0 0


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux