View previous topic :: View next topic |
Author |
Message |
bpaddock Apprentice
Joined: 04 Nov 2005 Posts: 195 Location: Franklin, PA
|
Posted: Sat Mar 09, 2013 11:00 pm Post subject: How to put /home on a different drive with ZFS? [Solved] |
|
|
I'm trying to bring up a new system using ZFS.
The root file system and such I want on a small SSD.
I wan to put /home on a larger hard disk.
During the install ether I end up with broken mount points like /mnt/gentoo/home/home or /mnt/gentoo/home/mnt/gentoo/home
or I get good mount points but grub2 failes to install (it can't find /home?).
I've been following https://github.com/ryao/zfs-overlay/blob/master/zfs-install , so what is the correct way
to get /home on /dev/sdb with ZFS?
Last edited by bpaddock on Mon Mar 18, 2013 7:32 pm; edited 1 time in total |
|
Back to top |
|
|
jpc22 Apprentice
Joined: 29 Jan 2012 Posts: 195
|
Posted: Mon Mar 11, 2013 1:32 am Post subject: |
|
|
you could mount the separate drive as whatever you want and create a symlink on your ssd to a home folder on that drive, it might work. |
|
Back to top |
|
|
The Doctor Moderator
Joined: 27 Jul 2010 Posts: 2678
|
Posted: Mon Mar 11, 2013 2:03 am Post subject: |
|
|
You shouldn't need to do anything that contrived. A home partition is not required to boot. You should not need to do anything special during the install. You shouldn't even need to mount your home partition during the install.
All you you need to do is add an fstab entry for your home, something like: Code: | /dev/sdb1 /home ext4 noatime 0 1 | with the appropriate changes for your preferred file system.
Grub doesn't need to know about it. The only partition grub needs to know about is /boot. For boot up to work, you system needs /usr to be accessible. The rest are just needed if you actually want to do something with your system. Heck, you can even boot up without /usr. it just isn't pretty. _________________ First things first, but not necessarily in that order.
Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box. |
|
Back to top |
|
|
bpaddock Apprentice
Joined: 04 Nov 2005 Posts: 195 Location: Franklin, PA
|
Posted: Mon Mar 11, 2013 10:50 am Post subject: |
|
|
The Doctor wrote: | You shouldn't need to do anything that contrived. A home partition is not required to boot. You should not need to do anything special during the install. You shouldn't even need to mount your home partition during the install.
All you you need to do is add an fstab entry for your home, something like: Code: | /dev/sdb1 /home ext4 noatime 0 1 | with the appropriate changes for your preferred file system.
Grub doesn't need to know about it. The only partition grub needs to know about is /boot. For boot up to work, you system needs /usr to be accessible. The rest are just needed if you actually want to do something with your system. Heck, you can even boot up without /usr. it just isn't pretty. |
Thank you. However I don't believe any of that applies with full-disk-ZFS. fstab is empty and there are no separate part ions other than BIOS-EF02.
I went ahead with the normal ZFS install, so now just need to get /home moved. Currently the problem is that rhome disappears on each reboot. |
|
Back to top |
|
|
ryao Retired Dev
Joined: 27 Feb 2012 Posts: 132
|
Posted: Mon Mar 18, 2013 7:14 pm Post subject: Re: How to put /home on a different drive with ZFS? |
|
|
bpaddock wrote: | I'm trying to bring up a new system using ZFS.
The root file system and such I want on a small SSD.
I wan to put /home on a larger hard disk.
During the install ether I end up with broken mount points like /mnt/gentoo/home/home or /mnt/gentoo/home/mnt/gentoo/home
or I get good mount points but grub2 failes to install (it can't find /home?).
I've been following https://github.com/ryao/zfs-overlay/blob/master/zfs-install , so what is the correct way
to get /home on /dev/sdb with ZFS? |
Unfortunately, I don't frequent the forums very often, so my response here was slow, but this is a known issue:
https://github.com/zfsonlinux/zfs/issues/1078
The workaround is to run the ZFS commands outside of the chroot, which is what zfs-install does. |
|
Back to top |
|
|
bpaddock Apprentice
Joined: 04 Nov 2005 Posts: 195 Location: Franklin, PA
|
Posted: Mon Mar 18, 2013 7:31 pm Post subject: Re: How to put /home on a different drive with ZFS? [Solved] |
|
|
Thank you. Got the system up and running. |
|
Back to top |
|
|
|