Jump to: navigation, search

User:Pytony/Home Server Journey

2,829 bytes added, 5 years ago
Added day 5
And... it failed again. :) <code>grub-install: error: cannot find EFI directory</code>. I didn't to extensive researches about this error, I'm pretty sure this is due to something I've done wrong in the beginning. So I'm gonna start again. However I'll first try to do a "standard" installation. I thought about using LVM instead of ZFS (I also learned ZFS is a bit greedy in terms of RAM, so this is probably better anyway), but there is a couple of things that I am not used to: UEFI installation, initramfs, use of genkernel to build a kernel, ... I think the first thing to do is successfully building a system booting with UEFI.
=== Day 5 ===
OK, standard install worked with UEFI. I accidentally made <code>/boot</code> partition <code>ext2</code> instead of <code>vfat</code>, fortunately it was quite easy to fix afterwards. I think it's one of the mistakes I made in the previous installs. So I'll try again taking especially care about UEFI things.
I made a 500MB EFI partition and all space left for ZFS:
Disk /dev/sda: 3907029168 sectors, 1.8 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): E2066145-69F3-46DD-8329-6DC3D3094EB2
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1026047 500.0 MiB EF00 EFI System
2 1026048 3907029134 1.8 TiB BF00 Solaris root
And here is how I partitioned the system:
root@sysresccd /root % mkfs.vfat -F 32 /dev/sda1
mkfs.fat 3.0.22 (2013-07-19)
root@sysresccd /root % zpool create -f -o ashift=12 -o cachefile=/tmp/zpool.cache -O normalization=formD -m none -R /mnt/funtoo toast /dev/sda2
root@sysresccd /root % zfs create -p toast/funtoo
root@sysresccd /root % cd /mnt
root@sysresccd /mnt % zfs create -o mountpoint=/ toast/funtoo/root
root@sysresccd /mnt % zfs create -o mountpoint=/home toast/funtoo/home
root@sysresccd /mnt % zfs create toast/swap -V 8G -b 4K
root@sysresccd /mnt % mkswap /dev/toast/swap
Setting up swapspace version 1, size = 8388604 KiB
no label, UUID=dffed32f-f0f0-4e9c-b405-9a82b1e30805
root@sysresccd /mnt % swapon /dev/toast/swap
root@sysresccd /mnt % zfs create -o mountpoint=/opt toast/funtoo/opt
root@sysresccd /mnt % zfs create -o mountpoint=/usr toast/funtoo/usr
root@sysresccd /mnt % zfs create -o mountpoint=/var toast/funtoo/var
root@sysresccd /mnt % zfs create -o mountpoint=/tmp toast/funtoo/tmp
root@sysresccd /mnt % zfs create -o mountpoint=/var/tmp toast/funtoo/var/tmp
root@sysresccd /mnt % zfs create -o mountpoint=/var/portage/distfiles toast/funtoo/var/portage-distfiles
root@sysresccd /mnt % zfs create -o mountpoint=/var/portage/packages toast/funtoo/var/portage-packages
root@sysresccd /mnt % cd funtoo
root@sysresccd /mnt/funtoo % chmod 1777 var/tmp
root@sysresccd /mnt/funtoo % chmod 1777 tmp
Obivously, not to forget the fstab:
{{file|name=/etc/fstab|desc= |body=
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/sda1 /boot vfat defaults 0 2
And still kept funtoo-stable-hardened/pure64/generic_64-pure64 build.
Let's run <code>emerge -juDN --with-bdeps=y @world && genkernel kernel --no-clean --no-mountboot && emerge -j zfs</code> and go to sleep. :)

Navigation menu