Raspberry Pi

From Holyheads Wiki
(Difference between revisions)
Jump to: navigation, search
(Misc Q&A)
(Misc Q&A)
Line 48: Line 48:
  
 
* External USB HDD spin down
 
* External USB HDD spin down
: hdparm does not work with my WD Elements (SG_IO: bad host status: 0x7)
+
** hdparm does not work with my WD Elements (SG_IO: bad host status: 0x7)
: hd-idle (archive 'hd-idle_1.04.tar' from [http://knowledgebase.twocoders.de/2013/04/10/raspberry-pi-als-fileserver/] (German)) works
+
** [http://blog.is-a-geek.org/festplatten-in-den-standby-modus-versetzen-unter-ubuntu-desktopserver-mit-hd-idle| some hd-idle info] (German)
 +
** hd-idle (archive 'hd-idle_1.04.tar' from [http://knowledgebase.twocoders.de/2013/04/10/raspberry-pi-als-fileserver/] (German)) works
  
 
  hd-idle -i 0 -a sda -i 600
 
  hd-idle -i 0 -a sda -i 600

Revision as of 00:58, 29 December 2013

Contents

Cockbook

My collection of hints, tips and tricks (supporting my memory and maybe also helping others).

Mounting USB drives

  • Slow USB drive performance?
    • Mount with option 'noatime' or 'relatime'
    • Mount without option sync (e.g. keep default async)
    • Auto mount done by OpenElec:
/dev/sda1 on /var/media/Holyhead type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)

Samba server / NAS

  • Slow performance?
    • see 'Slow USB drives' above
    • use Raspbian, etc without GUI to get as much CPU power for file-transfer as possible (OpenELEC or RaspBMC constantly result in about 10-20% CPU load when idle, use top to check!)

Misc Q&A

  • Q: Why does my Pi restart when hotplugging a USB drive?
  • Q: Does Raspberry support WOL?
A: No: the Ethernet chip is connected via USB ([3])
  • Q: The new password is to short.
A: Try adjusting the PAM settings, see Google search for 'pam password minimum length'
  • Q: How to configure static IP?
A: In /etc/network/interfaces:
 iface eth0 inet static
   address 192.168.0.31
   netmask 255.255.255.0
   gateway 192.168.0.1
  • Q: How to read core temperature, etc?
A: vcgencmd: $vcgencmd measure_temp
  • External USB HDD spin down
    • hdparm does not work with my WD Elements (SG_IO: bad host status: 0x7)
    • some hd-idle info (German)
    • hd-idle (archive 'hd-idle_1.04.tar' from [4] (German)) works
hd-idle -i 0 -a sda -i 600

Things I might try sometime

  • NAS/Samba
    • try adjusting 'socket options' in (/etc/samba/smb.conf) to increase NAS performance: some websites recommend to disable the 'socket options', some recommend to set: socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
    • adjust memory split - smaller GPU memory for server
    • ext4 vs ntfs for storage drive

Some links

Blogs, forums, etc:

Manuals

to be continued ...

Personal tools