User Tools

Site Tools


bsd:notes:zfs_nas_format

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bsd:notes:zfs_nas_format [2025/08/28 01:06] Sean Rhonebsd:notes:zfs_nas_format [2025/10/23 03:16] (current) Sean Rhone
Line 1: Line 1:
-====== ZFS ======+====== ext4 USB Mount ======
  
 +  * No partition table ([[linux:notes:rsync_nas#format]])
 +
 +  su -
 +
 +  geom disk list
 +
 +  mkdir -p '/mnt/USB1' && mount -t 'ext2fs' -o 'ro' '/dev/da0' '/mnt/USB1'
 +
 +  chown -R 'espionage724':'espionage724' '/mnt/USB1'
 +
 +====== NTFS USB Mount ======
 +
 +  * :?: 2025/08/29: ''thunar'' seems to freeze when browsing folders related to this during file operations (possibly fuse related)
 +
 +  su -
 +
 +  geom disk list
 +
 +  gpart list 'da0'
 +
 +  pkg install 'fusefs-ntfs'
 +
 +  kldload 'fusefs'
 +
 +  mkdir -p '/mnt/USB1' && ntfs-3g -o 'rw,big_writes,uid=1001,gid=1001' '/dev/da0s1' '/mnt/USB1'
 +
 +  gio open '/mnt/USB1'
 +
 +  umount '/mnt/USB1'
 +
 +  kldunload 'fusefs'
 +
 +  usbconfig
 +
 +  usbconfig -d '/dev/ugen0.4' 'power_off'
 +
 +====== ZFS Format ======
 +
 +  * [[bsd:server:freebsd_14.3|FreeBSD 14.3]]
   * https://docs.freebsd.org/en/books/handbook/zfs/   * https://docs.freebsd.org/en/books/handbook/zfs/
 +  * :!: TODO: Check if auto-mounted on reboot for vsftpd
  
   su -   su -
Line 13: Line 53:
   zpool status 'NAS'   zpool status 'NAS'
  
-  '/NAS'+  zpool import 'NAS'
  
-===== NTFS Restore =====+===== NTFS USB Restore =====
  
   su -   su -
Line 29: Line 69:
   mkdir -p '/mnt/NAS2' && ntfs-3g -o 'ro' '/dev/da1p2' '/mnt/NAS2'   mkdir -p '/mnt/NAS2' && ntfs-3g -o 'ro' '/dev/da1p2' '/mnt/NAS2'
  
-====== NTFS ======+  mkdir -p '/mnt/NAS2' && ntfs-3g -o 'ro' '/dev/da1s1' '/mnt/NAS2' 
 + 
 +  cp -R -L -p '/mnt/NAS2/'* '/NAS' 
 + 
 +  umount '/mnt/NAS2' 
 + 
 +  kldunload 'fusefs' 
 + 
 +  usbconfig 
 + 
 +  usbconfig -d '/dev/ugen1.5' 'power_off' 
 + 
 +===== vsftpd ===== 
 + 
 +  * [[servers:bsd:vsftpd]] 
 + 
 +  chown -R 'espionage724':'espionage724' '/NAS' 
 + 
 +  chmod -R '774' '/NAS' 
 + 
 +====== NTFS Old ======
  
   * ''NAS2'' spare (wiped)   * ''NAS2'' spare (wiped)
Line 92: Line 152:
   sync && usbconfig -d '/dev/ugen0.4' power_off   sync && usbconfig -d '/dev/ugen0.4' power_off
  
-====== Clone Mount/Rsync ======+====== Clone Mount/Rsync Old ======
  
   * ''NAS2'' spare ([[linux:notes:disk_gpt_format#ext4|GPT ext4 pre-formatted]])   * ''NAS2'' spare ([[linux:notes:disk_gpt_format#ext4|GPT ext4 pre-formatted]])
/srv/www/wiki/data/attic/bsd/notes/zfs_nas_format.1756357573.txt.gz · Last modified: by Sean Rhone