External HDD mount read-write problem
Posted: Wed Jul 24, 2019 9:40 pm
Hello community,
My RPi 3 B+ has a fresh OS install (Raspbian Stretch Lite 2018-11-13). While I'm building myself a NAS I added Samba, NFS (server + client) and mini DLNA. I also added a number of scripts I will use to RSync the data on the external HDD with my other (Debian Linux / Intel based) NASses. Now it was time to hook up my external, USB attached, harddisk to start testing my configuration. Once attached I created one logical partition on it (/dev/sda5) which takes all the available disk space and formatted it as ext4 (just as on my other NASses).
Since this NAS is exclusively meant to support my mediabox I hook my RPi directly into a USB port on the mediabox for power (using a micro USB to USB A cable). I connect my external HDD case to an USB port of the RPi (for data) and to a second USB port on the mediabox (for power) using a Y cable (micro-USB 3.0 to 2 x USB A. In doing so the RPi and ext HDD will boot whenever I start up my mediabox.
Unfortunately I can't get my HDD's data partition mounted RW (read-write). After a day of troubleshooting I discovered that it falls back to RO (read only) within a few seconds after getting mounted. No matter if I mount it through /etc/fstab, /etc/local.rc (at bootup or later, using the 'at' command/package) or manually. Also mounting by devname (/dev/sda5) or UUID makes no difference: I see it mounted RW for a couple of seconds and then fall back to RO.
Having searched through this forum (in the Troubleshooting section) I encountered few posts that were closely related to my problem. But it gave me some ideas, so one thing I tried was using a (Digitus) 4-port USB 3.0 hub to deliver power to my RPi and ext HDD. To no effect.
My HDD is a Western Digital Blue WD20SPZX 2.5" 2 TB (very mainstream I should think); my HDD enclosure is a LogiLink UA0256 (converting SATA3 to USB 3.0).
My questions:
1) Is Raspbian picky when it comes to external HDD enclosures (i.e. the controllers that run in them)?
2) Is there a way to get more information on the reason for switching from RW to RO (f.e. in log files, through debug options or through commands)?
3) Are there other ext HDD enclosures that can be recommended to me for the RPi 3 B and B+?
4) Does anybody have experience with using the Geekworm Raspberry Pi X820 Enclosure and corresponding X820 SATA-to-USB expansion board?
Ad 4 seems a fancy solution: a case that houses both an RPi and an SATA HDD (or SSD) and comes with its own SATA controller board and built-in fan to cool the RPi's CPU.
Looking forward to your reaction,
With regards,
Steijn van Essen
From i8088 to i7-980X in 25 years and still waiting …
My RPi 3 B+ has a fresh OS install (Raspbian Stretch Lite 2018-11-13). While I'm building myself a NAS I added Samba, NFS (server + client) and mini DLNA. I also added a number of scripts I will use to RSync the data on the external HDD with my other (Debian Linux / Intel based) NASses. Now it was time to hook up my external, USB attached, harddisk to start testing my configuration. Once attached I created one logical partition on it (/dev/sda5) which takes all the available disk space and formatted it as ext4 (just as on my other NASses).
Since this NAS is exclusively meant to support my mediabox I hook my RPi directly into a USB port on the mediabox for power (using a micro USB to USB A cable). I connect my external HDD case to an USB port of the RPi (for data) and to a second USB port on the mediabox (for power) using a Y cable (micro-USB 3.0 to 2 x USB A. In doing so the RPi and ext HDD will boot whenever I start up my mediabox.
Unfortunately I can't get my HDD's data partition mounted RW (read-write). After a day of troubleshooting I discovered that it falls back to RO (read only) within a few seconds after getting mounted. No matter if I mount it through /etc/fstab, /etc/local.rc (at bootup or later, using the 'at' command/package) or manually. Also mounting by devname (/dev/sda5) or UUID makes no difference: I see it mounted RW for a couple of seconds and then fall back to RO.
Having searched through this forum (in the Troubleshooting section) I encountered few posts that were closely related to my problem. But it gave me some ideas, so one thing I tried was using a (Digitus) 4-port USB 3.0 hub to deliver power to my RPi and ext HDD. To no effect.
My HDD is a Western Digital Blue WD20SPZX 2.5" 2 TB (very mainstream I should think); my HDD enclosure is a LogiLink UA0256 (converting SATA3 to USB 3.0).
My questions:
1) Is Raspbian picky when it comes to external HDD enclosures (i.e. the controllers that run in them)?
2) Is there a way to get more information on the reason for switching from RW to RO (f.e. in log files, through debug options or through commands)?
3) Are there other ext HDD enclosures that can be recommended to me for the RPi 3 B and B+?
4) Does anybody have experience with using the Geekworm Raspberry Pi X820 Enclosure and corresponding X820 SATA-to-USB expansion board?
Ad 4 seems a fancy solution: a case that houses both an RPi and an SATA HDD (or SSD) and comes with its own SATA controller board and built-in fan to cool the RPi's CPU.
Looking forward to your reaction,
With regards,
Steijn van Essen
From i8088 to i7-980X in 25 years and still waiting …