Hey all,
Fairly green on coding here, but looking to see if someone can help me out a bit. I'm trying to use a Pi running minidlna as a home media server. I have my media on a 128gb flash drive. On that drive are folder for Music, Pictures and Movies. In each of those folders are folders for artist, album, etc.
I'm running minidlan on Wheezy (both updated). The Pi is recognizing the flash drive, my sudo fdisk -l:
pi@RPHS ~ $ sudo fdisk -l
Disk /dev/mmcblk0: 15.9 GB, 15931539456 bytes
4 heads, 16 sectors/track, 486192 cylinders, total 31116288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa6202af7
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA)
/dev/mmcblk0p2 122880 31116287 15496704 83 Linux
Disk /dev/sda: 128.0 GB, 128043712512 bytes
255 heads, 63 sectors/track, 15567 cylinders, total 250085376 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 32 250085375 125042672 7 HPFS/NTFS/exFAT
a swapfile is not a swap partition, so no using swapon|off from here on, use $
/dev/sda /media/HDD ntfs defaults 0 2
But I can't seem to get it to find my actual media. Here is my result when I run cd /media/HDD then ls:
pi@RPHS ~ $ cd /media/HDD
pi@RPHS /media/HDD $ ls
pi@RPHS /media/HDD $
Nothing. Here is my config file for minidlna:
This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media
server.
Unless otherwise noted, the commented out options show their default value.
On Debian, you can also refer to the minidlna.conf(5) man page for
documentation about this file.
Path to the directory you want scanned for media files.
This option can be specified more than once if you want multiple directories
scanned.
If you want to restrict a media_dir to a specific content type, you can
prepend the directory name with a letter representing the type (A, P or V),
followed by a comma, as so:
media_dir=A,/media/HDD/Music)
media_dir=P,/media/HDD/Pictures)
media_dir=V,/media/HDD/Movies)
WARNING: After changing this option, you need to rebuild the database. Either
run minidlna with the '-R' option, or delete the 'files.db' file
from the db_dir directory (see below).
On Debian, you can run, as root, 'service minidlna force-reload' instead.
media_dir=/var/lib/minidlna
Path to the directory that should hold the database and album art cache.
db_dir=/var/lib/minidlna
Path to the directory that should hold the log file.
log_dir=/var/log
Minimum level of importance of messages to be logged.
Must be one of "off", "fatal", "error", "warn", "info" or "debug".
"off" turns of logging entirely, "fatal" is the highest level of importance
and "debug" the lowest.
log_level=warn
Use a different container as the root of the directory tree presented to
clients. The possible values are:
* "." - standard container
* "B" - "Browse Directory"
* "M" - "Music"
* "P" - "Pictures"
* "V" - "Video"
if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
I assume I'm making a fairly dumb mistake here, but again, I'm pretty green so it's not so obvious to me. Thanks for any help you could provide.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey all,
Fairly green on coding here, but looking to see if someone can help me out a bit. I'm trying to use a Pi running minidlna as a home media server. I have my media on a 128gb flash drive. On that drive are folder for Music, Pictures and Movies. In each of those folders are folders for artist, album, etc.
I'm running minidlan on Wheezy (both updated). The Pi is recognizing the flash drive, my sudo fdisk -l:
pi@RPHS ~ $ sudo fdisk -l
Disk /dev/mmcblk0: 15.9 GB, 15931539456 bytes
4 heads, 16 sectors/track, 486192 cylinders, total 31116288 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa6202af7
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA)
/dev/mmcblk0p2 122880 31116287 15496704 83 Linux
Disk /dev/sda: 128.0 GB, 128043712512 bytes
255 heads, 63 sectors/track, 15567 cylinders, total 250085376 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 32 250085375 125042672 7 HPFS/NTFS/exFAT
I have the drive mounted, here is my /etc/fstab:
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
a swapfile is not a swap partition, so no using swapon|off from here on, use $
/dev/sda /media/HDD ntfs defaults 0 2
But I can't seem to get it to find my actual media. Here is my result when I run cd /media/HDD then ls:
pi@RPHS ~ $ cd /media/HDD
pi@RPHS /media/HDD $ ls
pi@RPHS /media/HDD $
Nothing. Here is my config file for minidlna:
This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media
server.
Unless otherwise noted, the commented out options show their default value.
On Debian, you can also refer to the minidlna.conf(5) man page for
documentation about this file.
Path to the directory you want scanned for media files.
This option can be specified more than once if you want multiple directories
scanned.
If you want to restrict a media_dir to a specific content type, you can
prepend the directory name with a letter representing the type (A, P or V),
followed by a comma, as so:
media_dir=A,/media/HDD/Music)
media_dir=P,/media/HDD/Pictures)
media_dir=V,/media/HDD/Movies)
WARNING: After changing this option, you need to rebuild the database. Either
run minidlna with the '-R' option, or delete the 'files.db' file
from the db_dir directory (see below).
On Debian, you can run, as root, 'service minidlna force-reload' instead.
media_dir=/var/lib/minidlna
Path to the directory that should hold the database and album art cache.
db_dir=/var/lib/minidlna
Path to the directory that should hold the log file.
log_dir=/var/log
Minimum level of importance of messages to be logged.
Must be one of "off", "fatal", "error", "warn", "info" or "debug".
"off" turns of logging entirely, "fatal" is the highest level of importance
and "debug" the lowest.
log_level=warn
Use a different container as the root of the directory tree presented to
clients. The possible values are:
* "." - standard container
* "B" - "Browse Directory"
* "M" - "Music"
* "P" - "Pictures"
* "V" - "Video"
if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
I assume I'm making a fairly dumb mistake here, but again, I'm pretty green so it's not so obvious to me. Thanks for any help you could provide.
Sorry about the bold there, not sure what happened.
Are you sure your device is mounted? Looks like your fstab entry is wrong.
There are plenty of tutorials online about connecting drives with Raspberry Pi.