raspberry home media

Install package(NTFS/exFAT)

1
2
3
4
5
6
7
8
9
10
11
12
13
# if exfat
sudo apt-get install exfat-fuse

# add this at the end(exfat)
/dev/sda1 /mnt/usbdisk vfat rw,defaults 0 0

# if ntfs
sudo apt-get install fuse-utils ntfs-3g
modprobe fuse
sudo nano /etc/fstab

# add this at the end(ntfs)
/dev/sda1 /mnt/myusbdrive ntfs-3g defaults,noexec,umask=0000 0 0
  • umask=0000 mean to all user rwx
  • 0 followed mean no backup
  • 0 at last mean no fsck sequential check.

Mount disk

1
2
3
sudo mkdir /mnt/seagate_2.5_80
sudo mount -o uid=pi,gid=pi /dev/sda1 /mnt/seagate_2.5_80
sudo umount /mnt/seagate_2.5_80

sda1:

  • sd mean usb equipment
  • a mean first equipment
  • 1 mean the first partition

http://elinux.org/RPi_Adding_USB_Drives
raspberry-pi-to-mount-the-removable-hard-disk

Install MiniDLNA

1
sudo apt-get install minidlna

config file

1
2
3
4
5
6
sudo nano /etc/minidlna.conf
media_dir=/mnt/seagate_2.5_80
db_dir=/var/lib/minidlna
listening_ip=192.168.3.1
port=8200
friendly_name=DLNA

commands

1
2
3
4
5
6
7
8
9
10
11
12
13
# start
sudo service minidlna start
# stop
sudo service minidlna stop
sudo killall minidlna
# uninstall
sudo apt-get remove --purge minidlna
# auto load
sudo update-rc.d minidlna defaults
# cancel auto load
sudo update-rc.d -f minidlna remove
# reflesh resouces
sudo service minidlna force-reload