One of the configurations was an SSD. AFAIK Spindown is not an issue.
External HDD Issues
Re: External HDD Issues
I'm experiencing the slightly the same problem. Everything works fine with the RootFS on the SSD, but as soon as I connect an other drive (HDD) to the Pi4, either the 2.0 or 3.0 Interface, my system works for a couple of minutes. dmesg shows nothing suspicions, but at a point there are I/O errors and I've to power off the system to reboot.baz123 wrote: ↑Sun Feb 23, 2020 12:48 pmYes what I have works fine on Raspbian and doesn't on DietPi in any of the configurations I tried.
It doesn't break boot - the disk boots fine. Just after running for a while (20 mins or so) the root folder on the SSD *appears* to become disconnected. If there is an SSH session connected, no commands work, just get an IO error or command not found and the only solution is to remove the power supply.
Nothing in logs.
I wondered about kernel version?
Code: Select all
[ 17.364657] bcmgenet fd580000.genet eth0: Link is Down
[ 20.484652] bcmgenet fd580000.genet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 20.484674] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 21.554570] usb 1-1.3: new high-speed USB device number 3 using xhci_hcd
[ 21.686181] usb 1-1.3: New USB device found, idVendor=0bc2, idProduct=2322, bcdDevice= 0.00
[ 21.686188] usb 1-1.3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 21.686193] usb 1-1.3: Product: Expansion
[ 21.686198] usb 1-1.3: Manufacturer: Seagate
[ 21.686202] usb 1-1.3: SerialNumber: NA82GX95
[ 21.690166] usb 1-1.3: UAS is blacklisted for this device, using usb-storage instead
[ 21.690210] usb 1-1.3: UAS is blacklisted for this device, using usb-storage instead
[ 21.690216] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[ 21.690500] usb-storage 1-1.3:1.0: Quirks match for vid 0bc2 pid 2322: 800000
[ 21.690548] scsi host1: usb-storage 1-1.3:1.0
[ 22.725179] scsi 1:0:0:0: Direct-Access Seagate Expansion 9300 PQ: 0 ANSI: 6
[ 22.725518] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 22.726431] sd 1:0:0:0: [sdb] 976773167 512-byte logical blocks: (500 GB/466 GiB)
[ 22.905179] sd 1:0:0:0: [sdb] Write Protect is off
[ 22.905188] sd 1:0:0:0: [sdb] Mode Sense: 4f 00 00 00
[ 22.905873] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 22.932308] sdb: sdb1
[ 22.934900] sd 1:0:0:0: [sdb] Attached SCSI disk
Code: Select all
Disk /dev/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors
Disk model: SSD PLUS 240GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0xd2120dee
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 468860927 468858880 223.6G 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 465.8 GiB, 500107861504 bytes, 976773167 sectors
Disk model: Expansion
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 976773119 976771072 465.8G 7 HPFS/NTFS/exFAT
Re: External HDD Issues
Does this external hard drive have it's own power supply? Or is it taking power from the Rpi?
Your rootfs is on sda1 which is HPFS/NTFS/exFAT ?
Your rootfs is on sda1 which is HPFS/NTFS/exFAT ?
Re: External HDD Issues
Hey,
Both external drives running powered by the Pi, but I also testet it with SSD (Pi) and HDD (external) and the behavior was the same.
Both external drives running powered by the Pi, but I also testet it with SSD (Pi) and HDD (external) and the behavior was the same.
It was formatted by diet-drive_manager to ext4. In fdisk -l it shows up as quoted, but in the Drive Manager:Your rootfs is on sda1 which is HPFS/NTFS/exFAT ?
Code: Select all
Mount target: / │
│ Mount source: /dev/sda1 │
│ Filesystem: ext4 │
│ UUID: d84b9fc3-6679-46a8-b0c7-bd8fc7051255 │
│ Allocation: Capacity: 220GiB | Used: 216GiB (99%) │
│ Status: Drive is online and ready for use │
│ Read only: Disabled
Re: External HDD Issues
Generally do never power a USB HDD or SSD through the RPi USB port. It only serves 0.6A for all ports together by default, 1A when having max USB power enabled. But even when this is enough for the drives, the RPi itself might face voltage drop then, making the whole system unstable. Everything larger than a USB stick should or must be powered via dedicated PSU.
Re: External HDD Issues
Hey
I considered your advice and updated the power supply to 5V/6A and upgraded the USB Cable management to Y-Cables to ensure enough flexibility is there for the power handling. But still in this optimal powered case the discussed error was still there.
I tried to isolate the problem to the ground by coping the RootFS back to the SD card, but still having the cache and userdata on the SSD while ensuring the nextclouddata is still on the HDD connected via a symlink to the user data folder. So there it is a stable system without crashes.
Possible Problem could be the UAS driver that comes with Rpi4 as default for an USB connection that could not handle the high IO in the SSD and HDD together. May be a fallback to USB mass storage driver would be a solution.
I m relying here on the german forum entry https://forum-raspberrypi.de/forum/thre ... einer-ssd/
Further Information about SSDs running into problems with Rpi4 could be found here in english: https://www.raspberrypi.org/forums/view ... 8&t=245931
I considered your advice and updated the power supply to 5V/6A and upgraded the USB Cable management to Y-Cables to ensure enough flexibility is there for the power handling. But still in this optimal powered case the discussed error was still there.
I tried to isolate the problem to the ground by coping the RootFS back to the SD card, but still having the cache and userdata on the SSD while ensuring the nextclouddata is still on the HDD connected via a symlink to the user data folder. So there it is a stable system without crashes.
Possible Problem could be the UAS driver that comes with Rpi4 as default for an USB connection that could not handle the high IO in the SSD and HDD together. May be a fallback to USB mass storage driver would be a solution.
I m relying here on the german forum entry https://forum-raspberrypi.de/forum/thre ... einer-ssd/
Further Information about SSDs running into problems with Rpi4 could be found here in english: https://www.raspberrypi.org/forums/view ... 8&t=245931
Re: External HDD Issues
Not sure if you understood my advice correctly. The issue is not the RPi PSU, but to use USB power for external HDD/SSD at all. Regardless how much power the RPi PSU has, the USB ports will not give more then max 1A. Also an Y-cable does not help, since the single (USB3) port can give 1A already and two USB ports will still not give more, since 1A is a shared limit across all USB ports together. This is a general limitation on most SBCs. So the optimal, or better only valid, powered case it to use a dedicated PSU for the external drives, hence a docking station or 2,5" case with dedicated power plug.
Re: External HDD Issues
I had a similar experience to what baz123 described. I tried DietPi on Pi4 with a Kingston 480 GB SATA SSD drive and an adapter identified as JMicron USB to ATA/ATAPI Bridge. Transferring root file system to the SSD would always cause a disk failure.
Some time ago I found an old USB 2 SATA case and tried it, which worked like a charm. It's not very fast of course but still beats SD card speeds easily.
After reading this thread I decided to try the USB 3 adapter again, with the usb-storage option. I've only ran it for a few hours but it seems very promising. Without the usb-storage.quirks in cmdline.txt the SSD failed immediately. Now I can install/remove software, and have successfully copied some 50 GB of data to the disk. I did not benchmark but the disk also seems to be faster.
So if someone struggles with external drives they might give usb-storage.quirks a try. It seems Pi4 USB ports can power SSD disks - I've had two Pi4s running from SSDs for several weeks this way. I have no other USB devices attached but have used a USB keyboard occasionally without problems.
Some time ago I found an old USB 2 SATA case and tried it, which worked like a charm. It's not very fast of course but still beats SD card speeds easily.
After reading this thread I decided to try the USB 3 adapter again, with the usb-storage option. I've only ran it for a few hours but it seems very promising. Without the usb-storage.quirks in cmdline.txt the SSD failed immediately. Now I can install/remove software, and have successfully copied some 50 GB of data to the disk. I did not benchmark but the disk also seems to be faster.
So if someone struggles with external drives they might give usb-storage.quirks a try. It seems Pi4 USB ports can power SSD disks - I've had two Pi4s running from SSDs for several weeks this way. I have no other USB devices attached but have used a USB keyboard occasionally without problems.
Re: External HDD Issues
I just did a quick google search and found this sticky at Raspberrypi board.
https://www.raspberrypi.org/forums/view ... p?t=245931
https://www.raspberrypi.org/forums/view ... p?t=245931
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: External HDD Issues
Yep exactly that one. baz123 also referred to that post earlier but I guess it didn't help in his case. Just wanted to say it solved my problem with a SATA SSD and a USB 3 adapter. I also had better success with Raspbian but I really really want to use DietPiJoulinar wrote: ↑Tue Apr 14, 2020 4:12 pm I just did a quick google search and found this sticky at Raspberrypi board.
https://www.raspberrypi.org/forums/view ... p?t=245931
