From 1f13960ada451523bc09ca83cb5669df8dc03fba Mon Sep 17 00:00:00 2001 From: C-D-Lewis Date: Sun, 7 Jan 2024 11:51:35 +0000 Subject: [PATCH] update --- docs/NAS-setup.md | 52 ++++++++++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/docs/NAS-setup.md b/docs/NAS-setup.md index 8c0df55..5393325 100644 --- a/docs/NAS-setup.md +++ b/docs/NAS-setup.md @@ -45,9 +45,10 @@ sudo blkid /dev/sda1 ``` sudo nano /etc/fstab ``` - ``` - UUID= /mnt/usb/raid1 ext4 defaults,auto,users,rw,nofail 0 0 - ``` + +``` +UUID= /mnt/usb/raid1 ext4 defaults,auto,users,rw,nofail 0 0 +``` # First mount ``` @@ -75,14 +76,15 @@ sudo apt install -y samba samba-common ``` sudo nano /etc/samba/smb.conf ``` - ``` - [raid1] - path = /mnt/raid1/ - writeable = yes - create mask = 0775 - directory mask = 0775 - public=no - ``` + +``` +[raid1] +path = /mnt/raid1/ +writeable = yes +create mask = 0775 +directory mask = 0775 +public=no +``` # Add pi password ``` @@ -101,9 +103,27 @@ Enable quirks mode (seems to help) over using UAS mode: ``` sudo nano /boot/cmdline.txt ``` - ``` - usb-storage.quirks=aaaa:bbbb:u - ``` -Where `aaaa` is the `idVendor` for your device and `bbbb` is the `idProduct`, -added to the start of the file. +``` +usb-storage.quirks=aaaa:bbbb:u +``` + +Where `aaaa` is the `idVendor` for your device and `bbbb` is the `idProduct`, added to the start of the file. These are found in `dmesg` when the drive is plugged in with the USB > SSD cable: + +``` +[ 2.488234] usb 2-2.3: new SuperSpeed USB device number 3 using xhci_hcd +[ 2.513780] usb 2-2.3: New USB device found, idVendor=174c, idProduct=1153, bcdDevice= 1.00 +[ 2.513839] usb 2-2.3: New USB device strings: Mfr=2, Product=3, SerialNumber=1 +[ 2.513868] usb 2-2.3: Product: Ugreen Storage Device +[ 2.513891] usb 2-2.3: Manufacturer: Ugreen +[ 2.513912] usb 2-2.3: SerialNumber: 26A1EE833C9C +``` + +Quirks mode can be confirmed with `dmesg | grep usb-storage`: + +``` +[ 2.517433] usb 2-2.3: UAS is ignored for this device, using usb-storage instead +[ 2.517588] usb 2-2.3: UAS is ignored for this device, using usb-storage instead +[ 2.517619] usb-storage 2-2.3:1.0: USB Mass Storage device detected +[ 2.518212] usb-storage 2-2.3:1.0: Quirks match for vid 174c pid 1153: 800000 +```