Jump to content
  • 0

Set properly automount settings for ext4 SATA HDD


Piroskis
 Share

Question

Hello everybody!
I would like to make a home media server with my HDD connected to Banana Pi (on SATA). I want to run Torrent client with WebUI, dlna and VPN server thereon.
I`m stucked with fstab file configuration. First I tried to format my HDD`s partition to NTFS, every permission was good, but Transmission download, and FSTP file download was incredibly slow (4MB/s, but I have gigabit internet connection).  The fstab configuration was this:
 

UUID=<the uuid of the ntfs partition> /mnt/DataHDD ntfs defaults,auto,umask=000,users,rw 0 0

I`ve readed that, ext4 filesystem can be faster, so I decided to format the partition to ext4. After that, I changed in the /etc/fstab the UUID, and the filesystem:

UUID=<the uuid of the ext4 partition> /mnt/DataHDD ext4 defaults,auto,umask=000,users,rw 0 0

But I had to realize that my Banana Pi couldn't boot properly, it refuses my SSH connections. I took the SD card from the Pi and I restored the default fstab settings.

I think that the Pi wanted to boot from the disk, or something like that. After that I tried the following settings:

 

UUID=<the uuid of the ext4 partition> /mnt/DataHDD ext4 defaults 0 0

It was better, the Pi could reboot and the system auto-mounted the HDD. But I realize that I need root privileges to make directory, and Transmission cant write to the partition, I tried chmod 777 on the mounting directory, but that couldn`t help. I`ve readed the manual of fstab, I tried some another configurations, but they didn`t work. I know there are many ways to give permission to transmission-daemon, but I would happy if I could do with the major of the work with properly configured auto-mount settings. Could you help what is the good fstab file configuration?

 

My configuration:
Banana PI
500GB Toshiba HDD

ARMBIAN 5.38 stable Debian GNU/Linux 9 (stretch) 4.14.18-sunxi

 

Thank you!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Well, let's clarify a point: BananaPi's "SATA" is more like a "USB-to-SATA" device, so it's not THAT fast.

That said, why don't you just keep your fstab the way it is and do a "chown -R <myuser>:<mygroup> /mnt/DataHDD", if you need your regular "myuser" user to do stuff inside of /mnt/DataHDD?

Link to comment
Share on other sites

When discussing a problem make sure to provide full logs!

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...