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/29 04:18] – [NTFS USB] Sean Rhonebsd:notes:zfs_nas_format [2025/10/23 03:16] (current) Sean Rhone
Line 1: Line 1:
-====== ZFS ======+====== ext4 USB Mount ======
  
-  * [[bsd:server:freebsd_14.3|FreeBSD 14.3]] +  * No partition table ([[linux:notes:rsync_nas#format]])
-  * https://docs.freebsd.org/en/books/handbook/zfs/+
  
   su -   su -
Line 8: Line 7:
   geom disk list   geom disk list
  
-  gpart list+  mkdir -p '/mnt/USB1' && mount -t 'ext2fs' -o 'ro' '/dev/da0' '/mnt/USB1'
  
-  zpool create 'NAS' '/dev/da0'+  chown -R 'espionage724':'espionage724' '/mnt/USB1'
  
-  zpool status 'NAS'+====== NTFS USB Mount ======
  
-  zpool import 'NAS' +  * :?: 2025/08/29: ''thunar'' seems to freeze when browsing folders related to this during file operations (possibly fuse related)
- +
-===== NTFS Restore =====+
  
   su -   su -
Line 22: Line 19:
   geom disk list   geom disk list
  
-  gpart list 'da1'+  gpart list 'da0'
  
   pkg install 'fusefs-ntfs'   pkg install 'fusefs-ntfs'
Line 28: Line 25:
   kldload 'fusefs'   kldload 'fusefs'
  
-  mkdir -p '/mnt/NAS2' && ntfs-3g -o 'ro' '/dev/da1p2' '/mnt/NAS2'+  mkdir -p '/mnt/USB1' && ntfs-3g -o 'rw,big_writes,uid=1001,gid=1001' '/dev/da0s1' '/mnt/USB1'
  
-  cp -R -L -p '/mnt/NAS2/'* '/NAS'+  gio open '/mnt/USB1'
  
-  sync && umount '/mnt/NAS2'+  umount '/mnt/USB1'
  
-==== vsftpd ====+  kldunload 'fusefs'
  
-  * [[servers:bsd:vsftpd]]+  usbconfig
  
-  chown -'espionage724':'espionage724' '/NAS&& sync+  usbconfig -'/dev/ugen0.4' 'power_off'
  
-  chmod -R '774' '/NAS' && sync+====== ZFS Format ======
  
-===== NTFS USB =====+  * [[bsd:server:freebsd_14.3|FreeBSD 14.3]] 
 +  * https://docs.freebsd.org/en/books/handbook/zfs/ 
 +  * :!: TODO: Check if auto-mounted on reboot for vsftpd
  
   su -   su -
Line 48: Line 47:
   geom disk list   geom disk list
  
-  gpart list 'da0'+  gpart list 
 + 
 +  zpool create 'NAS' '/dev/da0
 + 
 +  zpool status 'NAS' 
 + 
 +  zpool import 'NAS' 
 + 
 +===== NTFS USB Restore ===== 
 + 
 +  su - 
 + 
 +  geom disk list 
 + 
 +  gpart list 'da1'
  
   pkg install 'fusefs-ntfs'   pkg install 'fusefs-ntfs'
Line 54: Line 67:
   kldload 'fusefs'   kldload 'fusefs'
  
-  mkdir -p '/mnt/USB1' && ntfs-3g -o 'rw,big_writes,uid=1001,gid=1001' '/dev/da0s1' '/mnt/USB1'+  mkdir -p '/mnt/NAS2' && ntfs-3g -o 'ro' '/dev/da1p2' '/mnt/NAS2'
  
-  gio open '/mnt/USB1'+  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'
  
-  pkill 'thunar&& sync && umount '/mnt/USB1'+  chmod -R '774' '/NAS'
  
-====== NTFS ======+====== NTFS Old ======
  
   * ''NAS2'' spare (wiped)   * ''NAS2'' spare (wiped)
Line 123: 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.1756455537.txt.gz · Last modified: by Sean Rhone