Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| rootonzfs:installingfreebsd [2009/10/23 17:51] – ScotHetzel | rootonzfs:installingfreebsd [2013/02/14 22:54] (current) – Fix spelling GavinAtkinson | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| < | < | ||
| - | Fixit# zfs set checksum=fletcher4 zroot | + | Fixit# zfs set checksum=fletcher4 zroot |
| </ | </ | ||
| < | < | ||
| - | Fixit# zfs create -o compression=on -o exec=on -o setuid=off zroot/tmp | + | Fixit# zfs create -o compression=on -o exec=on -o setuid=off zroot/ |
| Fixit# chmod 1777 /zroot/tmp | Fixit# chmod 1777 /zroot/tmp | ||
| </ | </ | ||
| < | < | ||
| - | Fixit# zfs create zroot/usr | + | Fixit# zfs create zroot/usr |
| - | Fixit# zfs create zroot/ | + | Fixit# zfs create zroot/ |
| - | Fixit# cd zroot ; ln -s /usr/home home | + | Fixit# cd /zroot ; ln -s /usr/home home |
| - | Fixit# zfs create -o compression=lzjb -o setuid=off zroot/ | + | |
| - | Fixit# zfs create -o compression=off -o exec=off -o setuid=off zroot/ | + | |
| - | Fixit# zfs create -o compression=off -o exec=off -o setuid=off zroot/ | + | |
| - | Fixit# zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/ | + | |
| </ | </ | ||
| < | < | ||
| - | Fixit# zfs create zroot/var | + | Fixit# zfs create |
| - | Fixit# zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/ | + | Fixit# zfs create -o compression=off -o exec=off -o setuid=off zroot/ |
| - | Fixit# zfs create -o exec=off -o setuid=off zroot/ | + | Fixit# zfs create -o compression=off -o exec=off -o setuid=off zroot/ |
| - | Fixit# zfs create -o compression=lzjb -o exec=on -o setuid=off zroot/ | + | </ |
| - | Fixit# zfs create -o exec=off -o setuid=off -o readonly=on zroot/ | + | |
| - | Fixit# zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/ | + | <callout type=" |
| - | Fixit# zfs create -o compression=gzip -o exec=off -o setuid=off zroot/ | + | **Note:** |
| - | Fixit# zfs create -o exec=off -o setuid=off zroot/ | + | |
| - | Fixit# zfs create -o compression=lzjb -o exec=on -o setuid=off zroot/ | + | If you use nullfs or nfs to mount /usr/ports to different locations/ |
| + | </ | ||
| + | |||
| + | < | ||
| + | Fixit# zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/ | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | Fixit# zfs create zroot/var | ||
| + | Fixit# zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/ | ||
| + | Fixit# zfs create -o exec=off -o setuid=off zroot/ | ||
| + | Fixit# zfs create -o compression=lzjb -o exec=on -o setuid=off zroot/ | ||
| + | Fixit# zfs create -o exec=off -o setuid=off zroot/ | ||
| + | Fixit# zfs create -o compression=lzjb -o exec=off -o setuid=off zroot/ | ||
| + | Fixit# zfs create -o compression=gzip -o exec=off -o setuid=off zroot/ | ||
| + | Fixit# zfs create -o exec=off -o setuid=off zroot/ | ||
| + | Fixit# zfs create -o compression=lzjb -o exec=on -o setuid=off zroot/ | ||
| Fixit# chmod 1777 / | Fixit# chmod 1777 / | ||
| </ | </ | ||
| Line 38: | Line 50: | ||
| **Note:** | **Note:** | ||
| - | - Compression may be set to on, off, lzjb, gzip, gzip-N (where N is an integer from 1 (fastest) to 9 (best compresion | + | - Compression may be set to on, off, lzjb, gzip, gzip-N (where N is an integer from 1 (fastest) to 9 (best compression |
| - Compression will cause some latency when accessing files on the [[/ZFS]] filesystems. | - Compression will cause some latency when accessing files on the [[/ZFS]] filesystems. | ||
| </ | </ | ||
| - | - [[# | + | - Install |
| < | < | ||
| - | Fixit# cd /dist/8.0-20090628-SNAP | + | Fixit# cd /dist/8.0-* |
| Fixit# export DESTDIR=/ | Fixit# export DESTDIR=/ | ||
| Fixit# for dir in base catpages dict doc games info lib32 manpages ports; \ | Fixit# for dir in base catpages dict doc games info lib32 manpages ports; \ | ||
| Line 54: | Line 66: | ||
| </ | </ | ||
| - | - Create | + | - Make /var/empty readonly |
| < | < | ||
| - | Fixit# | + | Fixit# |
| </ | </ | ||
| + | |||
| + | - chroot into /zroot | ||
| < | < | ||
| - | Fixit# | + | Fixit# |
| </ | </ | ||
| + | |||
| + | - Create / | ||
| < | < | ||
| - | Fixit# echo 'zfs_load=" | + | Fixit# echo 'zfs_enable=" |
| - | Fixit# echo 'vfs.root.mountfrom="zfs:zroot"' | + | Fixit# echo 'hostname=" |
| + | Fixit# echo ' | ||
| </ | </ | ||
| - | | + | <callout type=" |
| + | **Note:** | ||
| + | |||
| + | Replace re0 with the name of the Network interface for the new system | ||
| + | </ | ||
| + | |||
| + | | ||
| < | < | ||
| - | Fixit# | + | Fixit# |
| - | Fixit# mount -t devfs devfs /dev | + | Fixit# |
| - | Fixit# | + | |
| - | Fixit# cd / | + | |
| - | Fixit# make obj | + | |
| - | Fixit# make depend | + | |
| - | Fixit# make | + | |
| - | Fixit# cd i386/loader | + | |
| - | Fixit# make install | + | |
| - | Fixit# umount /dev | + | |
| - | Fixit# exit | + | |
| </ | </ | ||
| - | - change | + | - Change |
| < | < | ||
| - | Fixit# chroot /zroot | ||
| Fixit# passwd | Fixit# passwd | ||
| + | </ | ||
| + | |||
| + | - Set the local time zone | ||
| + | |||
| + | < | ||
| + | Fixit# tzsetup | ||
| + | </ | ||
| + | |||
| + | - Create / | ||
| + | |||
| + | < | ||
| + | Fixit# cd /etc/mail | ||
| + | Fixit# make aliases | ||
| + | </ | ||
| + | |||
| + | - Exit from the /zroot | ||
| + | |||
| + | < | ||
| + | Fixit# umount /dev | ||
| Fixit# exit | Fixit# exit | ||
| </ | </ | ||