added internal drive, network copy issues

Hi,

i installed volumio (Pc version) on usb stick. Boot up my intel atom box. Oke works fine. The box has an internal drive. (nothing on it but music, NTFS) So i added the internal drive according to this (found it in another topic):
(Harddisk is SDA3)

volumio@volumiopc:/$ mkdir /mnt/Mydisk
volumio@volumiopc:/$ sudo mount /dev/sda3 /mnt/Mydisk
volumio@volumiopc:/$ sudo ln -s /mnt/Mydisk /var/lib/mpd/music/Mydisk
volumio@volumiopc:/$ mpc update

Great, drive is added. After the update the music is visible. Me Happy.
On my previous system (Daphile) i could add new music from my desktop system to the atom box over my network. (opened explorer , under network i see volumio, opened that: internal storage, usb and NAS folders are there.) BUT no folder for the internal drive. So no i cannot add new music.

Do i need to do change/add settings?

New issue, i didnt noticed because i didnt reboot the system. After reboot, the drive is no longer mounted.This issue cannot be to difficult. If daphile can do this standard, without that the user must make modifications trough commandline, volumio must also be able to do this.

and after doing the things here descriped: use-second-for-storing-music-t6939.html well, whole bloody system doesnt even function anymore… great!

1 Like

To access your internal drive over the network, you will need to make a samba share of it.

ok: its a x86 system. It boots from usb stick. The internal drive has music on it only. formatted ext3.
The fstab file looks like it is read only: -rw-r–r-- i can see that if i check the usb stick with diskgenius. Already tried chmod , no effect

i found this article: editing-etc-fstab-raspberry-t124.html but the player_lib.php does not exist!

Solved it:

this method will do:
open SSH
Identify the drive that you are wanting to use with ‘fdisk’ (thats sudo fdisk -l to be precise) or ‘lsblk’. Make sure you get the correct one or you are going to get into problems. (in my case it’s SDA3)

Make a suitable directory as a mount point eg. ‘mkdir /mnt/MusicHDD.’

Mount the hdd with ‘mount dev /mnt/MyHdd’, where ‘dev’ is the name of the drive you identified in (1) eg. ‘/dev/sdc2’.
==> sudo mount /dev/sda3 /mnt/MusicHDD

Make a symbolic link from you hdd for mpd to find your music ': ln -s /mnt/MyHdd /var/lib/mpd/music/MusicHDD
Update the mpd database ‘mpc update.’

But then after reboot, it’s all gone , You’re gonna cry, why oh why oh why :cry: :cry: :cry: Open Volumio and press play and a red message appears that the file is not found blablabla!
You’re gonna read all about fstab… forget it for Volumio. Somehow its write protected. Spend to many hours trying to solve that.

The ponyTrick:
==> sudo nano /etc/rc.local
add the mount rule: sudo mount /dev/sda3 /mnt/MusicHDD
save it , DONE.
Then we reboot… open the player, select a track, press play… NO RED MESSAGE “Not found blablabla” I couldn’t believe it. Praise the lords of linux! REBOOT again. Oh YES, it works. :smiley: :smiley: :smiley: :smiley: :smiley: :smiley:

You’d already done that according to your OP??? The entry in rc.local simply mounts the drive each time the device boots. You will still need to share it with Samba to access the drive over the network.

I don’t know linux very well, but if you look upon mounting a drive it all comes down to fstab. That volumio made that part non-writeable, took me a time to figure that out. After i realized that , i knew that the trick was to get the mount command executed at startup. That didn’t take to long.
The time that it took me for the whole fstab thing, was way too long. (in the same time at my work i can make 3 big SEW drives to work, a whole bunch of siemens stuff, S7 and so on, and make a 7 ton crane to work. LOL :laughing: :laughing: :laughing: )

And yes now i’m trying to figure out how to make the drive visible in my network at home so i can add new music. Tried some things, did’t work. any suggestions/ideas/solutions?

Have a read about Samba, and making a drive or part of a drive available as a network share. The original configuration file for Samba in Volumio is ‘/etc/samba/smb.conf’, so make a backup copy of this file before you do anything. According to your post below you have mounted you drive at ‘/mnt/MyHdd’, so it should be as simple as adding an additional section to ‘smb.conf’ with something along the lines of:

[mydrive] comment = external hard drive path =/mnt/MyHdd read only = no guest ok = yes

You should be able to see this share over the network as ‘mydrive’

Thks for the reply. After adding the lines the share is visible, but not writeable from my windows pc. some extra lines need to be added: complete list:
[share]
comment = Volumio internal harddisk music
path = /mnt/MusicHDD
public = yes
only guest = yes
browseable = yes
read only = no
writeable = yes
create mask = 0644
directory mask = 0755
force create mask = 0644
force directory mask = 0755
force user = volumio
force group = volumio

Next i’ve created a user with: sudo smbpasswd -a volumio (enter password volumio)

restart samba server: sudo /etc/init.d/samba restart.

Now it all works.

OK, glad you’re sorted. Just out of interest, how is the drive formatted (NTFS, FAT32 …)?

because of a similair problem with daphile (no copy rights, after an update) i reformatted the drive to ext3.

1 Like