User Tools

Site Tools


unix:freebsd:installing_to_usb_thumbdrive

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
unix:freebsd:installing_to_usb_thumbdrive [2019/03/27 23:51]
rodolico [References]
unix:freebsd:installing_to_usb_thumbdrive [2019/03/28 00:04] (current)
rodolico [More Detail]
Line 32: Line 32:
 /​dev/​ada1p2 ​    ​none ​           swap    sw                      0       0 /​dev/​ada1p2 ​    ​none ​           swap    sw                      0       0
 </​code>​ </​code>​
 +
 +**Note** If you use //pkg// for your installation,​ it will use /tmp for most of its work. In that case, you could get a complaint that there is not enough room. You will either need to increase the size of your ramdisk, or point pkg's work directory someplace else. I ran across that at one time, but now I can't find it. I'll update this when I do.
  
 The above is a little different, since I already had an SSD in the system as the L2ARC for ZFS. FreeBSD does not require L2ARC have an entire device, so I was able to partition this out to give myself a block for swap. This particular card is actually two small devices which can be RAID'​d,​ but I broke the RAID set and simply set up each device on its own, thus creating the two swap devices above (ada0p2 and ada1p2). ada0p1 and ada1p1 were for the L2ARC. The above is a little different, since I already had an SSD in the system as the L2ARC for ZFS. FreeBSD does not require L2ARC have an entire device, so I was able to partition this out to give myself a block for swap. This particular card is actually two small devices which can be RAID'​d,​ but I broke the RAID set and simply set up each device on its own, thus creating the two swap devices above (ada0p2 and ada1p2). ada0p1 and ada1p1 were for the L2ARC.
Line 50: Line 52:
 zfs set checksum=off atime=off exec=off ​ mountpoint=/​var/​log storage/​varlog zfs set checksum=off atime=off exec=off ​ mountpoint=/​var/​log storage/​varlog
 service syslogd restart service syslogd restart
 +mount
 +</​code>​
 +
 +If you are going to use the Ports collection, it will do a lot of work in /usr/ports, so we want to fix that also. **Note** I think it does all its work in the /usr/port/* directory, but I have not been able to verify that.
 +<code bash>
 +zfs create storage/​ports
 +mv /​usr/​ports/​* /​storage/​ports
 +zfs set checksum=off atime=off exec=off mountpoint=/​usr/​ports storage/​ports
 +</​code>​
 +Now, you can see the results of your mounted directories
 +<code bash>
 mount mount
 </​code>​ </​code>​
unix/freebsd/installing_to_usb_thumbdrive.txt ยท Last modified: 2019/03/28 00:04 by rodolico